界面优化

This commit is contained in:
stardrophere
2026-03-15 17:10:28 +08:00
parent 69479fc699
commit ffae889516
6 changed files with 119 additions and 7 deletions
+27 -4
View File
@@ -1,11 +1,34 @@
# Test your FastAPI endpoints
# Health
GET http://127.0.0.1:8000/
Accept: application/json
###
# Send register verification code
POST http://127.0.0.1:8000/api/v1/auth/register/send-code
Content-Type: application/json
GET http://127.0.0.1:8000/hello/User
Accept: application/json
{
"email": "demo@example.com"
}
###
# Register by verification code
POST http://127.0.0.1:8000/api/v1/auth/register
Content-Type: application/json
{
"email": "demo@example.com",
"password": "DemoPass123",
"verification_code": "123456",
"nickname": "demo_user"
}
###
# Login
POST http://127.0.0.1:8000/api/v1/auth/login
Content-Type: application/json
{
"email": "demo@example.com",
"password": "DemoPass123"
}