☑Kizspy.me
URI:
http://localhost:9999/api/users/login
Method: POST
Input: JSON containing email and password.
Output: Returns a JWT token if credentials are valid
(payload={id:user._id); JWT_SECRET read from .env; expiresin: '1h')
Sample Input/Output: (Give the test data in SampleTest.json, in the given folder)
POST about:9999/apogin
Query Heaters Auth Body Tests Pre Bun
Send
Status 200 OK Size 183 Bytes Tine 125 ms
Response Headers Cookies
Resub
Dock
29
JSON
Text form Form-encode GraphQL Bary
"token": "eyhodciittiset
ay70202613v3YzAPWQ0Hz
ISON Content
Finne
200wZwNzQxNz1Q.cazz
STACS2PQybjA121 Tapaue"
"
> >
2
"all" "Johnpple.com",
.
4
>
2. Protected API: Retrieve Customer Profile
URI:
http://localhost:9999/api/users/profile
• Method: GET
Header: Authorization: Bearer <token>
Output: Returns customer details if the token is valid.
• Sample Input/Output:
Zoom
GET
http://localhost/apple
Send
Status: 200 OK Size: 144 Bytes Time 15 m
+ 80%
Close