Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Block a user
- ### [POST] `api/v1/block_users`
- __Request Payload__
- ```json
- { "user": {
- "phone_number": "9403674214"
- }
- }
- ```
- __Success Response__ 200 OK
- ```json
- {
- "status": "User Blocked"
- }
- ```
- # Unblock a user
- ### [Delete] `api/v1/block_users/:phone_number`
- __Success Response__ 200 OK
- ```json
- {
- "status": "User Block Removed"
- }
- ```
- # Blocked user list
- ### [GET] `api/v1/block_users`
- __Success Response__ 200 OK
- ```json
- {
- "blocked_users": [
- {
- "full_name": "Jason Osborne",
- "phone_number": "9725551212"
- },
- {
- "full_name": "Homer Simpson",
- "phone_number": "8179070975"
- }
- ]
- }
- ```
- # Errors
- __Unsuccessful Response__ 404 Not Found
- ```json
- {
- "errors": {
- "status": "404",
- "code": "404",
- "title": "Not Found",
- "detail": "Resource not found",
- "links": {
- "block_user":
- ["940367421"]
- }
- }
- }
- ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement