I am developing a common REST API for my projects, and I wonder what to do when I have a table / resource with 2 or more primary keys .
For example, let's assume that I have a table called “question” with two primary keys (date and type), and I need to create a REST URI resource. What is the best way to do this using the standard api/{resource}/{id} scheme?
Maybe something like: api/question/{:date},{:type} ? What is the best way to do this?
Thanks.
rest restful-architecture api-design
angro
source share