Sto progettando un'API REST ma ho riscontrato alcune difficoltà durante la denominazione. Ho una API come questa:
GET   .../users/{userId}/categories/count
GET   .../users/{userId}/categories/{categoryId}/count
GET   .../users/{userId}/categories/{categoryId}/tickets
Sembra che l'API riguardi le categorie degli utenti, ma in realtà gli usi sono:
   Get the number of tickets for each available ticket categories for specified user    
   Get the number of tickets for the specified ticket category for specified user    
   Get all the tickets under the specified ticket category for specified user    
Per le prime 2 API, potrei cambiarlo in:
.../users/{userId}/tickets/categories/count
.../users/{userId}/tickets/categories/{categoryId}/count
Ma per l'ultimo, non sono sicuro di come progettare il percorso dell'API. È strano se lo cambio in:
.../users/{userId}/tickets/categories/{categoryId}/tickets