Files
Reservair/tests/hurl/Reservations/reservation_can_be_created.hurl
T

21 lines
479 B
Plaintext
Raw Normal View History

2026-06-11 19:03:29 +02:00
# 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}}"