Reputation: 317
i´m not sure about my REST naming.
I have 3 routes:
GET and DELETE and PUT /book/:bookId/translation/:translationId
With GET I get the translation of a book. With DELETE I delete the translation of one book. And with PUT I change the translation.
But how about the naming for the POST route? With POST I will create a new translation for a book.
Should it better be /book/:bookId or /book/:bookId/translation
Thanks´s a lot for your feedback!
Upvotes: 0
Views: 40
Reputation: 707218
Should it better be /book/:bookId or /book/:bookId/translation
It seems that /book/:bookId/translation
would make the most sense for the POST of a new translation for the following reasons:
/book/:bookId/translation/:translationId
./book/:bookId/translation
.Upvotes: 1