-
Notifications
You must be signed in to change notification settings - Fork 0
/
postman.json
80 lines (80 loc) · 2.26 KB
/
postman.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
77
78
79
80
{
"info": {
"_postman_id": "488753b9-1355-4ce0-b7aa-f1db54548056",
"name": "New Collection",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
"_exporter_id": "25337279",
"_collection_link": "https://www.postman.com/docking-module-operator-53420183/workspace/ecogather/collection/25337279-488753b9-1355-4ce0-b7aa-f1db54548056?action=share&source=collection_link&creator=25337279"
},
"item": [
{
"name": "register",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"username\": \"Adi\",\n \"email\": \"[email protected]\",\n \"password\": \"1234\"\n}\n",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://localhost:5000/api/v1/users/register",
"protocol": "http",
"host": ["localhost"],
"port": "5000",
"path": ["api", "v1", "users", "register"]
}
},
"response": []
},
{
"name": "login",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"email\": \"[email protected]\",\n \"password\": \"1234\"\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://localhost:5000/api/v1/users/login",
"protocol": "http",
"host": ["localhost"],
"port": "5000",
"path": ["api", "v1", "users", "login"]
}
},
"response": []
},
{
"name": "getUser",
"request": {
"method": "GET",
"header": [
{
"key": "Authorization",
"value": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6NywiaWF0IjoxNzAxMzU4MDY4fQ.4ivehC3-A3Y6LyF3jyAKThQX6HRjI4HM6KKeyPzGFw0",
"type": "text"
}
],
"url": {
"raw": "http://localhost:5000/api/v1/users/getUser",
"protocol": "http",
"host": ["localhost"],
"port": "5000",
"path": ["api", "v1", "users", "getUser"]
}
},
"response": []
}
]
}