SDN302_-_PE_-_SP_2025_-_s_1_3471.webp
Aizawa2004

SDN302_-_PE_-_SP_2025_-_s_1_3471.webp

☑Kizspy.me
1. Login API
⚫ URI: http://localhost:9999/api/customers/login
Method: POST
• Input: JSON containing email and password.
Output: Returns a JWT token if credentials are valid
(payload={id:customer._id}; JWT_SECRET read from .env; expiresin: '1h')
Sample Input/Output: (Give the test data in SampleTest.json, in the given folder)
POST http://localhost:9999/api/customers/login
Query
Headers 2 Auth Body1 Tests
Pre Run
Send
Status: 200 OK Size: 183 Bytes Time: 107 ms
JSON XML Text Form Form-encode GraphQL Binary
JSON Content
1 (
2
3
}
"email": "[email protected]",
"password": "abc@123"
Zoom
+100%
Response Headers Cookies Results Dock
1
f
2
11 #
"token": "eyJhbGc0131Uz11NiIsInR5cC161kpXVC39
eyJpZCI6IjY3YmNhMDA4NmZhYzYjY30TE2Njcy2iIsI
m1hdCI6MT COMDUSMEMANSwiZXhwIjoxNzQwNTX20Tg1fQ
.xqr80sfDhcxMDxfe2nu7wkNisudp 3NyNH-UneV_va
Format
3
}
Close
Chưa có bình luận nào.

Thông tin

Category
SDN302
Thêm bởi
Aizawa2004
Ngày thêm
Lượt xem
1,234
Lượt bình luận
0
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom