react-logo/misc/projects/ticketing_app.http

82 lines
974 B
Plaintext
Raw Permalink Normal View History

2020-02-17 22:28:57 +01:00
@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
2020-02-19 16:28:29 +01:00
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"
}