Daily Archives: 25.01.2018
RESTful API basics
It is a way to structure your API over HTTP. REST stands for “Representational State Transfer”. It has 5 major parts: The endpoint The method The headers Request body HTTP status Endpoint paths Could be something like
1 2 3 |
/users/:username/repos /users/:username/repos/:repo /users/:username/repos?sort=date&order=asc |
Methods GET Read entry/list of entries POST Create an entry PUT Update all entry fields PATCH Update …