Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1. эти эндпоинты изменяют статус места в профиле пользователя и в ответе возвращают место с измененным статусом
- save http://api/places/{id}/?checked=false PUT status: false -> saved
- check http://api/places/{id}/?checked=true PUT status: saved -> checked
- request body: {
- comment: comment,
- stars: stars
- }
- unsave http://api/places/{id}/?checked=false DELETE status: saved -> false
- uncheck http://api/places/{id}/?checked=true DELETE status: checked -> saved
- 2.
- http://api/followings
- http://api/followers
- response: [
- {
- displayName: 'Xavier Lcq',
- id: '10155503355701211',
- photoURL: https://graph.facebook.com/10155503355701211/picture?type=large
- },
- {
- displayName: 'Xavier Lcq',
- id: '10155503355701211',
- photoURL: https://graph.facebook.com/10155503355701211/picture?type=large
- }
- ]
- http://api/follow/id POST
- {
- displayName: 'Xavier Lcq',
- id: '10155503355701211',
- photoURL: https://graph.facebook.com/10155503355701211/picture?type=large
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement