Y
Hacker News
new
|
ask
|
show
|
jobs
by
Xenoamorphous
346 days ago
Isn't that fairly straightforward? PUT for full updates and PATCH for partial ones. Does anybody do anything different?
4 comments
blueflow
346 days ago
PUT for partial updates, yes, constantly. What i worked with last week:
https://docs.gitlab.com/api/projects/#edit-a-project
link
OJFord
345 days ago
That's straightforwardly 'correct' and Fielding's thesis, yes. Yes people do things differently!
link
CSMastermind
346 days ago
Lots of people make PUTs that work like PATCHes and it drives me crazy. Same with people who use POST to retrieve information.
link
akvadrako
346 days ago
Well you can't reliably use GET with bodies. There is the proposed SEARCH but using custom methods also might not work everywhere.
link
bmn__
346 days ago
No, QUERY.
https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-saf...
SEARCH is from RFC 5323 (WebDAV).
link
Deukhoofd
346 days ago
The SEARCH verb draft was superseded by the QUERY verb draft last I checked. QUERY is somewhat more adopted, though it's still very new.
link
OJFord
345 days ago
POST /gql "Get thing" ... 200 "Permission denied to get thing"
Hate it.
link
andoando
345 days ago
These verbs dont even make sense most of the time.
link
wpm
346 days ago
You sweet summer child.
link