I'm trying to design a RESTful API where the users can fetch a single product or list of products in a single GET request. Each product has a unique id.
The single product URL is simple enough:
http://mycompany.com/api/v1/product/id
This returns the information for a single product. I'm confused as to how the URL for multiple product information should look like.
How about
http://mycompany.com/api/v1/product/ids
where ids is a comma separated list of ids?