ocket8888 opened a new issue, #6790: URL: https://github.com/apache/trafficcontrol/issues/6790
## This Bug Report affects these Traffic Control components: - Traffic Ops ## Current behavior: When assigning a Server Capability as a requirement of a Delivery Service, you specify `deliveryServiceID` and `requiredCapability`. The response to that request adds the field `lastUpdated` - but *doesn't* add the field `xmlID` which will appear in responses to later GET requests, despite that it should be known at creation time what that field is. When assigning a Server Capability to a server, you specify `serverID` and `serverCapability`. The response to that request **removes `serverID`, adds `serverId`,** and adds the field `lastUpdated` - but *doesn't* add the field `serverHostName` which will appear in responses to later GET requests, despite that it should be known at creation time what that field is. Also, said GET requests will use the field `serverId` instead of the field `serverID` used in creation. ## Expected behavior: Representations should be consistent. A response to a POST request should be in the same format as a later GET request, and the case of field names should **not** change with request method. The casing should consistently be `serverID`. ## Steps to reproduce: 1. Create a Server Capability 2. Assign it to a server 3. Request all Server Capability-to-server associations 4. Assign the Server Capability as a requirement of a Delivery Service 5. Request all Server Capability-to-Delivery Service associations -- 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. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
