add http files
This commit is contained in:
41
http/account-registry/account.http
Normal file
41
http/account-registry/account.http
Normal file
@@ -0,0 +1,41 @@
|
||||
### 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"
|
||||
]
|
||||
}
|
||||
8
http/account-registry/accounts.http
Normal file
8
http/account-registry/accounts.http
Normal file
@@ -0,0 +1,8 @@
|
||||
### Get accounts
|
||||
GET {{hostname}}/accounts
|
||||
|
||||
### Get accounts by page
|
||||
GET {{hostname}}/accounts/page-1
|
||||
|
||||
### Get accounts by page and size
|
||||
GET {{hostname}}/accounts/page-1/show-1
|
||||
2
http/account-registry/actuator.http
Normal file
2
http/account-registry/actuator.http
Normal file
@@ -0,0 +1,2 @@
|
||||
### get actuator
|
||||
GET {{hostname}}/actuator
|
||||
44
http/account-registry/authentication.http
Normal file
44
http/account-registry/authentication.http
Normal file
@@ -0,0 +1,44 @@
|
||||
### Get admin information
|
||||
POST {{hostname}}/authenticate
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"username": "admin",
|
||||
"password": "pass"
|
||||
}
|
||||
|
||||
### Get user information
|
||||
POST {{hostname}}/authenticate
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"username": "user",
|
||||
"password": "pass"
|
||||
}
|
||||
|
||||
### Get bad user
|
||||
POST {{hostname}}/authenticate
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"username": "bad user",
|
||||
"password": "pass"
|
||||
}
|
||||
|
||||
### Get bad pass
|
||||
POST {{hostname}}/authenticate
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"username": "user",
|
||||
"password": "bad pass"
|
||||
}
|
||||
|
||||
### Get disabled user
|
||||
POST {{hostname}}/authenticate
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"username": "disabled",
|
||||
"password": "pass"
|
||||
}
|
||||
11
http/account-registry/http-client.env.json-dev
Normal file
11
http/account-registry/http-client.env.json-dev
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"development": {
|
||||
"hostname": "http://localhost:8080"
|
||||
},
|
||||
"docker": {
|
||||
"hostname": "http://localhost:9050"
|
||||
},
|
||||
"testing": {
|
||||
"hostname": "http://10.0.x.x"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user