This commit is contained in:
Martin Slachta
2026-06-11 19:03:29 +02:00
commit 0d829845c4
150 changed files with 38582 additions and 0 deletions
+29
View File
@@ -0,0 +1,29 @@
# test objects
GET http://localhost/wordpress/wp-json/reservations/v1/object
HTTP 200
[Asserts]
jsonpath "$" isEmpty
POST http://localhost/wordpress/wp-json/reservations/v1/object
{
"name": "TestObject1"
}
HTTP 200
GET http://localhost/wordpress/wp-json/reservations/v1/object
HTTP 200
[Captures]
object_id: jsonpath "$[0].reservation_object_id"
[Asserts]
jsonpath "$" count == 1
jsonpath "$[0].name" == "TestObject1"
jsonpath "$[0].is_readonly" == "0"
DELETE http://localhost/wordpress/wp-json/reservations/v1/object/a
HTTP 404
DELETE http://localhost/wordpress/wp-json/reservations/v1/object/1
HTTP 404
DELETE http://localhost/wordpress/wp-json/reservations/v1/object/{{object_id}}
HTTP 200