Files
mtusi2026lab3/examples/requests.http
T
2026-11-09 19:51:17 +03:00

24 lines
418 B
HTTP

POST /api/auth/login HTTP/1.1
Host: localhost:8080
Content-Type: application/json
{
"login": "user",
"password": "password"
}
POST /api/messages HTTP/1.1
Host: localhost:8080
Content-Type: application/json
Authorization: Bearer <token>
Idempotency-Key: <idempotency-key>
{
"recipient": "user",
"body": "Hello, World!"
}
GET /api/messages HTTP/1.1
Host: localhost:8080
Authorization: Bearer <token>