Stream: hapi
Topic: update (id in both url and body?)
Emre Avsar (May 17 2017 at 15:08):
why is this not working?
Screen-Shot-2017-05-17-at-17.00.47.png
Emre Avsar (May 17 2017 at 15:09):
and why this is working?
Screen-Shot-2017-05-17-at-17.00.39.png
Emre Avsar (May 17 2017 at 15:10):
so basic question => why do i have to put the ID in the URL AND in the Body?
Ben Spencer (May 18 2017 at 09:21):
short answer: because that's what the spec says: http://hl7.org/fhir/http.html#update
Kevin Mayfield (May 18 2017 at 12:44):
Why would you want to update a resource and set its id to null?
Emre Avsar (May 18 2017 at 12:46):
i'm not interested in setting it to null, i just don't want to repeat my self. either url or body. but if it's written in the spec, maybe it has some reason
Grahame Grieve (May 18 2017 at 18:23):
in an old version of the spec, we did not have this duplication - we did not have .id in the resource.
Grahame Grieve (May 18 2017 at 18:24):
but this is different to most other RESTful interfaces, and caused much discussion and confusion. Eventually, we were persauded that duplication with less confusion is better than non-duplication with more confusion
Emre Avsar (Jun 06 2017 at 10:11):
well it led to more confusion in my case, anyway thanks for the info @Grahame Grieve
Last updated: Apr 12 2022 at 19:14 UTC