Come on guys :) We could make it simpler with examples:
/this-is-an-endpoint /another/endpoint /some/other/endpoint /login /accounts /cart/items
and when it is placed under the domain, it will look like this:
https://example.com/this-is-an-endpoint https://example.com/another/endpoint https://example.com/some/other/endpoint https://example.com/login https://example.com/accounts https://example.com/cart/items
It can be either http or https, we use https in the example.
Also, the endpoint may differ for different HTTP methods, for example:
GET /item/{id} PUT /item/{id}
- two different endpoints: one for r etrieving (as in the abbreviation c R ud "), and the other for u pdating (as in" cr U d ")
And that’s all really that simple!
Tomeg Nov 30 '17 at 12:52 2017-11-30 12:52
source share