Microservices and rest api's
It is important to keep our services small as possible and using REST API we can achieve that.
The slideshow give an overview the benefits of a rest api using Node.js or Java (could be any languages).
7. Why Follow the Standard
1. Cause that’s the standard and we should follow it.
2. Easier time on documentation
3. We can write a request without using documentation.
4. using the same function for building request from different api end
point
10. HTTP Methods
[POST] Create
[GET] Read
[PUT] Update
[Delete] Delete
Yes you can read with POST and delete with GET
This is not mean you should do it!
11. HTTP Status Code
[1XX] Info (100,101)
[2XX] Success (200,201)
[3XX]Redirect (301, 304)
[4XX] Client Error (401,404,405)
[5XX] Server Error (500,503)
18. MicroServices
a list of some of our apis
Restaurants
Cuisines
Messages
Availability
Personalizer
…
19. The Keys
•Keep it Simple Stupid
•Keep it small service
•Dont care about the language use the right tool for the job
•Deliver fast
•Find the Entities
•Use a platform that lets you deploy fast
•REST is a common language (should be human readable)
•Good REST API is when people don't need your
documentation to guess the endpoint