Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Nested micro APIs - design pattern and best practices

Not applicable

Dear experts,

We are currently exploring the possibilities of micro services, like: /cities and /hotels. What I would like is a solution or design pattern for nesting API's, as an example: /cities/paris/hotels will give all the hotels in Paris. (or 3 nested apis: /cities/paris/hotels/all/prices to return all the prices from the hotels in paris).

I am not sure how this design pattern is called and if there are solutions / best practices for this, but if anyone can assist me in this question, any help is welcome.

2 5 1,433
5 REPLIES 5