Quantcast
Channel: Active questions tagged rest - Stack Overflow
Viewing all articles
Browse latest Browse all 4797

What should there be at the root resource of a RESTful API?

$
0
0

Requesting '/cats' to an API returns a collection of cats, while requesting '/cats/123' returns the cat whose id is '123'

My question is: what should be the response when '/' (the root of the API) is requested?

An index with the names of all the collections in the API maybe?


Viewing all articles
Browse latest Browse all 4797

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>