Adapt colorpalette.yaml to Qt colorpalette RESTful API Server
- Cleanup: Remove the unnecessary "testOperation".
- Path correction: Replace /colors with /unknown to be compatible with
the colorpalette server.
- Change the return type of the '200' response in the "updateColorById"
operation from an array of Color to a single Color object, matching the
server's response.
- Change some property names to match the names on the server.
- Create a "Credentials" object to be used as the schema of Credentials
request body for a better generated code.
- Authentication related changes:
- Return "TokenResponse" object on succesful register and login
operations. This allows users to extract and utilize the session
token for authorized requests such as the "logout" operation in
UserApi and certain operations in ColorApi.
- Add "token" apiKey security scheme under "components/securitySchemes/
token".
- Require the new token security scheme in the "addColor",
"deleteColor" and "updateColorById" operations. Add:
security:
- token: []
Task-number: QTBUG-134959
Change-Id: Idf7c77b59185da1bc78a1b7f42bc157fb9a832c0
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>