Some advice about endpoint design #30137
luca-bassoricci
started this conversation in
Community
Replies: 0 comments
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.
-
Currently we have some endpoints which are essentialy a
PATCH
but the requests is to not leverage on JSONPath o JSONMergePatch objects because endpoints must have specific DTOs as body.My idea is to have the same
@PATCH
endpoint consumes different types:I'm struggle about
@Consumes()
mimetype:application/vnd.patch.modificationOne+json-patch
,application/vnd.patch.modificationTwo+json-patch
application/json-patch+json; type=DTO#1
,application/json-patch+json; type=DTO#2
Anyone with some advices for a better and/or pratical solution?
Ragards
Luca Basso Ricci
Beta Was this translation helpful? Give feedback.
All reactions