by trinovantes · 4y ago · 0 comments
/books
/books/:id
/book
/book/:id
It gets harder to keep consistent when there are a lot of nouns that have the same singular/plural form like "clothing"It's stupid to have /geese return a Goose.
If the APIs were in Esperanto it would be different.
/clothes/:clothing_id
The reason for using plural is because without the `:clothing_id`, `/clothes` endpoint would return a collection of clothing. /books
/book/:id