Description:
Saves/updates the given user's name and date of birth in the database.
Request: PUT /hello/ { "dateOfBirth": "YYYY-MM-DD" }
Response: 204 No Content
Note:
-
must contains only letters.
-
YYYY-MM-DD must be a date before the today date.
Description: Returns hello birthday message for the given user
Request: Get /hello/
Response: 200 OK
Response Examples:
A. If username's birthday is in N days:
{ "message": "Hello, <username>! Your birthday is in N day(s)"}
B. If username's birthday is today:
{ "message": "Hello, <username>! Happy birthday!" }