- add end-to-end test AccountsEndpoint - extract get accounts from account.http to accounts.http - extract get accounts from AccountController to AccountsController - move spring boot test file to integration test - add schema.sql - add dependencies for integration test
42 lines
755 B
HTTP
42 lines
755 B
HTTP
### get user by id
|
|
GET {{hostname}}/account-00000000-0000-7000-0000-000000000001
|
|
|
|
### add user
|
|
POST {{hostname}}/account
|
|
Content-Type: application/json
|
|
|
|
{
|
|
"username": "user01010101",
|
|
"password": "p4ssw0rd",
|
|
"enabled": true,
|
|
"roles": [
|
|
"ROLE_ADMIN",
|
|
"ROLE_TEST"
|
|
]
|
|
}
|
|
|
|
### update user all information
|
|
PUT {{hostname}}/account-00000000-0000-7000-0000-000000000002
|
|
Content-Type: application/json
|
|
|
|
{
|
|
"username": "user",
|
|
"password": "pass",
|
|
"enabled": true,
|
|
"roles": [
|
|
"ROLE_TEST"
|
|
]
|
|
}
|
|
|
|
### update user information
|
|
PUT {{hostname}}/account-00000000-0000-7000-0000-000000000002
|
|
Content-Type: application/json
|
|
|
|
{
|
|
"username": "user",
|
|
"enabled": true,
|
|
"roles": [
|
|
"ROLE_TEST"
|
|
]
|
|
}
|