initial
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
POST http://localhost/wordpress/wp-json/reservations/v1/object
|
||||
{
|
||||
"name": "TestObject1"
|
||||
}
|
||||
HTTP 200
|
||||
[Captures]
|
||||
object_id: jsonpath "$[0]"
|
||||
|
||||
GET http://localhost/wordpress/wp-json/reservations/v1/object
|
||||
HTTP 200
|
||||
[Asserts]
|
||||
jsonpath "$[-1:].reservation_object_id" count == 1
|
||||
jsonpath "$[-1:].reservation_object_id[0]" == {{object_id}}
|
||||
|
||||
# Create it's timetable
|
||||
POST http://localhost/wordpress/wp-json/reservations/v1/object/{{object_id}}/timetable
|
||||
{
|
||||
"block_len": 30
|
||||
}
|
||||
HTTP 200
|
||||
Reference in New Issue
Block a user