Skip to content

Instantly share code, notes, and snippets.

@alexmasyukov
Last active February 1, 2018 04:15
Show Gist options
  • Save alexmasyukov/2addb32376e1bb8f197579bec3c74f07 to your computer and use it in GitHub Desktop.
Save alexmasyukov/2addb32376e1bb8f197579bec3c74f07 to your computer and use it in GitHub Desktop.
Описание
GET
POST
PUT
DELETE
ЗДЕСЬ!
https://uncaughtexception.ru/2017/05/15/kak-razrabotat-praktichnyy-rest-api.html
https://habrahabr.ru/post/144011/
https://www.ibm.com/support/knowledgecenter/ru/SS4GCC_6.1.2/com.ibm.urelease.doc/topics/rest_api_ref_conventions.html
http://interosite.ru/articles/rest-api-design
JSON формат НЕ имеет ключей в объекте, в котором храниться массив с перечислением!
{
"categories":
[
{
"feedId": 12345,
"id": "1",
"name": "Телевизоры"
},
{
"feedId": 12347,
"id": "2",
"name": "ЖК",
"parentId": "1"
},
{
"feedId": 12347,
"id": "3",
"name": "Плазменные",
"parentId": "1"
}
]
"pager":
{
"currentPage": 1,
"from": 1,
"pagesCount": 1,
"pageSize": 3,
"to": 3,
"total": 3
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment