The API endpoint allows users to fetch all posts posted by themselves or other users within the social media application.By accessing this endpoint, users can retrieve a collection of posts containing relevant information.
Example-> JSON data
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
{
"__v": 0,
"_id": "649fe0cfc4a9507d1220eeee",
"author": {
"__v": 0,
"_id": "649fe0cfc4a9507d1220ec2a",
"account": {
"_id": "649fe0cec4a9507d1220eb7a",
"avatar": {
"_id": "649fe0cec4a9507d1220eb7b",
"localPath": "",
"url": "https://cloudflare-ipfs.com/ipfs/Qmd3W5DuhgHirLHGVixi6V76LhCkZUz6pnFt5AJBiyvHye/avatar/344.jpg"
},
"email": "brant_rippin21@hotmail.com",
"username": "hilda_simonis75"
},
"bio": "milk junkie",
"countryCode": "+91",
"coverImage": {
"_id": "649fe0cfc4a9507d1220ec29",
"localPath": "",
"url": "https://via.placeholder.com/800x450.png"
},
"createdAt": "2023-07-01T08:16:15.063Z",
"dob": "2020-08-11T12:21:20.809Z",
"firstName": "Jerel",
"lastName": "Witting",
"location": "Kundecester, France",
"owner": "649fe0cec4a9507d1220eb7a",
"phoneNumber": "9360290409",
"updatedAt": "2023-07-01T08:16:15.847Z"
},
"comments": 16,
"content": "Quidem ut dolores.
Possimus rem aliquam expedita harum similique illo voluptatibus possimus odit.",
"createdAt": "2023-07-01T08:16:15.909Z",
"images": [
{
"_id": "649fe0cfc4a9507d1220eeef",
"localPath": "",
"url": "https://loremflickr.com/640/480/food?lock=897609019424768"
},
{
"_id": "649fe0cfc4a9507d1220eef0",
"localPath": "",
"url": "https://loremflickr.com/640/480/food?lock=2895110803030016"
},
{
"_id": "649fe0cfc4a9507d1220eef1",
"localPath": "",
"url": "https://loremflickr.com/640/480/food?lock=7434201863290880"
},
{
"_id": "649fe0cfc4a9507d1220eef2",
"localPath": "",
"url": "https://loremflickr.com/640/480/food?lock=2145901894172672"
},
{
"_id": "649fe0cfc4a9507d1220eef3",
"localPath": "",
"url": "https://loremflickr.com/640/480/food?lock=2603549741547520"
},
{
"_id": "649fe0cfc4a9507d1220eef4",
"localPath": "",
"url": "https://loremflickr.com/640/480/food?lock=8585818058784768"
}
],
"isBookmarked": false,
"isLiked": false,
"likes": 25,
"tags": [
"expedita",
"commodi",
"fugiat"
],
"updatedAt": "2023-07-01T08:16:15.909Z"
},
The API endpoint allows users to fetch a post by providing the post ID as a path variable.By accessing this endpoint and providing a valid post ID, users will receive a response containing the details of the post corresponding to the provided ID.
Example-> JSON data
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
{
"data": {
"__v": 0,
"_id": "649fe0cfc4a9507d1220eefc",
"author": {
"__v": 0,
"_id": "649fe0cfc4a9507d1220ec24",
"account": {
"_id": "649fe0cec4a9507d1220eb68",
"avatar": {
"_id": "649fe0cec4a9507d1220eb69",
"localPath": "",
"url": "https://cloudflare-ipfs.com/ipfs/Qmd3W5DuhgHirLHGVixi6V76LhCkZUz6pnFt5AJBiyvHye/avatar/97.jpg"
},
"email": "marietta_hoeger59@gmail.com",
"username": "joey_boyle24"
},
"bio": "squirrel advocate, person 🧊",
"countryCode": "+91",
"coverImage": {
"_id": "649fe0cfc4a9507d1220ec23",
"localPath": "",
"url": "https://via.placeholder.com/800x450.png"
},
"createdAt": "2023-07-01T08:16:15.061Z",
"dob": "2014-01-31T01:46:29.852Z",
"firstName": "Arjun",
"lastName": "Turcotte",
"location": "Fort Lizatown, Comoros",
"owner": "649fe0cec4a9507d1220eb68",
"phoneNumber": "9240836201",
"updatedAt": "2023-07-01T08:16:15.847Z"
},
"comments": 12,
"content": "Enim odio hic laboriosam tempora quis.
Odio asperiores sapiente atque repellendus sunt nesciunt quae.
Non debitis modi aspernatur.",
"createdAt": "2023-07-01T08:16:15.910Z",
"images": [
{
"_id": "649fe0cfc4a9507d1220eefd",
"localPath": "",
"url": "https://loremflickr.com/640/480/food?lock=8384240500604928"
},
{
"_id": "649fe0cfc4a9507d1220eefe",
"localPath": "",
"url": "https://loremflickr.com/640/480/food?lock=971703482056704"
},
{
"_id": "649fe0cfc4a9507d1220eeff",
"localPath": "",
"url": "https://loremflickr.com/640/480/food?lock=4492503323508736"
},
{
"_id": "649fe0cfc4a9507d1220ef00",
"localPath": "",
"url": "https://loremflickr.com/640/480/food?lock=4290222315536384"
},
{
"_id": "649fe0cfc4a9507d1220ef01",
"localPath": "",
"url": "https://loremflickr.com/640/480/food?lock=3838085238358016"
},
{
"_id": "649fe0cfc4a9507d1220ef02",
"localPath": "",
"url": "https://loremflickr.com/640/480/food?lock=3757971515375616"
}
],
"isBookmarked": false,
"isLiked": false,
"likes": 30,
"tags": [
"officia",
"suscipit",
"molestias",
"accusantium"
],
"updatedAt": "2023-07-01T08:16:15.910Z"
},
"message": "Post fetched successfully",
"statusCode": 200,
"success": true
}
The API endpoint allows users to fetch posts of other users by passing the username as a path variable.When accessing this endpoint and providing a valid username as a parameter, you will receive a response containing the posts associated with the specified username.
Example-> JSON data
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
{
"__v": 0,
"_id": "64a3db356b55dac333b0413d",
"author": {
"__v": 0,
"_id": "64a3daee2aaac053bc5972fe",
"account": {
"_id": "64a3daee2aaac053bc597261",
"avatar": {
"_id": "64a3daee2aaac053bc597262",
"localPath": "",
"url": "https://cloudflare-ipfs.com/ipfs/Qmd3W5DuhgHirLHGVixi6V76LhCkZUz6pnFt5AJBiyvHye/avatar/467.jpg"
},
"email": "shaniya.sawayn@gmail.com",
"username": "juana.kuhn"
},
"bio": "artist, singer, environmentalist",
"countryCode": "+91",
"coverImage": {
"_id": "64a3daee2aaac053bc5972fd",
"localPath": "",
"url": "https://via.placeholder.com/800x450.png"
},
"createdAt": "2023-07-04T08:40:14.894Z",
"dob": "2017-08-24T19:39:56.235Z",
"firstName": "Mercedes",
"lastName": "Hauck",
"location": "San Marcos, Faroe Islands",
"owner": "64a3daee2aaac053bc597261",
"phoneNumber": "9508373175",
"updatedAt": "2023-07-04T08:41:25.067Z"
},
"comments": 2,
"content": "Nobis voluptates commodi fuga fugit illum.
Sapiente provident numquam.
Ad ipsum explicabo recusandae voluptas esse.
Sunt dolores rerum quos et hic nemo aut officiis.",
"createdAt": "2023-07-04T08:41:25.251Z",
"images": [
{
"_id": "64a3db356b55dac333b0413e",
"localPath": "",
"url": "https://loremflickr.com/640/480/food?lock=7724182502637568"
},
{
"_id": "64a3db356b55dac333b0413f",
"localPath": "",
"url": "https://loremflickr.com/640/480/food?lock=4462542615216128"
},
{
"_id": "64a3db356b55dac333b04140",
"localPath": "",
"url": "https://loremflickr.com/640/480/food?lock=1111653196234752"
},
{
"_id": "64a3db356b55dac333b04141",
"localPath": "",
"url": "https://loremflickr.com/640/480/food?lock=6793340529934336"
},
{
"_id": "64a3db356b55dac333b04142",
"localPath": "",
"url": "https://loremflickr.com/640/480/food?lock=3233604247224320"
},
{
"_id": "64a3db356b55dac333b04143",
"localPath": "",
"url": "https://loremflickr.com/640/480/food?lock=4645562185940992"
}
],
"isBookmarked": false,
"isLiked": false,
"likes": 12,
"tags": [
"repellat",
"nesciunt",
"perferendis",
"quae",
"facilis"
],
"updatedAt": "2023-07-04T08:41:25.251Z"
}
The API endpoint allows users to retrieve posts by passing a tag name as a path variable.When accessing this endpoint and providing a valid tag name as part of the URL, the API will return a response containing posts that are associated with the specified tag.
Example-> JSON data
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
{
"__v": 0,
"_id": "64a3db356b55dac333b04183",
"author": {
"__v": 0,
"_id": "64a3daef2aaac053bc59735e",
"account": {
"_id": "64a3daee2aaac053bc597279",
"avatar": {
"_id": "64a3daee2aaac053bc59727a",
"localPath": "",
"url": "https://cloudflare-ipfs.com/ipfs/Qmd3W5DuhgHirLHGVixi6V76LhCkZUz6pnFt5AJBiyvHye/avatar/613.jpg"
},
"email": "jess_douglas77@gmail.com",
"username": "dakota18"
},
"bio": "thrush junkie 🤟🏾",
"countryCode": "+91",
"coverImage": {
"_id": "64a3daef2aaac053bc59735d",
"localPath": "",
"url": "https://via.placeholder.com/800x450.png"
},
"createdAt": "2023-07-04T08:40:15.022Z",
"dob": "2007-03-26T23:56:31.588Z",
"firstName": "Alba",
"lastName": "Mertz",
"location": "Aaronchester, Djibouti",
"owner": "64a3daee2aaac053bc597279",
"phoneNumber": "9071381869",
"updatedAt": "2023-07-04T08:41:25.069Z"
},
"comments": 3,
"content": "Tenetur vitae ex dolores delectus sunt fuga laborum.
Ipsa natus eum ea.
Perferendis quae iusto molestiae aperiam voluptatem mollitia.
Mollitia officia voluptatem incidunt adipisci vel.
Quibusdam esse quod id debitis.",
"createdAt": "2023-07-04T08:41:25.253Z",
"images": [
{
"_id": "64a3db356b55dac333b04184",
"localPath": "",
"url": "https://loremflickr.com/640/480/food?lock=3973741960757248"
},
{
"_id": "64a3db356b55dac333b04185",
"localPath": "",
"url": "https://loremflickr.com/640/480/food?lock=833628017786880"
},
{
"_id": "64a3db356b55dac333b04186",
"localPath": "",
"url": "https://loremflickr.com/640/480/food?lock=6587453112582144"
},
{
"_id": "64a3db356b55dac333b04187",
"localPath": "",
"url": "https://loremflickr.com/640/480/food?lock=7857152209190912"
},
{
"_id": "64a3db356b55dac333b04188",
"localPath": "",
"url": "https://loremflickr.com/640/480/food?lock=2079675230715904"
},
{
"_id": "64a3db356b55dac333b04189",
"localPath": "",
"url": "https://loremflickr.com/640/480/food?lock=3462723264315392"
}
],
"isBookmarked": false,
"isLiked": false,
"likes": 13,
"tags": [
"nesciunt",
"dolore",
"adipisci",
"error"
],
"updatedAt": "2023-07-04T08:41:25.253Z"
},