Remove user
JSON object wrapper from user/current
PUT requests
#6396
Labels
improvement
The functionality exists but it could be improved in some way.
low impact
affects only a small portion of a CDN, and cannot itself break one
tech debt
rework due to choosing easy/limited solution
Traffic Ops API Next
Improvements to Traffic Ops API - particularly breaking changes
This Improvement request (usability, performance, tech debt, etc.) affects these Traffic Control components:
Current behavior:
The currently logged in user has the ability to edit various fields via a PUT request to the
user/current
endpoint. However, that request MUST be wrapped in auser
JSON object such that the body looks something like:This object appears to be unnecessary, but adds a "gotcha" of sorts to the
PUT
requests. Even resulting in bug submissions such as #6367New behavior:
Removing this wrapper will help reduce unnecessary code, reduce and add clarity to documentation, and help with maintainability going forward.
Additionally the documentation for the API endpoint will need to be updated to remove the reference to the
user
wrapper object. docs foruser/current
The text was updated successfully, but these errors were encountered: