-
-
Notifications
You must be signed in to change notification settings - Fork 7
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
Provide separate REST API schemas for CRUD and by context #40
Comments
Perhaps the entire set of REST API schema files need to be generated from OPTIONS requests to the actual endpoints, and this library provides transformation rules on a per-endpoint basis for adjustments. |
For naming conventions, the HTTP verbs can't be used because POST can be used for both creating and updating.
|
Actually that might not be true, because to create an entity you POST to the collection endpoint and to update an entity you POST to the single item endpoint, and these have different schemas (although currently the collection schema is just an array of the single schemas). |
The REST API schemas provided currently are only valid for reads (GET) and for the
view
andedit
contexts. This has some problems:view
andedit
contexts as they currently cover bothembed
contextIdeally separate schemas would be provided for each of the four request types (CRUD) and each of the three contexts (
view
,edit
, andembed
).What I don't want to do though is maintain a bunch of schemas for each endpoint that are all similar. This needs to either use partials or be automated somehow.
The text was updated successfully, but these errors were encountered: