Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Add to favourite or block an interpreter
- POST /person_relations
- {
- person_id: integer, // current person who performs an action
- relation: {
- target_id: integer, // interpreter
- attitude_type: 'favourite' or 'blocked' string
- }
- }
- Remove from favourites or unblock
- DELETE /person_relations
- {
- person_id: integer, // current person who performs an action
- relation: {
- target_id: integer, // interpreter
- attitude_type: 'favourite' or 'blocked' string
- }
- }
- Show blocked interpreters [default:false] param for filtering:
- params[:blocked] = true/false
- params[:rater_id] = integer // current person who performs an action
- Show only favourite interpreters [default:false] param for filtering:
- params[:favourite] = true/false
- params[:rater_id] = integer // current person who performs an action
- Get all blocked interpreters
- GET /people/:id/blocked_interpreters
- { id: integer }
- response: undefined until designs will be completed
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement