Answer the question
In order to leave comments, you need to log in
Is it possible to design an API like this?
I am making a simple book reading service on Spring Boot.
I threw the following API structure: api/users/{id}/shelves/{id}/books/{id}/pages
It turns out the following order of obtaining data:
api/users
api/users/{id}/shelves
api/users/{id}/shelves/{id}/books
api/users/{id}/shelves/{id}/books/{id}/pages
api/users
api/users/{id}/shelves
api/shelves/{id}/books
api/books/{id}/pages
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question