Tag Archives: rest
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 …
Тестирование Rest API в Google Chrome
Плагинчик для работы с Rest API: https://chrome.google.com/webstore/detail/postman-rest-client/fdmmgilgnpjigdojojpjoooidkmcomcm?hl=en Видео: https://www.youtube.com/watch?feature=player_embedded&v=VPLlkhhRMvQ
Restangular
https://github.com/mgonto/restangular Библиотека, расширяющая $resource в Angularjs, для более удобной работы с REST API