Rest API - URL and Resource Design
You are designing an API for a library system. Which of the following endpoint designs correctly follows the plural vs singular resource naming best practices for retrieving a single book and all books?
GET /books correctly retrieves all books (plural). GET /book/{id} correctly retrieves a single book (singular with ID).GET /books for all books and GET /book/{id} for a single book -> Option B15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions