this post was submitted on 29 Jul 2023
961 points (98.5% liked)

Programmer Humor

32845 readers
595 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] [email protected] 213 points 1 year ago* (last edited 1 year ago) (15 children)

Here's an article about it: https://dev.to/maggiecodes_/how-i-applied-to-a-tech-job-using-a-post-request-193d

The thing that annoys me is the response. It should return status 201 created and the id of the new resource for future delete/update operations. Instead it returns 200 ok and some clear text. Wouldn't want to work with such an API.

[โ€“] penguin 8 points 1 year ago

That's better than some I've seen. Like 200 for everything and the text could even be "error".

Or 500 with the text "invalid input"

load more comments (14 replies)