From 3d23da03cdc7db97bd17379908f39464696ceb12 Mon Sep 17 00:00:00 2001 From: Julian Acuna-Gonzalez <60046469+jacuna88@users.noreply.github.com> Date: Sat, 9 Apr 2022 13:51:44 -0500 Subject: [PATCH] Update reservations.md (#71) * Update reservations.md reservation_date_time key does not work as it is in the POST example right now, it should be reserve_date and reserve_time properly formatted reservation update example was corrected too, the changed key should be email, not last name * Update reservations.md Co-authored-by: Sam Poyigi <6567634+sampoyigi@users.noreply.github.com> --- docs/reservations.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/reservations.md b/docs/reservations.md index 529cbe9..f602223 100644 --- a/docs/reservations.md +++ b/docs/reservations.md @@ -195,6 +195,8 @@ Required**. The reservation's first name (between 2 and 32 characters in length) Required**. The reservation's last name (between 2 and 32 characters in length) | | `email` | `string` | **Required**. The reservation's email address | | `telephone` | `string` | The reservation's telephone number | +| `reserve_date` | `string` | The reservation's date in format Y-m-d | +| `reserve_time` | `string` | The reservation's hour in format H:i | #### Payload example @@ -209,7 +211,8 @@ Required**. The reservation's last name (between 2 and 32 characters in length) "email": "xigakube@mailinator.net", "telephone": "+1 (828) 231-8892", "comment": "Cillum eum cupidatat", - "reserve_date_time": "2020-06-26 19:35:00" + "reserve_date": "2022-06-26" + "reserve_time": "19:35" } ``` @@ -395,7 +398,7 @@ Status: 200 OK "table_id": 0, "guest_num": 2, "first_name": "Joseph", - "last_name": "joseph@bloggs.com", + "last_name": "Student", "email": "xigakube@mailinator.net", "telephone": "+1 (828) 231-8892", "comment": "Cillum eum cupidatat",