Skip to content

Commit

Permalink
Update reservations.md (#71)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>
  • Loading branch information
jacuna88 and sampoyigi authored Apr 9, 2022
1 parent 4b8e510 commit 3d23da0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions docs/reservations.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -209,7 +211,8 @@ Required**. The reservation's last name (between 2 and 32 characters in length)
"email": "[email protected]",
"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"
}
```

Expand Down Expand Up @@ -395,7 +398,7 @@ Status: 200 OK
"table_id": 0,
"guest_num": 2,
"first_name": "Joseph",
"last_name": "[email protected]",
"last_name": "Student",
"email": "[email protected]",
"telephone": "+1 (828) 231-8892",
"comment": "Cillum eum cupidatat",
Expand Down

0 comments on commit 3d23da0

Please sign in to comment.