mhoppa commented on a change in pull request #4006: implement deliveryservice_server_capabilities api endpoint URL: https://github.com/apache/trafficcontrol/pull/4006#discussion_r337105406
########## File path: traffic_ops/app/db/seeds.sql ########## @@ -541,6 +541,10 @@ insert into api_capability (http_method, route, capability) values ('GET', 'deli insert into api_capability (http_method, route, capability) values ('POST', 'deliveryserviceserver', 'delivery-service-servers-write') ON CONFLICT (http_method, route, capability) DO NOTHING; insert into api_capability (http_method, route, capability) values ('POST', 'deliveryservices/*/servers', 'delivery-service-servers-write') ON CONFLICT (http_method, route, capability) DO NOTHING; insert into api_capability (http_method, route, capability) values ('DELETE', 'deliveryservice_server/*/*', 'delivery-service-servers-write') ON CONFLICT (http_method, route, capability) DO NOTHING; +-- delivery service server capabilities +insert into api_capability (http_method, route, capability) values ('GET', 'deliveryservice_server_capabilities', 'delivery-services-read') ON CONFLICT (http_method, route, capability) DO NOTHING; +insert into api_capability (http_method, route, capability) values ('POST', 'deliveryservice_server_capabilities', 'delivery-services-write') ON CONFLICT (http_method, route, capability) DO NOTHING; +insert into api_capability (http_method, route, capability) values ('DELETE', 'deliveryservice_server_capabilities', 'delivery-service-server-capabilities-write') ON CONFLICT (http_method, route, capability) DO NOTHING; Review comment: Should the delete capability be `delivery-services-write`? ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services