Skip to content

Commit 5d89a09

Browse files
committed
Add Postman Collection
1 parent be3cb51 commit 5d89a09

File tree

1 file changed

+130
-0
lines changed

1 file changed

+130
-0
lines changed
Lines changed: 130 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,130 @@
1+
{
2+
"variables": [],
3+
"info": {
4+
"name": "Learn2Crack Node Login",
5+
"_postman_id": "c0634f1a-754c-2350-3e46-42cea6a1c336",
6+
"description": "",
7+
"schema": "https://schema.getpostman.com/json/collection/v2.0.0/collection.json"
8+
},
9+
"item": [
10+
{
11+
"name": "Register",
12+
"request": {
13+
"url": "http://127.0.0.1:8080/api/v1/users",
14+
"method": "POST",
15+
"header": [
16+
{
17+
"key": "Content-Type",
18+
"value": "application/json",
19+
"description": ""
20+
}
21+
],
22+
"body": {
23+
"mode": "raw",
24+
"raw": "{\n\t\"name\":\"Raj Amal W\",\n\t\"email\":\"[email protected]\",\n\t\"password\":\"rajamalw\"\n}"
25+
},
26+
"description": ""
27+
},
28+
"response": []
29+
},
30+
{
31+
"name": "Login",
32+
"request": {
33+
"url": "http://127.0.0.1:8080/api/v1/authenticate",
34+
"method": "POST",
35+
"header": [
36+
{
37+
"key": "Authorization",
38+
"value": "Basic cmFqLmFtYWx3QGdtYWlsLmNvbTpyYWphbWFsdw==",
39+
"description": ""
40+
}
41+
],
42+
"body": {
43+
"mode": "formdata",
44+
"formdata": []
45+
},
46+
"description": ""
47+
},
48+
"response": []
49+
},
50+
{
51+
"name": "Get Profile",
52+
"request": {
53+
"url": "http://127.0.0.1:8080/api/v1/users/[email protected]",
54+
"method": "GET",
55+
"header": [
56+
{
57+
"key": "x-access-token",
58+
"value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdGF0dXMiOjIwMCwibWVzc2FnZSI6InJhai5hbWFsd0BnbWFpbC5jb20iLCJpYXQiOjE0NzQzNzY4MjcsImV4cCI6MTQ3NDM3ODI2N30.adMsRuj2NbxEHhVCmSA_ulcihaxDg8DtW83cj4ZzW-A",
59+
"description": ""
60+
}
61+
],
62+
"body": {
63+
"mode": "formdata",
64+
"formdata": []
65+
},
66+
"description": ""
67+
},
68+
"response": []
69+
},
70+
{
71+
"name": "Change Password ",
72+
"request": {
73+
"url": "http://127.0.0.1:8080/api/v1/users/[email protected]",
74+
"method": "PUT",
75+
"header": [
76+
{
77+
"key": "x-access-token",
78+
"value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdGF0dXMiOjIwMCwibWVzc2FnZSI6InJhai5hbWFsd0BnbWFpbC5jb20iLCJpYXQiOjE0NzQzNzY4MjcsImV4cCI6MTQ3NDM3ODI2N30.adMsRuj2NbxEHhVCmSA_ulcihaxDg8DtW83cj4ZzW-A",
79+
"description": ""
80+
},
81+
{
82+
"key": "Content-Type",
83+
"value": "application/json",
84+
"description": ""
85+
}
86+
],
87+
"body": {
88+
"mode": "raw",
89+
"raw": "{\n\t\"password\":\"raj\",\n\t\"newPassword\":\"raj\"\n}"
90+
},
91+
"description": ""
92+
},
93+
"response": []
94+
},
95+
{
96+
"name": "Reset Password Init",
97+
"request": {
98+
"url": "http://127.0.0.1:8080/api/v1/users/[email protected]/password",
99+
"method": "POST",
100+
"header": [],
101+
"body": {
102+
"mode": "raw",
103+
"raw": ""
104+
},
105+
"description": ""
106+
},
107+
"response": []
108+
},
109+
{
110+
"name": "Reset Password Finish",
111+
"request": {
112+
"url": "http://127.0.0.1:8080/api/v1/users/[email protected]/password",
113+
"method": "POST",
114+
"header": [
115+
{
116+
"key": "Content-Type",
117+
"value": "application/json",
118+
"description": ""
119+
}
120+
],
121+
"body": {
122+
"mode": "raw",
123+
"raw": "{\n\t\"token\":\"J2RsPMkq\",\n\t\"password\":\"rajamalw\"\n}"
124+
},
125+
"description": ""
126+
},
127+
"response": []
128+
}
129+
]
130+
}

0 commit comments

Comments
 (0)