actix-sqlx-样板
使用SQLx的简单Actix-web样板
路线
网页
[GET] /health-check :检查服务器http GET localhost:8089/health-check 响应码200
原料药
[POST] /v1/login :身份验证
http POST localhost:8089/v1/login email=test@gmail.com password=0000
响应码200 :
{
" id " : " 123e4567-e89b-12d3-a456-426614174000 " ,
" email " : " test@gmail.com " ,
" expires_at " : " 2021-03-08T21:23:21Z " ,
" firstname " : " Toto " ,
" la
2021-06-28 15:44:11
22KB
Rust
1