Daily NEWS ,Latest News, Breaking News, National News, World News, India News update . Daily NEWS UPDATE fata fat daily breaking news

Featured Video

Monday, June 21, 2021

New top story on Hacker News: Ask HN: At this point, are PUT and PATCH helpful?

Ask HN: At this point, are PUT and PATCH helpful?
8 by seph-reed | 15 comments on Hacker News.
EDIT: Thanks for the input fellow beings. I really appreciate it. I think I have a much better idea of what people feel/do and why... so I'm going on a walk now to think it around. --------------------- I'm designing an API, and trying to place PUT and PATCH into my design ideology. In my experience, most APIs stick to GET and POST almost exclusively. And AFAICT, PUT and PATCH don't really add much that POST doesn't have. In fact, I kind of prefer the idea of having the url tell me what's going on explicitly rather than trying to infer from the request type. For example: - to create: `POST user` - to update: `POST user/12354` vs - to create: `POST user/` - to update: `PATCH user/` -------- I'm working alone on this project, otherwise I'd ask a coworker, but what do you guys think? What feels intuitive and clear to you?

Share:

0 comments:

Post a Comment

Sports

Blog Archive

Recent Posts

Unordered List

Definition List