POST /domains HTTP/1.1
Content-Type: application/json
Authorization: Bearer eyJraWQiOiIxMjMiLCJhbGciOiJSUzI1NiJ9.eyJzdWIiOiI1ZWUzNzhhZDQ3NDg5MTI5Y2M0OWIzYjAiLCJyb2xlcyI6W10sImlzcyI6Im1tYWR1LmNvbSIsImdyb3VwcyI6W10sImF1dGhvcml0aWVzIjpbXSwiY2xpZW50X2lkIjoiMjJlNjViNzItOTIzNC00MjgxLTlkNzMtMzIzMDA4OWQ0OWE3IiwiZG9tYWluX2lkIjoiMCIsImF1ZCI6InRlc3QiLCJuYmYiOjE1OTQ0NDkzNTIsInVzZXJfaWQiOiIxMTExMTExMTEiLCJzY29wZSI6ImEuZ2xvYmFsLmRvbWFpbi5pbml0aWFsaXplIiwiZXhwIjoxNTk0NDQ5MzU3LCJpYXQiOjE1OTQ0NDkzNTIsImp0aSI6ImY1YmY3NWE2LTA0YTAtNDJmNy1hMWUwLTU4M2UyOWNkZTg2YyJ9.jwGZcf3sXjMjBgBew4OA8Mgtk6T-rtcHx3oweOs_RwfDb02SdPsh5zygom910G24UGRoBq8lDH9ppn8J37wArjDsuC8AP0IUNhWSXWHtBwIgOB_4EAgwwJhc5jCScBNWBIhIx6KgtK_fQQhUXFzIwG_V1ppb99jcJKPWuszEpmqccKtN0nn12L2CgSHERIAAnnshfrU21HgmSgPMsveCWgtynl5_ve_jGcSkPuqwefRzL6Og0ud_pF9Lm0qPk9RmkgCBG-eywooFnzpJnH1l7qWx9_yWG6zGMJuiZTlQL4_XhVuDs8zlM3v5W57Hlf8m7TVqj4dAZs5YF-vCA-RU5A
Content-Length: 1361
Host: localhost:8080
[
{
"id": "1312",
"name": "global-config",
"users": [
{
"username": "test",
"password": "test",
"externalId": 1111,
"properties": {
"country": "nigerian"
}
}
],
"authorities": [
{
"identifier": "read",
"name": "Read",
"description": "Read Things"
},
{
"identifier": "execute",
"name": "Execute",
"description": "Execute Things"
}
],
"roles": [
{
"identifier": "admin",
"name": "Admin",
"description": "admin"
}
],
"roleAuthorities": [
{
"role": "admin",
"authority": "execute"
}
],
"userAuthorities": [
{
"user": "test",
"authority": "read"
}
],
"userRoles": [
{
"user": "test",
"role": "admin"
}
],
"groups": [
{
"identifier": "workers",
"name": "Workers",
"description": "App Workers"
},
{
"identifier": "lawyers",
"name": "Lawyers",
"description": "Law people",
"parent": "workers"
}
],
"userGroups": [
{
"user": "test",
"group": "lawyers"
}
]
}
]