Implemetation of a Social Networking Website
- Create Project Structure
- Implement Authentication
- Implement Get all Users
- Implement Friends
- Find Immediate Friends
- Find Mutual Friends
- Make Relationship Graph
- Add Redis
- Jaccard Coefficient from all Users
- Shortest Path from all Users
- Store Friends
- Recommend Friends
- Implement Posts
- Display Public Posts
- Display Friend Posts
- Display Posts of Friend of Friends
- Implement Image Upload
- Implement Get Single Post
- Implement Likes on Posts
- Implement Comments on Posts
- Implement User Groups
- Create Group
- Group Admin
- Group Member
- Send Request To Join Group
- Allow User to Join Group
- Group Posts
- Group Moderators
- Implement User Profiles
- Implement HashTags/Mentions (Frontend)
- Implement Search (Users/Posts/HashTags)
- Implement AutoComplete (Frontend)
- Implement CSRF Protection
- Mysql
- Database dump in ./static/documentation
- Redis
- PORT - Server Port
- SALT_ROUNDS - Bcrypt
- DB_HOST - Mysql Host
- DB_USER - Mysql user
- DB_PASSWORD - Mysql password
- DB_NAME - Mysql Database name
- DB_PORT - Mysql port
- SIGN_SECRET - JWT Sign Secret
- EXPIRY - Redis Cache Expiry
- FILE_PATH - Multer File Uploads
├── README.md
├── .env
├── .gitignore
├── config
│ └── db.js // Connect to MYSQL Database
├── controllers
│ ├── friends_controller.js // /friends Controllers
│ ├── graphs_controller.js // /graphs Controllers
│ ├── index_controller.js // / Controllers
│ ├── posts_controller.js // /posts Controllers
│ └── users_controller.js // /users Controllers
├── middleware
│ ├── graph_middlewares.js // Middleware to Load Graph for friends and extended_friends
│ ├── middleware_utils.js // Graph Middleware Utils
│ └── upload_middleware.js // Multer
├── models
│ ├── friend.js // Friend Model
│ ├── graph.js // Graph Model
│ ├── post.js // Post Model
│ └── user.js // User Model
├── package-lock.json
├── package.json
├── routes
│ ├── friends.js // /friends
│ ├── graphs.js // /graphs
│ ├── index.js // /
│ ├── posts.js // /posts
│ └── users.js // /users
├── server.js // Main App Entry Point
├── static
│ ├── documentation
│ │ ├── Flann.md
│ │ ├── Flann.postman_collection.json
│ │ ├── flann_dev_data_dump_2022-02-12_222010.sql
│ │ └── flann_dev_db_struct_2022-02-12_221900.sql
│ └── uploads
│ └── 1udo61a7du80ab8f3l9pxysilicate-structures.jpg
└── utils
├── DataStructures.js // Graph,PriorityQueue
├── get_friendship_data.js // Helpers for friends SQL
├── graph_utils.js // Build Graph Utils
├── redis_utils.js // Redis Setup and Helpers
├── uid.js // Generate Unique ID
├── validate.js // Get Unique Username
├── validate_username.js // Login Helper
└── verify_token.js // JWT Helper
localhost:8000/users/signUp
{
"username":"name12",
"email":"[email protected]",
"password":"12"
}
{
"success": true,
"error": null,
"results": "Account Created"
}
⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃
localhost:8000/users/login
{
"username":"name7",
"password":"7"
}
{
"success": true,
"error": null,
"results": {
"username": "name7",
"access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6Im5hbWU3IiwiaWF0IjoxNjQ0NjgwNDI3LCJleHAiOjE2NDQ3NjY4Mjd9.9CWbZnqlUY4omKgl2gLHlM5vOJ8PPfPdUOeCeCsA5HM"
}
}
⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃
localhost:8000/users/getUser/name2
Content-Type | Value |
---|---|
access_token | eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6Im5hbWU3IiwiaWF0IjoxNjQ2NzM5OTM0LCJleHAiOjE2NDY4MjYzMzR9.LaitqwKImOzGbmML_ShT09Ogapje5r6NAUOXarOD4ns |
{
"success": true,
"error": null,
"results": {
"username": "name2",
"email": "[email protected]",
"create_time": "2022-02-03T12:01:16.000Z"
}
}
⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃
localhost:8000/users/getAllUsers
{
"success": true,
"error": null,
"results": [
{
"username": "name1"
},
{
"username": "name10"
},
{
"username": "name11"
},
{
"username": "name2"
},
{
"username": "name3"
},
{
"username": "name4"
},
{
"username": "name5"
},
{
"username": "name6"
},
{
"username": "name7"
},
{
"username": "name8"
},
{
"username": "name9"
}
]
}
⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃
localhost:8000/friends/sendRequest
Content-Type | Value |
---|---|
access_token | eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6Im5hbWU3IiwiaWF0IjoxNjQ2NzM5OTM0LCJleHAiOjE2NDY4MjYzMzR9.LaitqwKImOzGbmML_ShT09Ogapje5r6NAUOXarOD4ns |
{
"to_user":"name12"
}
{
"success": true,
"error": null,
"results": "FriendRequest Sent"
}
⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃
localhost:8000/friends/acceptRequest
Content-Type | Value |
---|---|
access_token | eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6Im5hbWU3IiwiaWF0IjoxNjQ2NzM5OTM0LCJleHAiOjE2NDY4MjYzMzR9.LaitqwKImOzGbmML_ShT09Ogapje5r6NAUOXarOD4ns |
{
"request_id":"2tgqfyx2h3d0h4vjc5k18s"
}
{
"success": true,
"error": null,
"results": {
"fieldCount": 0,
"affectedRows": 0,
"insertId": 0,
"serverStatus": 2,
"warningCount": 0,
"message": "",
"protocol41": true,
"changedRows": 0
}
}
⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃
localhost:8000/friends/getAllFriends
Content-Type | Value |
---|---|
access_token | eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6Im5hbWU3IiwiaWF0IjoxNjQ2NzM5OTM0LCJleHAiOjE2NDY4MjYzMzR9.LaitqwKImOzGbmML_ShT09Ogapje5r6NAUOXarOD4ns |
{}
{
"success": true,
"error": null,
"results": [
{
"username": "name3",
"email": "[email protected]",
"create_time": "2022-02-03T12:01:29.000Z"
},
{
"username": "name6",
"email": "[email protected]",
"create_time": "2022-02-03T19:02:04.000Z"
},
{
"username": "name8",
"email": "[email protected]",
"create_time": "2022-02-04T08:39:01.000Z"
},
{
"username": "name9",
"email": "[email protected]",
"create_time": "2022-02-04T08:39:09.000Z"
}
]
}
⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃
localhost:8000/friends/getMutualFriends
Content-Type | Value |
---|---|
access_token | eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6Im5hbWU3IiwiaWF0IjoxNjQ2NzM5OTM0LCJleHAiOjE2NDY4MjYzMzR9.LaitqwKImOzGbmML_ShT09Ogapje5r6NAUOXarOD4ns |
{
"with_username":"name1"
}
{
"success": true,
"error": null,
"results": [
{
"username": "name3"
}
]
}
⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃
localhost:8000/graphs/getFriends
Content-Type | Value |
---|---|
access_token | eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6Im5hbWU3IiwiaWF0IjoxNjQ2NzM5OTM0LCJleHAiOjE2NDY4MjYzMzR9.LaitqwKImOzGbmML_ShT09Ogapje5r6NAUOXarOD4ns |
{
"success": true,
"error": null,
"results": {
"friends": [
"name3",
"name6",
"name8",
"name9"
]
}
}
⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃
localhost:8000/graphs/getExtendedFriends
Content-Type | Value |
---|---|
access_token | eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6Im5hbWU3IiwiaWF0IjoxNjQ2NzM5OTM0LCJleHAiOjE2NDY4MjYzMzR9.LaitqwKImOzGbmML_ShT09Ogapje5r6NAUOXarOD4ns |
{
"success": true,
"error": null,
"results": {
"extended_friends": [
"name1",
"name10",
"name2",
"name4",
"name5"
]
}
}
⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃
localhost:8000/posts/createPost
Content-Type | Value |
---|---|
access_token | eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6Im5hbWU3IiwiaWF0IjoxNjQ2NzM5OTM0LCJleHAiOjE2NDY4MjYzMzR9.LaitqwKImOzGbmML_ShT09Ogapje5r6NAUOXarOD4ns |
Param | value | Type |
---|---|---|
visibility | 2 | text |
img_src | 5i9TjHK0S/silicate-structures.jpg | file |
content | This is a new post | text |
{
"success": true,
"error": null
}
⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃
localhost:8000/posts/getAllPublicPosts
Content-Type | Value |
---|---|
access_token | eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6Im5hbWUxIiwiaWF0IjoxNjQ0NjY2NzQyLCJleHAiOjE2NDQ3NTMxNDJ9.yVAfzNysgpiuriVa-UurvLB9Bt2teapQBT3uBlawUFE |
{
"success": true,
"error": null,
"results": [
{
"post_id": "1ueti9ar8q20f6r7ymm7izv",
"content": "This is an image upload by name7",
"visibility": "0",
"username": "name7",
"create_time": "2022-02-12T15:44:39.000Z",
"img_src": "static/uploads/1udo61a7du80ab8f3l9pxysilicate-structures.jpg"
},
{
"post_id": "2eufvri9hwa0c8d9au5cjtv",
"content": "This is an image upload",
"visibility": "0",
"username": "name1",
"create_time": "2022-02-12T15:12:07.000Z",
"img_src": "static/uploads/2dd7z8vrymk0x3blp4l55bgsilicate-structures.jpg"
},
{
"post_id": "2k6xgkf2pa30pe63evdk8us",
"content": "This is an image upload by name7",
"visibility": "0",
"username": "name7",
"create_time": "2022-02-12T15:20:35.000Z",
"img_src": "static/uploads/2j74fi00qtw0xj9vj1fpx3gsilicate-structures.jpg"
},
{
"post_id": "3jwu5u5beje0kxbdowuespj",
"content": "This is an image upload by name7",
"visibility": "0",
"username": "name1",
"create_time": "2022-02-12T15:15:17.000Z",
"img_src": "static/uploads/3jv7z1xnb070qq5438p066silicate-structures.jpg"
},
{
"post_id": "45rg7l2p5t806rtlh5u2qkr",
"content": "This is an image upload by name7",
"visibility": "0",
"username": "name7",
"create_time": "2022-02-12T15:15:45.000Z",
"img_src": "static/uploads/45q74ijjrob0zb86r44myysilicate-structures.jpg"
},
{
"post_id": "elevzp4uf1d0wkd7kcylxym",
"content": "This is name1 first post",
"visibility": "0",
"username": "name1",
"create_time": "2022-02-12T11:59:21.000Z",
"img_src": null
}
]
}
⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃
localhost:8000/posts/getAllFriendsPosts
Content-Type | Value |
---|---|
access_token | eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6Im5hbWU3IiwiaWF0IjoxNjQ0Njc4ODMzLCJleHAiOjE2NDQ3NjUyMzN9.Z29Qi-w6fGzNAFI-LHAR7pYsnsil7CcWzYpdkCqULFg |
{
"success": true,
"error": null,
"results": []
}
⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃
localhost:8000/posts/getAllExtendedFriendsPosts
Content-Type | Value |
---|---|
access_token | eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6Im5hbWU3IiwiaWF0IjoxNjQ0Njc4ODMzLCJleHAiOjE2NDQ3NjUyMzN9.Z29Qi-w6fGzNAFI-LHAR7pYsnsil7CcWzYpdkCqULFg |
{
"success": true,
"error": null,
"results": [
{
"post_id": "1r09inox2xp0vk6l97rp1oo",
"content": "This is name1 third post visibile to friends_of_friends",
"visibility": "2",
"username": "name1",
"create_time": "2022-02-12T12:00:24.000Z",
"img_src": null
}
]
}
⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃
localhost:8000/static/uploads/2j74fi00qtw0xj9vj1fpx3gsilicate-structures.jpg
⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃
localhost:8000/graphs/getRecommendations
Content-Type | Value |
---|---|
access_token | eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6Im5hbWU3IiwiaWF0IjoxNjQ2NzM5OTM0LCJleHAiOjE2NDY4MjYzMzR9.LaitqwKImOzGbmML_ShT09Ogapje5r6NAUOXarOD4ns |
{
"success": true,
"error": null,
"results": {
"friend_recommendations": [
{
"friend": "name4",
"probability": 0.5
},
{
"friend": "name10",
"probability": 0.25
},
{
"friend": "name6",
"probability": 0.25
},
{
"friend": "name2",
"probability": 0.2
},
{
"friend": "name8",
"probability": 0.2
},
{
"friend": "name9",
"probability": 0.17
},
{
"friend": "name1",
"probability": 0.14
},
{
"friend": "name3",
"probability": 0.14
},
{
"friend": "name11",
"probability": 0
},
{
"friend": "name5",
"probability": 0
},
{
"friend": "name7",
"probability": 0
}
]
}
}
⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃
localhost:8000/posts/getSinglePublicPost
Content-Type | Value |
---|---|
access_token | eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6Im5hbWU3IiwiaWF0IjoxNjQ2NzM5OTM0LCJleHAiOjE2NDY4MjYzMzR9.LaitqwKImOzGbmML_ShT09Ogapje5r6NAUOXarOD4ns |
{
"post_id": "1ueti9ar8q20f6r7ymm7izv"
}
{
"success": true,
"error": null,
"results": {
"post_id": "1ueti9ar8q20f6r7ymm7izv",
"content": "This is an image upload by name7",
"visibility": "0",
"username": "name7",
"create_time": "2022-02-12T15:44:39.000Z",
"img_src": "static/uploads/1udo61a7du80ab8f3l9pxysilicate-structures.jpg"
}
}
⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃
localhost:8000/posts/getSingleFriendsPost
Content-Type | Value |
---|---|
access_token | eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6Im5hbWU3IiwiaWF0IjoxNjQ2NzMzNTgyLCJleHAiOjE2NDY4MTk5ODJ9.yTvii8BRjyP69-Tef-sa4qa-UMG7bYzDly6JwomeiME |
{
"post_id":"1ahgdicyy9d0bxkdswbonv4"
}
{
"success": true,
"error": null,
"results": [
{
"post_id": "1ahgdicyy9d0bxkdswbonv4",
"content": "This is name1 second post only visibile to friends",
"visibility": "1",
"username": "name1",
"create_time": "2022-02-12T12:00:02.000Z",
"img_src": null
}
]
}
⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃
localhost:8000/posts/getSingleExtendedFriendsPost
Content-Type | Value |
---|---|
access_token | eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6Im5hbWU3IiwiaWF0IjoxNjQ2NzMzNTgyLCJleHAiOjE2NDY4MTk5ODJ9.yTvii8BRjyP69-Tef-sa4qa-UMG7bYzDly6JwomeiME |
{
"post_id":"elevzp4uf1d0wkd7kcylxym"
}
{
"success": true,
"error": null,
"results": [
{
"post_id": "elevzp4uf1d0wkd7kcylxym",
"content": "This is name1 first post",
"visibility": "2",
"username": "name5",
"create_time": "2022-02-12T11:59:21.000Z",
"img_src": null
}
]
}