this post was submitted on 14 Sep 2025
820 points (99.4% liked)

Programmer Humor

26372 readers
1364 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] Aatube@kbin.melroy.org 6 points 3 days ago (12 children)

how would you return metadata or more detailed error codes?

[–] tempest@lemmy.ca 3 points 3 days ago (8 children)

The argument probably goes something like " if you adhere strictly to REST the error codes are all you need" and then metadata can be sent in response headers.

[–] Aatube@kbin.melroy.org 3 points 3 days ago (7 children)

how should a REST API respond to the client sending a URL the ends in a string instead of a numeric ID? like api.social/users/ceeforayteen instead of api.socail/users/11037

It’s still just another type of ID so you can do lookups on it. Nothing would change. UUIDs are used all the time.

load more comments (6 replies)
load more comments (6 replies)
load more comments (9 replies)