mirror of
https://github.com/stardrophere/InsightRadar.git
synced 2026-06-06 00:00:05 +08:00
35 lines
617 B
HTTP
35 lines
617 B
HTTP
# 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
|
|
|
|
{
|
|
"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"
|
|
}
|