Advertisement
Guest User

Untitled

a guest
Feb 21st, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 0.94 KB | None | 0 0
  1.  
  2. Add to favourite or block an interpreter
  3. POST /person_relations
  4. {
  5.     person_id: integer, // current person who performs an action
  6.     relation: {
  7.         target_id: integer, // interpreter
  8.         attitude_type: 'favourite' or 'blocked' string
  9.     }
  10. }
  11.  
  12. Remove from favourites or unblock
  13. DELETE /person_relations
  14. {
  15.     person_id: integer, // current person who performs an action
  16.     relation: {
  17.         target_id: integer, // interpreter
  18.         attitude_type: 'favourite' or 'blocked' string
  19.     }
  20. }
  21.  
  22. Show blocked interpreters [default:false] param for filtering:
  23. params[:blocked] = true/false
  24. params[:rater_id] = integer // current person who performs an action
  25.  
  26. Show only favourite interpreters [default:false] param for filtering:
  27. params[:favourite] = true/false
  28. params[:rater_id] = integer // current person who performs an action
  29.  
  30. Get all blocked interpreters
  31. GET /people/:id/blocked_interpreters
  32. { id: integer }
  33.  
  34. response: undefined until designs will be completed
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement