Simple REST APIs.
- Rocket
- Import database pokemon.sql at folder config
- run this project using cargo run
Routes:
-
(hello) GET /
-
(ping) GET /ping
-
(loops) GET /loops
-
(user) GET /user/{name}/{age}
-
(hello_param) GET /hello/{name}/{age}
-
Response hello_param:
{
"active": true,
"username": "burhan",
"email": "burhan@gggmail.com",
"age": 12,
"duration": "Millis: 0 ms"
}