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
@@ -0,0 +1,21 @@
# Tests if reservation can be created
# Create reservation
POST http://localhost/wordpress/wp-json/reservations/v1/reservation
{
"metadata": {
"email": "test@test.cz",
"phone": "608 349 219"
},
"is_confirmed": null
}
HTTP 200
[Captures]
object_id: jsonpath "$"
# Get timetable
GET http://localhost/wordpress/wp-json/reservations/v1/reservation/{{object_id}}
HTTP 200
[Asserts]
jsonpath "$.name" == "Test Timetable"
jsonpath "$.id" == "{{object_id}}"