Add drag and drop creation of schedule
This commit is contained in:
parent
b7d6476a70
commit
84f8e71239
38 changed files with 1277 additions and 548 deletions
75
src/jvmTest/resources/sample.http
Normal file
75
src/jvmTest/resources/sample.http
Normal file
|
@ -0,0 +1,75 @@
|
|||
POST http://localhost:8080/api/authenticate
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"username": "admin",
|
||||
"password": "admin"
|
||||
}
|
||||
|
||||
|
||||
> {%
|
||||
client.assert(response.body.OK === true, "Login failed!");
|
||||
client.global.set("auth_token", response.headers.valueOf("Set-Cookie"));
|
||||
%}
|
||||
|
||||
###
|
||||
|
||||
POST http://localhost:8080/api/rooms
|
||||
Content-Type: application/json
|
||||
Cookie: {{auth_token}}
|
||||
|
||||
{
|
||||
"name": "E006",
|
||||
"places": 20,
|
||||
"projector": true
|
||||
}
|
||||
|
||||
###
|
||||
|
||||
POST http://localhost:8080/api/rooms
|
||||
Content-Type: application/json
|
||||
Cookie: {{auth_token}}
|
||||
|
||||
{
|
||||
"name": "E007",
|
||||
"places": 20,
|
||||
"projector": true
|
||||
}
|
||||
|
||||
###
|
||||
|
||||
POST http://localhost:8080/api/rooms
|
||||
Content-Type: application/json
|
||||
Cookie: {{auth_token}}
|
||||
|
||||
{
|
||||
"name": "E008",
|
||||
"places": 20,
|
||||
"projector": true
|
||||
}
|
||||
|
||||
###
|
||||
|
||||
POST http://localhost:8080/api/rooms
|
||||
Content-Type: application/json
|
||||
Cookie: {{auth_token}}
|
||||
|
||||
{
|
||||
"name": "E009",
|
||||
"places": 20,
|
||||
"projector": true
|
||||
}
|
||||
|
||||
###
|
||||
|
||||
POST http://localhost:8080/api/rooms
|
||||
Content-Type: application/json
|
||||
Cookie: {{auth_token}}
|
||||
|
||||
{
|
||||
"name": "E010",
|
||||
"places": 20,
|
||||
"projector": true
|
||||
}
|
||||
|
||||
###
|
Loading…
Add table
Add a link
Reference in a new issue