-
Notifications
You must be signed in to change notification settings - Fork 2
Follow & Block API Documentation
GET 'api/users/<username>/follow/'
-
Author: Bengisu Özaydın
-
Definition: Allows a user to follow another user
-
Example Response Value:
{ "message": "Successfully followed user." }
-
Example Failure Value:
{ "username": [ "User does not exist." ] }
-
Parameters
Parameter Description Parameter Type Data Type username Name of followed user Path String -
Response Messages
- 200: Followed.
- 400: Bad request.
GET 'api/users/<username>/unfollow/'
-
Author: Bengisu Özaydın
-
Definition: Allows a user to unfollow another user
-
Example Response Value:
{ "message": "Successfully unfollowed user." }
-
Example Failure Value:
{ "username": [ "User does not exist." ] }
-
Parameters
Parameter Description Parameter Type Data Type username Name of unfollowed user Path String -
Response Messages
- 200: Unfollowed.
- 400: Bad request.
GET 'api/users/<username>/followings/'
-
Author: Bengisu Özaydın
-
Definition: Allows a user to see users followed by a user
-
Example Response Value:
{ "@context": "https://www.w3.org/ns/activitystreams", "summary": "Users Sally follows.", "type": "Collection", "total_items": 1, "items": [ { "@context": "https://www.w3.org/ns/activitystreams", "summary": "Sally followed John", "type": "Follow", "actor": { "type": "Person", "name": "Sally" }, "object": { "type": "Person", "identifier": "John" } } ] }
-
Example Failure Value:
{ "username": [ "User does not exist." ] }
-
Parameters
Parameter Description Parameter Type Data Type username Name of user to get followings of Path String -
Response Messages
- 200: OK.
- 400: Bad request.
GET 'api/users/<username>/followers/'
-
Author: Bengisu Özaydın
-
Definition: Allows a user to see users following a user
-
Example Response Value:
{ "@context": "https://www.w3.org/ns/activitystreams", "summary": "Users following Sally.", "type": "Collection", "total_items": 2, "items": [ { "@context": "https://www.w3.org/ns/activitystreams", "summary": "John followed Sally", "type": "Follow", "actor": { "type": "Person", "name": "John" }, "object": { "type": "Person", "identifier": "Sally" } }, { "@context": "https://www.w3.org/ns/activitystreams", "summary": "James followed Sally", "type": "Follow", "actor": { "type": "Person", "name": "James" }, "object": { "type": "Person", "identifier": "Sally" } } ] }
-
Example Failure Value:
{ "username": [ "User does not exist." ] }
-
Parameters
Parameter Description Parameter Type Data Type username Name of user to get followers of Path String -
Response Messages
- 200: OK.
- 400: Bad request.
GET 'api/users/<username>/block/'
-
Author: Bengisu Özaydın
-
Definition: Allows a user to block another user
-
Example Response Value:
{ "message": "Successfully blocked user." }
-
Example Failure Value:
{ "username": [ "User does not exist." ] }
-
Parameters
Parameter Description Parameter Type Data Type username Name of blocked user Path String -
Response Messages
-
200: Blocked.
-
400: Bad request.
GET 'api/users/<username>/unblock/'
-
Author: Bengisu Özaydın
-
Definition: Allows a user to unblock another user
-
Example Response Value:
{ "message": "Successfully unblocked user." }
-
Example Failure Value:
{ "username": [ "User does not exist." ] }
-
Parameters
Parameter Description Parameter Type Data Type username Name of unblocked user Path String -
Response Messages
-
200: Unblocked.
-
400: Bad request.
GET 'api/users/<username>/blockings/'
-
Author: Bengisu Özaydın
-
Definition: Allows a user to see the blocked users
-
Example Response Value:
{ "@context": "https://www.w3.org/ns/activitystreams", "summary": "Users Sally blocked.", "type": "Collection", "total_items": 1, "items": [ { "@context": "https://www.w3.org/ns/activitystreams", "summary": "Sally blocked John", "type": "Block", "actor": { "type": "Person", "name": "Sally" }, "object": { "type": "Person", "identifier": "John" } } ] }
-
Example Failure Value:
{ "username": [ "User does not exist." ] }
-
Parameters
Parameter Description Parameter Type Data Type username Name of user to get blockings of Path String -
Response Messages
-
200: OK.
-
400: Bad request.
GET 'api/users/<username>/blockers/'
-
Author: Bengisu Özaydın
-
Definition: Allows to get users that blocked a user
-
Example Response Value:
{ "@context": "https://www.w3.org/ns/activitystreams", "summary": "Users that blocked Sally.", "type": "Collection", "total_items": 1, "items": [ { "@context": "https://www.w3.org/ns/activitystreams", "summary": "John blocked Sally", "type": "Block", "actor": { "type": "Person", "name": "John" }, "object": { "type": "Person", "identifier": "Sally" } } ] }
-
Example Failure Value:
{ "username": [ "User does not exist." ] }
-
Parameters
Parameter Description Parameter Type Data Type username Name of user to get blockers of Path String -
Response Messages
-
200: OK.
-
400: Bad request.
-
Home
-
Communication plan
-
Some interesting GitHub repositories
- Git Basics
- Time Tracking
- RAM
- Lessons Learned
- System Manual
- Doğukan Akar
- Şefika Akman
- Ömer Arslan
- İbrahim Kağan Bayat
- Berkay Döner
- Ahmet Necip Görgülü
- Ege Can Kaya
- Bengisu Özaydın
- Mehmet Saraçoğlu
- Kerem Zaman
- Project Requirements
- Existing Examples
- Questions for Customers
- Customer Meeting Notes
- Scenarios and Mockups
- Class Diagram
- Sequence Diagrams
- Use Case Diagram
- Practice App API Documentation
- Rebound API Documentation
- Meeting Notes #1 (28.03.2021)
- Meeting Notes #2 (30.03.2021)
- Meeting Notes #3 (03.04.2021)
- Meeting Notes #4 (07.04.2021)
- Meeting Notes #5 (14.04.2021)
- Meeting Notes #6 (21.04.2021)
- Meeting Notes #7 (24.04.2021)
- Meeting Notes #8 (28.04.2021)
- Meeting Notes #9 (29.04.2021)
- Meeting Notes #10 (05.05.2021)
- Meeting Notes #11 (22.05.2021)
- Meeting Notes #12 (26.05.2021)
- Meeting Notes #13 (29.05.2021)
- Meeting Notes #14 (02.06.2021)
- Meeting Notes #15 (09.06.2021)