39 lines
811 B
HTTP
39 lines
811 B
HTTP
# For a quick start check out our HTTP Requests collection (Tools|HTTP Client|Open HTTP Requests Collection).
|
|
#
|
|
# Following HTTP Request Live Templates are available:
|
|
# * 'gtrp' and 'gtr' create a GET request with or without query parameters;
|
|
# * 'ptr' and 'ptrp' create a POST request with a simple or parameter-like body;
|
|
# * 'mptr' and 'fptr' create a POST request to submit a form with a text or file field (multipart/form-data);
|
|
|
|
POST {{baseUrl}}/api/login
|
|
Content-Type: application/json
|
|
|
|
{
|
|
"username": "admin",
|
|
"password": "123456"
|
|
}
|
|
|
|
###
|
|
|
|
POST {{baseUrl}}/api/login
|
|
Content-Type: application/json
|
|
|
|
{
|
|
"username": "tom",
|
|
"password": "1234567"
|
|
}
|
|
|
|
###
|
|
|
|
POST {{baseUrl}}/api/register
|
|
Content-Type: application/json
|
|
|
|
{
|
|
"username": "tom",
|
|
"password": "123456",
|
|
"password_repeat": "123456"
|
|
}
|
|
|
|
###
|
|
|