DiazCarrete, to random
@DiazCarrete@hachyderm.io avatar

We cannot know the resource-in-itself, only its representations. Very Kantian!

https://www.rfc-editor.org/rfc/rfc9110.html#section-3.2
https://en.wikipedia.org/wiki/Thing-in-itself

DiazCarrete, (edited ) to random
@DiazCarrete@hachyderm.io avatar

currently engaged in a RESTological disquisition

Why isn't HTTP PUT allowed to do partial updates in a REST API?
🔗 https://stackoverflow.com/questions/19732423/why-isnt-http-put-allowed-to-do-partial-updates-in-a-rest-api

Why PATCH is neither safe nor idempotent?
🔗 https://stackoverflow.com/questions/41390997/why-patch-is-neither-safe-nor-idempotent

Same representation for GET and PUT?
🔗 https://stackoverflow.com/questions/36498982/same-representation-for-get-and-put

I might even consult the holy RFCs themselves
🔗 https://developer.mozilla.org/en-US/docs/Web/HTTP/Resources_and_specifications

#rest #http

DiazCarrete,
@DiazCarrete@hachyderm.io avatar

I might be splitting hairs about the semantics of PUT, but there seems to be a slight contradiction in

On one hand, a GET after a PUT should return the exact representation that was set by the PUT.

On the other hand, a PUT "might also cause links to be added between the related resources" which seems to say that the representation might be enriched with extra links.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • kavyap
  • DreamBathrooms
  • cubers
  • osvaldo12
  • mdbf
  • magazineikmin
  • normalnudes
  • InstantRegret
  • rosin
  • Youngstown
  • slotface
  • khanakhh
  • ethstaker
  • Leos
  • ngwrru68w68
  • everett
  • cisconetworking
  • tacticalgear
  • anitta
  • thenastyranch
  • Durango
  • tester
  • GTA5RPClips
  • modclub
  • megavids
  • provamag3
  • lostlight
  • All magazines