react-logo/misc/projects/ticketing_app.http

82 lines
974 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
###
// List projects
GET {{baseURL}}/projects
Content-Type: application/json
###
// Show project
GET {{baseURL}}/projects/17
Content-Type: application/json
###
// Create project
POST {{baseURL}}/projects
Content-Type: application/json
{
"name": "new-project",
"users": [18]
}
###
// Create users
POST {{baseURL}}/users
Content-Type: application/json
{
"username": "test12",
"password": "test12"
}