New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ensure correct request / response format #1120
Comments
Good description, thanks! The JSON API spec also has some background on the need for the I agree with you, though, that the |
After a preliminary examination, it fortunately looks like the majority of services already adhere to the schema. The exceptions I have found so far are as follows:
|
The REST-API interfaces of the framework services do not always correspond to our standard specifications regarding the request/response format.
1. The request JSON body format for GET / POST / PATCH / PUT / DELETE should not contain the "data" property. Examples that conform to this specification:
Request POST api/service/resource/
body (application/json)
Request PATCH api/service/resource/:id
body (application/json)
2. The response JSON body format must contain at least the "data" property and should contain the "meta" property. Examples that conform to this specification:
Response GET api/service/resource
body (application/json)
Response GET api/service/resource/123
body (application/json)
All framework services within /services must be examined and, if necessary, adjusted. Communication between the services within the framework must not be impaired.
The text was updated successfully, but these errors were encountered: