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

Should a REST API reflect server-side application architecture

$
0
0

I'm in the middle of writing my first web app. Just wondering how the conventions are when it comes to REST API designs. Is it better to have it reflect my server side architecture or whatever seems to be easier to reason about?

I'm thinking of either doing:

/serviceProvider/product

or

/product/serviceProvider

My server side architecture are all separated into modules organized by service providers, however they all expose a product query API.


Viewing all articles
Browse latest Browse all 3607

Trending Articles



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