react-logo/misc/projects/ticketing_app.http

44 lines
547 B
HTTP

@baseURL = http://localhost:8001/api/v1
###
GET {{baseURL}}
###
// Login as "client1"
POST {{baseURL}}/login
Content-Type: application/json
{ "username": "client1", "password": "client1" }
###
// Login as "dev1"
POST {{baseURL}}/login
Content-Type: application/json
{ "username": "dev1", "password": "dev1" }
###
// Logout
GET {{baseURL}}/logout
Content-Type: application/json
###
// Get current user info
GET {{baseURL}}/me
Content-Type: application/json
###
// List users
GET {{baseURL}}/users
Content-Type: application/json