forked from ChangWynn/MAKERS-acebook-project
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Mobile_Acebook_Backend.postman_collection.json
76 lines (76 loc) · 1.82 KB
/
Mobile_Acebook_Backend.postman_collection.json
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
{
"info": {
"name": "Mobile Acebook Backend",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "Sign up a new user",
"request": {
"method": "POST",
"url": "http://127.0.0.1:8080/users",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{ \"email\": \"example@email.com\", \"password\": \"examplepassword\" }"
}
}
},
{
"name": "Log in an existing user",
"request": {
"method": "POST",
"url": "http://127.0.0.1:8080/tokens",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{ \"email\": \"example@email.com\", \"password\": \"examplepassword\" }"
}
}
},
{
"name": "Create a new post",
"request": {
"method": "POST",
"url": "http://127.0.0.1:8080/posts",
"header": [
{
"key": "Authorization",
"value": "Bearer example_token"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{ \"message\": \"This is the message for a new post\", \"publicID\": \"This is the publicID value for the post image.\" }"
}
}
},
{
"name": "Fetch all posts",
"request": {
"method": "GET",
"url": "http://127.0.0.1:8080/posts",
"header": [
{
"key": "Authorization",
"value": "Bearer example_token"
}
]
}
}
]
}