-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathotpService.postman_collection.json
114 lines (114 loc) · 2.47 KB
/
otpService.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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
{
"info": {
"_postman_id": "2f250a7e-3ff5-4ad3-9b03-21aed7a3ec55",
"name": "otpService",
"description": "Endpoints available:-\n1./api/sent-otp = TYPE:POST | PARAMETERS: JSON object with keys :{mobile} | RESPONSE - JSON object with \t\tkeys:{success,message/token}\n\n2./api/verify-otp = TYPE:POST | PARAMETERS: JSON object with keys :{token,otp} | RESPONSE - JSON object with keys:{success,message}\n\n3./api/get-details = TYPE:GET | PARAMETERS: NONE | RESPONSE - JSON object with keys:{success,message/details}\n\n4./api/get-summary = TYPE:GET | PARAMETERS: NONE | RESPONSE - JSON object with keys:{success,message/smsSent,UniqueNum}\n",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "sendind OTP",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n\t\"mobile\":\"7417629324\"\n}"
},
"url": {
"raw": "localhost:3000/api/send-otp",
"host": [
"localhost"
],
"port": "3000",
"path": [
"api",
"send-otp"
]
}
},
"response": []
},
{
"name": "verifying otp",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n\t\"token\":\"0Aztss8LiwvWC0Cg\",\n\t\"otp\":\"566541\"\n}"
},
"url": {
"raw": "localhost:3000/api/verify-otp",
"host": [
"localhost"
],
"port": "3000",
"path": [
"api",
"verify-otp"
]
}
},
"response": []
},
{
"name": "Getting SMS sent and unique mobile numbers",
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "localhost:3000/api/get-summary",
"host": [
"localhost"
],
"port": "3000",
"path": [
"api",
"get-summary"
]
}
},
"response": []
},
{
"name": "Getting unique mobile numbers and their OTP count",
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "localhost:3000/api/get-details",
"host": [
"localhost"
],
"port": "3000",
"path": [
"api",
"get-details"
]
}
},
"response": []
}
]
}