0

With a monolith we have one huge api project for which we used plural nouns to represent each entity. For example http://monolith.domain.com/Payments, http://monolith.domain.com/Customers, http://monolith.domain.com/Orders, etc.

With the microservice architecture, we now have the plural noun as the microservice itself. So what is the best practice for naming the endpoints?

  • get, create, update, remove ;). – Fabio Dec 6 '19 at 7:55
  • No, that is to be understood from the http protocol - GET, POST, PUT, DELETE respectively. I am asking about endpoint names – variable Dec 6 '19 at 8:13
0

Regarding what I am working with microservices architecture, the structure of our endpoints should be as follows:

http(s)://domain.com/{service-name}/{api-version}/

Thus, the action of endpoints is determined by HTTP action: GET, POST, PUT, DELETE

Not the answer you're looking for? Browse other questions tagged or ask your own question.