FHIR Chat · update (id in both url and body?) · hapi

Stream: hapi

Topic: update (id in both url and body?)


view this post on Zulip Emre Avsar (May 17 2017 at 15:08):

why is this not working?

Screen-Shot-2017-05-17-at-17.00.47.png

view this post on Zulip Emre Avsar (May 17 2017 at 15:09):

and why this is working?

Screen-Shot-2017-05-17-at-17.00.39.png

view this post on Zulip 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?

view this post on Zulip Ben Spencer (May 18 2017 at 09:21):

short answer: because that's what the spec says: http://hl7.org/fhir/http.html#update

view this post on Zulip Kevin Mayfield (May 18 2017 at 12:44):

Why would you want to update a resource and set its id to null?

view this post on Zulip 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

view this post on Zulip 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.

view this post on Zulip 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

view this post on Zulip 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