Files
quyun-v2/backend/tests/super.http
2025-12-18 00:21:49 +08:00

30 lines
634 B
HTTP

@host = http://localhost:8080
### Login
POST {{ host }}/super/v1/auth/login
Content-Type: application/json
{
"username":"test-user",
"password":"test-password"
}
### update tenant expire
PATCH {{ host }}/super/v1/tenants/2
Content-Type: application/json
{
"duration": 7
}
### test tenants
GET {{ host }}/super/v1/auth/token
Content-Type: application/json
### test tenants
GET {{ host }}/t/2s/v1/me
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoyLCJpc3MiOiJ2MiIsImV4cCI6MTc2NjU5MzAwMywibmJmIjoxNzY1OTg4MTkzfQ.E7MBjjLMXdaF4pfJDEIXnpaW9Af8XB4Fb5JGSI7wMGk