31 lines
457 B
HTTP
31 lines
457 B
HTTP
# Test your FastAPI endpoints
|
|
|
|
GET http://127.0.0.1:8000/test
|
|
Accept: application/json
|
|
|
|
###
|
|
|
|
POST http://127.0.0.1:8000/login
|
|
Content-Type: application/json
|
|
|
|
{
|
|
"username": "test",
|
|
"password": "test"
|
|
}
|
|
|
|
###
|
|
|
|
POST http://127.0.0.1:8000/login
|
|
Content-Type: application/x-www-form-urlencoded
|
|
|
|
username=test &password=test
|
|
|
|
###
|
|
|
|
POST http://127.0.0.1:8000/login
|
|
Content-Type: application/x-www-form-urlencoded
|
|
|
|
{
|
|
"username": "test",
|
|
"password": "test"
|
|
}
|