Consistent handling of child resources #41392
stianst
started this conversation in
API guidelines
Replies: 1 comment
-
|
Related issue: #41277 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Admin v1 is rather inconsistent when it comes to how child resources are handled. Some examples:
There's plenty more examples, and I'm sure any possible result can be observed from different endpoints in Admin v1 (children being created, children being ignored, children being silently ignored if not found, 500 status codes, etc.), and I'm also sure sometimes a resource can be created with child resources, but not updated with child resources.
End of the day we need consistency here; and if creating a resource doesn't support including child resources then the OpenAPI docs should not list is as such (suggesting maybe there could be a create UserRepresentation, and a different UpdateUserRepresentation, or whatever).
Beta Was this translation helpful? Give feedback.
All reactions