Rust with Rocket framework
Refer to src/tests/mod.rs
for examples
Returns a Date object converted to JSON.
curl -X GET http://127.0.0.1:8000/date/now
{
"day": 26,
"month": 12,
"year": 2023
}
Adds a month to the submitted date.
curl -X POST -H "Content-Type: application/json" -d '{"day": 3, "month": 6, "year": 2022}' http://127.0.0.1:8000/date/add-month
{
"day": 3,
"month": 7,
"year": 2022
}