Copyright © 2005-2022

Copies of this document may be made for your own use and for distribution to others, provided that you do not charge any fee for such copies and further provided that each copy contains this Copyright Notice, whether distributed in print or electronically.

Overview

This guide describes the RESTful API of the OpenWMS.org UAA (User Authentication & Administration) module and its usage. Some general terms and definitions are explained and declared in the first part of the document whereas in the second part the usage of the API is shown in a more use-case-driven approach.

Resources

A description of all used API resources.

Representation Formats

Basically JSON is used as representation format by default if not otherwise requested or mentioned below. XML format is supported for the index pages as well, but must be requested explicitly. Furthermore a vendor specific JSON format is used to represent resource representations. Therefore it’s absolutely required the Accept header denotes the demanded type. Find the type in the examples below.

Dates in JSON

Date or datetime fields are not treated specially in JSON. Within the scope of this API a date or datetime field is always expected and rendered as JSON String in ISO8601 format with timezone information and milliseconds: yyyy-MM-dd’T’HH:mm:ssXXX.

Embedded Entities

For the sake of convenience some response entities may included embedded entities or even parts of it. A reference to the actual entity is provided as HAL link as well.

Error Responses

Beside the actual representation of resources, the server may result an error response in JSON format that contains basic information about the error occurred. This information is additional to the standard HTTP status code and may help clients to identify the error cause in order to re-phrase and send the request again.

Currently there are two types of errors with their own response formats.

Server Declined Errors

This kind of errors are sent by the server runtime environment even before the request had a chance to be processed.

An example response looks like this:

{
    "timestamp": 1512400854941,
    "status": 500,
    "error": "Internal Server Error",
    "exception": "org.ameba.oauth2.InvalidTokenException",
    "message": "JWT expired at 2017-12-04T15:04:43Z. Current time: 2017-12-04T15:20:54Z, ...",
    "path": "/v1/transport-units?bk=00000000000000004711"
}

The JSON structure contains the following fields.

Property Name Description

timestamp

When the error occurred on server side

status

The http status of the error

error

A short error text

exception

Internal class name of the Java exception type

message

A more descriptive error text describing the error in detail

path

The part of the URI for the REST resource that was queried

API Declined Errors

Those errors are thrown within the REST API validation and processing logic. For example, if a client request does not match the expected format or has produced an error on server side, the API will decline the request and return a response with status client-side error (4xx).

The structure of the response is aligned to the RFC7808. An example response looks like this:

{
    "message": "LocationGroup with name [NOT_EXISTS] not found",
    "messageKey": "owms.common.common.lg.notFoundByName",
    "obj" : [ "NOT_EXISTS" ],
    "httpStatus" : "404",
    "class" : "String"
}

The JSON structure contains the following fields.

Property Name Description

message

A short error text

messageKey

An unique identifier across the API that can be used to identify and translate the error message on the client side

obj

An array of possible passed arguments to the message

httpStatus

The http status of the error

class

The arguments type

Following message keys are currently used:

Message Key Description Action

not.found

The requested resource has not been found

The resource does not exist anymore or has never existed. The resource identifier must be verified

Index

The initial HTTP request to retrieve information about all available resources looks like the following. The Index page is a public available resource and does not need any authentication.

GET /index HTTP/1.1
Host: localhost:8080

The Index resource is returned in the response body with the response status of 200-OK. This main Index lists all primary resource entities to follow next.

HTTP/1.1 200 OK
Content-Type: application/hal+json
Content-Length: 260

{
  "_links" : {
    "user-index" : {
      "href" : "http://localhost:8080/users/index"
    },
    "role-index" : {
      "href" : "http://localhost:8080/roles/index"
    },
    "grant-index" : {
      "href" : "http://localhost:8080/grants/index"
    }
  }
}

A client application only needs to know about the agreed link names and follow the corresponding href link to navigate to further resources.

User

A User represents a human user of the system, usually in front of an UI who interacts with the system. User representations can be created, modified and retrieved. An User is also allowed to authenticate against an UAA endpoint.

User Index

An overview of all possible operations on Users can be found on the User index page that is retrieved with a GET request:

GET /users/index HTTP/1.1
Host: localhost:8080

And the server responds with a HAL+JSON representation to further operations:

HTTP/1.1 200 OK
Content-Type: application/hal+json
Content-Length: 725

{
  "_links" : {
    "users-findbypkey" : {
      "href" : "http://localhost:8080/users/%7BpKey%7D"
    },
    "users-findall" : {
      "href" : "http://localhost:8080/users"
    },
    "users-findgrants" : {
      "href" : "http://localhost:8080/users/%7BpKey%7D/grants"
    },
    "users-create" : {
      "href" : "http://localhost:8080/users"
    },
    "users-save" : {
      "href" : "http://localhost:8080/users"
    },
    "users-saveimage" : {
      "href" : "http://localhost:8080/users/%7BpKey%7D/details/image"
    },
    "users-change-password" : {
      "href" : "http://localhost:8080/users/%7BpKey%7D/password"
    },
    "users-delete" : {
      "href" : "http://localhost:8080/users/%7BpKey%7D"
    }
  }
}

Create an User

To create a new User instance, a POST request must be send to the server with the mandatory fields of the User resource in the request body.

POST /users HTTP/1.1
Content-Type: application/json
Content-Length: 152
Host: localhost:8080

{
  "links" : [ ],
  "ol" : 0,
  "username" : "admin2",
  "emailAddresses" : [ {
    "emailAddress" : "admin2@example.com",
    "primary" : true
  } ]
}
Path Type Description

username

String

The unique name of the User in the system

emailAddresses[]

Array

The User’s email addresses

emailAddresses[].emailAddress

String

The actual email address

emailAddresses[].primary

Boolean

Whether this email address is the primary one used in the system. Each User can only have one primary email address

If the User has been created successfully, the server returns the URI to the created resource in the Location header:

HTTP/1.1 201 Created
Location: http://localhost:8080/users/a3c1f081-f453-490a-b91b-b82e352fa295/
Content-Type: application/vnd.openwms.uaa.user-v1+json
Content-Length: 290

{
  "links" : [ ],
  "ol" : 0,
  "pKey" : "a3c1f081-f453-490a-b91b-b82e352fa295",
  "username" : "admin2",
  "externalUser" : false,
  "locked" : false,
  "enabled" : true,
  "emailAddresses" : [ {
    "emailAddress" : "admin2@example.com",
    "primary" : true
  } ],
  "roleNames" : [ ]
}

If an User with the same name already exists the server returns an error:

HTTP/1.1 409 Conflict
Content-Type: application/hal+json
Content-Length: 166

{
  "message" : "User with name tester already exists",
  "messageKey" : "user.already.exists",
  "obj" : [ "tester" ],
  "httpStatus" : "409",
  "class" : "String"
}

Find all Users

To find and retrieve an array of all existing Users a client may call a GET request:

GET /users HTTP/1.1
Host: localhost:8080

and returns either an array of Users…​

HTTP/1.1 200 OK
Content-Type: application/vnd.openwms.uaa.user-v1+json
Content-Length: 1280

[ {
  "links" : [ {
    "rel" : "user-findbypkey",
    "href" : "http://localhost:8080/users/96baa849-dd19-4b19-8c5e-895d3b7f405d"
  } ],
  "ol" : 1,
  "pKey" : "96baa849-dd19-4b19-8c5e-895d3b7f405d",
  "username" : "jenkins",
  "externalUser" : true,
  "lastPasswordChange" : "2020-06-22T19:02:47Z",
  "locked" : true,
  "enabled" : true,
  "expirationDate" : "2020-06-23T19:02:45Z",
  "fullname" : "Mister Jenkins",
  "details" : { },
  "emailAddresses" : [ {
    "emailAddress" : "admin.private@acme.com",
    "primary" : true,
    "fullname" : "Mr. Jenkins"
  }, {
    "emailAddress" : "admin@acme.com",
    "primary" : false,
    "fullname" : "Mr. Jenkins"
  } ],
  "roleNames" : [ "ROLE_ADMIN" ]
}, {
  "links" : [ {
    "rel" : "user-findbypkey",
    "href" : "http://localhost:8080/users/96baa849-dd19-4b19-8c5e-895d3b7f405e"
  } ],
  "ol" : 1,
  "pKey" : "96baa849-dd19-4b19-8c5e-895d3b7f405e",
  "username" : "tester",
  "externalUser" : false,
  "lastPasswordChange" : "2020-06-22T19:02:47Z",
  "locked" : false,
  "enabled" : true,
  "expirationDate" : "2020-06-23T19:02:45Z",
  "fullname" : "Tester",
  "details" : { },
  "emailAddresses" : [ {
    "emailAddress" : "tester@acme.com",
    "primary" : true,
    "fullname" : "Mr. Tester"
  } ],
  "roleNames" : [ ]
} ]

or an empty array, but always with a 200-OK.

HTTP/1.1 200 OK
Content-Type: application/vnd.openwms.uaa.user-v1+json
Content-Length: 3

[ ]

Find an User by persistent key

A newly created User can be retrieved by following the URI in the Location header of the response. This URI points to the created resource:

GET /users/96baa849-dd19-4b19-8c5e-895d3b7f405d HTTP/1.1
Host: localhost:8080

If the resource exists the server responds with a 200-OK and the User representation in the response body.

HTTP/1.1 200 OK
Content-Type: application/vnd.openwms.uaa.user-v1+json
Content-Length: 562

{"links":[{"rel":"user-findbypkey","href":"http://localhost:8080/users/96baa849-dd19-4b19-8c5e-895d3b7f405d"}],"ol":1,"pKey":"96baa849-dd19-4b19-8c5e-895d3b7f405d","username":"jenkins","externalUser":true,"lastPasswordChange":"2020-06-22T19:02:47Z","locked":true,"enabled":true,"expirationDate":"2020-06-23T19:02:45Z","fullname":"Mister Jenkins","details":{},"emailAddresses":[{"emailAddress":"admin.private@acme.com","primary":true,"fullname":"Mr. Jenkins"},{"emailAddress":"admin@acme.com","primary":false,"fullname":"Mr. Jenkins"}],"roleNames":["ROLE_ADMIN"]}

Find all Roles that are assigned to a User

A client might ask for all Roles that are assigned to a User resource. Therefore the client needs to query all roles of the primary User:

GET /users/96baa849-dd19-4b19-8c5e-895d3b7f405d/roles HTTP/1.1
Host: localhost:8080

and get an array of Roles back, that could also be empty:

HTTP/1.1 200 OK
Content-Type: application/vnd.openwms.uaa.role-v1+json
Content-Length: 1563

[ {
  "@class" : "org.openwms.core.uaa.api.RoleVO",
  "ol" : 1,
  "pKey" : "1",
  "name" : "ROLE_ADMIN",
  "description" : "Super user role",
  "immutable" : true,
  "users" : [ {
    "links" : [ ],
    "ol" : 1,
    "pKey" : "96baa849-dd19-4b19-8c5e-895d3b7f405d",
    "username" : "jenkins",
    "externalUser" : true,
    "lastPasswordChange" : "2020-06-22T19:02:47Z",
    "locked" : true,
    "enabled" : true,
    "expirationDate" : "2020-06-23T19:02:45Z",
    "fullname" : "Mister Jenkins",
    "details" : { },
    "emailAddresses" : [ {
      "emailAddress" : "admin.private@acme.com",
      "primary" : true,
      "fullname" : "Mr. Jenkins"
    }, {
      "emailAddress" : "admin@acme.com",
      "primary" : false,
      "fullname" : "Mr. Jenkins"
    } ],
    "roleNames" : [ "ROLE_ADMIN" ]
  } ],
  "grants" : [ {
    "@class" : "org.openwms.core.uaa.api.SecurityObjectVO",
    "ol" : 1,
    "pKey" : "5",
    "name" : "SEC_UAA_USER_MODIFY",
    "description" : "Permission to modify Users"
  }, {
    "@class" : "org.openwms.core.uaa.api.SecurityObjectVO",
    "ol" : 1,
    "pKey" : "4",
    "name" : "SEC_UAA_USER_CREATE",
    "description" : "Permission to create Users"
  }, {
    "@class" : "org.openwms.core.uaa.api.SecurityObjectVO",
    "ol" : 1,
    "pKey" : "3",
    "name" : "SEC_UAA_USER_LOOKUP",
    "description" : "Permission to find Users"
  }, {
    "@class" : "org.openwms.core.uaa.api.SecurityObjectVO",
    "ol" : 1,
    "pKey" : "6",
    "name" : "SEC_UAA_USER_DELETE",
    "description" : "Permission to delete Users"
  } ]
} ]

Find all Grants that belong to a User

A client might ask for all Grants that are assigned to a User resource. Therefore the client needs to query all grants of the primary User: Unresolved directive in 2-users.adoc - include::/home/runner/work/org.openwms.core.uaa/org.openwms.core.uaa/target/generated-snippets/user-findGrantsOfUser/http-request.adoc[]

and get an array of Grants back, that could also be empty: Unresolved directive in 2-users.adoc - include::/home/runner/work/org.openwms.core.uaa/org.openwms.core.uaa/target/generated-snippets/user-findGrantsOfUser/http-response.adoc[]

Modify an existing User

An existing User instance can be modified by sending a PUT request with the User representation as request body.

PUT /users HTTP/1.1
Content-Type: application/json
Content-Length: 245
Host: localhost:8080

{
  "links" : [ ],
  "ol" : 0,
  "pKey" : "96baa849-dd19-4b19-8c5e-895d3b7f405e",
  "username" : "superuser",
  "locked" : true,
  "enabled" : false,
  "emailAddresses" : [ {
    "emailAddress" : "admin@example.com",
    "primary" : true
  } ]
}

If the server has correctly updated the User the response is a:

HTTP/1.1 200 OK
Content-Type: application/vnd.openwms.uaa.user-v1+json
Content-Length: 292

{
  "links" : [ ],
  "ol" : 0,
  "pKey" : "96baa849-dd19-4b19-8c5e-895d3b7f405e",
  "username" : "superuser",
  "externalUser" : false,
  "locked" : true,
  "enabled" : false,
  "emailAddresses" : [ {
    "emailAddress" : "admin@example.com",
    "primary" : true
  } ],
  "roleNames" : [ ]
}

Change the Users password

Send a POST request to the Users password attribute to set or change the password of an that User.

POST /users/96baa849-dd19-4b19-8c5e-895d3b7f405e/password HTTP/1.1
Content-Type: application/json
Content-Length: 28
Host: localhost:8080

{
  "password" : "welcome"
}

If the server has successfully set the password the response looks like:

HTTP/1.1 200 OK
Content-Type: application/vnd.openwms.uaa.user-v1+json
Content-Length: 360

{
  "links" : [ ],
  "ol" : 3,
  "pKey" : "96baa849-dd19-4b19-8c5e-895d3b7f405e",
  "username" : "superuser",
  "externalUser" : false,
  "lastPasswordChange" : "2022-10-29T22:10:23Z",
  "locked" : true,
  "enabled" : false,
  "details" : { },
  "emailAddresses" : [ {
    "emailAddress" : "admin@example.com",
    "primary" : true
  } ],
  "roleNames" : [ ]
}

Update the image of an existing User

To set the image of an existing User a client needs to send a PATCH request along the image in the UserDetails.

POST /users/96baa849-dd19-4b19-8c5e-895d3b7f405e/details/image HTTP/1.1
Content-Type: application/octet-stream
Content-Length: 18572
Host: localhost:8080

iVBORw0KGgoAAAANSUhEUgAAASwAAAEsCAYAAAB5fY51AAAACXBIWXMAAC4jAAAuIwF4pT92AAAAG3RFWHRDcmVhdGlvbiBUaW1lADE0MDg1NDQwMDM0NTYnvkvlAAA18klEQVR42u2dD3BlV33fj9eyrV3LXnV4JiLe0mePoHKyJepUBTUjmgebjkplUGZEK4YNiGZbNqBMxEQFFVQQGbWI8tJu260RQW5Fo85sMgIUZ2EEKI0ATWvchahUEJUKLKggAguQzYPVLvLurY58Hvv27b3nz+/8zrnn3vf7zpzhz+qde+7587nn7/cwRiKRSCQSiUQikUgkEolEIpFIJBKJRCKRSCQSiUQikUgkEolEIpFIJBKJRCKRSCQSiUQikUgkEolEIpFIJBKJRCKRSCQSiUQikUgkEolEIpFIJBKJRCKRSCQSiUQikUgkEolEIpFIpEOdOAhFEboOQkkzdNb8ro2ykUTtg9oHRE0HofsgDB2EsYNQPgizB2HpIKwchM2DsH0QIkdhSzxj+SAsimdPHYTRg3BaFHoT4L06EioGNL5a8QpVAPzupIfy7LB43/q8KlimBTs+iDrr0tBB7SO7GnKc2Vhh4yD0GVTQS4jxJeVbtTLxytOs+Tv+m8pBuCi+pFhqFo1py/J963/H0zpgkS7s+CBajknHrGYjz2P7yKzOZqAg6oOqUNpFo8CKTwWsaljX7D3VN94zCOVY0AC07vvG/WZffAQwgGUbHxawIvGhabT2kVm1HITdDBbIhuLLOI8cny6wIvElLgAacL9lWc4jvm/S76YRgWUTHyawdhuwfWRWAxksjGrokrzXHnJ8JsDi4RygAW8ZDCkxyrELAJhZZGDNeqzrS5J0NFr7yKzGM1wgpwENRBZKiMCqAHsw0K78AvL7LiIDZjEAYA0BgJXX9pFZnbPM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Tua0Xup44sf1tOp/04bUPmzuAGhn7vzi02gfwatZTE4XxSRmid3YO6Wbsf3s5j0r1fiaKHtJJBKJRCKRSCQSiUQikUgkEolEIpFIJBKJRCKRSCQSiUQikUgkEolEIpFIJBKJRCKRSCQSiUQikUgkEolEIpFIJBKJRCKRSCQSiUQikUgkEolEIpFIJBKJRCKRSCQSiUQikUgkEolEIt2i/w+cfjb7nlbS2QAAAABJRU5ErkJggg==

If the server has correctly updated the Users image the response looks like:

HTTP/1.1 200 OK

Delete an User

To finally delete all User data a DELETE request with the persistent key of the User is required:

DELETE /users/96baa849-dd19-4b19-8c5e-895d3b7f405e HTTP/1.1
Host: localhost:8080

If the User is not assigned somewhere else (in Roles) and it has been deleted successfully the server responds:

HTTP/1.1 204 No Content

Role

An User could be assigned to multiple Roles and act on behalf of a Role. Additionally a Role assigns Grants to all the Users that are assigned to this Role. By doing so, a Role is also a group of Grants that can be assigned to multiple Users.

Role Index

An overview of all possible operations on Roles can be found on the Role index page that is retrieved with a GET request:

GET /roles/index HTTP/1.1
Host: localhost:8080

And the server responds with a HAL+JSON representation to further operations:

HTTP/1.1 200 OK
Content-Type: application/hal+json
Content-Length: 806

{
  "_links" : {
    "roles-findbypkey" : {
      "href" : "http://localhost:8080/roles/pKey"
    },
    "roles-findall" : {
      "href" : "http://localhost:8080/roles"
    },
    "roles-findusersofrole" : {
      "href" : "http://localhost:8080/roles/pKey/users"
    },
    "roles-findgrantsofrole" : {
      "href" : "http://localhost:8080/roles/pKey/grants"
    },
    "roles-create" : {
      "href" : "http://localhost:8080/roles"
    },
    "roles-save" : {
      "href" : "http://localhost:8080/roles/pKey"
    },
    "roles-delete" : {
      "href" : "http://localhost:8080/roles/pKey"
    },
    "roles-assignuser" : {
      "href" : "http://localhost:8080/roles/pKey/users/userPKey"
    },
    "roles-unassignuser" : {
      "href" : "http://localhost:8080/roles/pKey/users/userPKey"
    }
  }
}

Create a Role

To create a new Role instance, a POST request must be send to the server with the mandatory fields of the Role resource in the request body.

POST /roles HTTP/1.1
Content-Type: application/json
Content-Length: 139
Host: localhost:8080

{
  "@class" : "org.openwms.core.uaa.api.RoleVO",
  "ol" : 0,
  "name" : "ROLE_DEV",
  "description" : "Developers",
  "immutable" : true
}
Path Type Description

ol

Number

Versioning field to check the instance version

name

String

Unique name of the Role

immutable

Boolean

Whether or not this Role is immutable. Immutable Roles can’t be modified

description

String

A descriptive text for the Role

If the Role has been created successfully, the server returns the URI to the created resource in the Location header:

HTTP/1.1 201 Created
Location: http://localhost:8080/roles/a92fb5ea-247b-4aba-83cb-c43f811a53db/
Content-Type: application/vnd.openwms.uaa.role-v1+json
Content-Length: 554

{
  "@class" : "org.openwms.core.uaa.api.RoleVO",
  "links" : [ {
    "rel" : "users",
    "href" : "http://localhost:8080/roles/a92fb5ea-247b-4aba-83cb-c43f811a53db/users"
  }, {
    "rel" : "grants",
    "href" : "http://localhost:8080/roles/a92fb5ea-247b-4aba-83cb-c43f811a53db/grants"
  }, {
    "rel" : "role-findbypkey",
    "href" : "http://localhost:8080/roles/a92fb5ea-247b-4aba-83cb-c43f811a53db"
  } ],
  "ol" : 0,
  "pKey" : "a92fb5ea-247b-4aba-83cb-c43f811a53db",
  "name" : "ROLE_DEV",
  "description" : "Developers",
  "immutable" : true
}

If a Role with the same name already exists the server returns an error:

HTTP/1.1 409 Conflict
Content-Type: application/hal+json
Content-Length: 121

{
  "message" : "Role with name [ROLE_ADMIN] already exists",
  "messageKey" : "already.exists",
  "httpStatus" : "409"
}

Find all Roles

To find and retrieve an array of all existing Roles a role may call a GET request:

GET /roles HTTP/1.1
Host: localhost:8080

and returns either an array of Roles or an empty array, but always a 200-OK.

HTTP/1.1 200 OK
Content-Type: application/vnd.openwms.uaa.role-v1+json
Content-Length: 844

[ {
  "@class" : "org.openwms.core.uaa.api.RoleVO",
  "links" : [ {
    "rel" : "users",
    "href" : "http://localhost:8080/roles/1/users"
  }, {
    "rel" : "grants",
    "href" : "http://localhost:8080/roles/1/grants"
  }, {
    "rel" : "role-findbypkey",
    "href" : "http://localhost:8080/roles/1"
  } ],
  "ol" : 1,
  "pKey" : "1",
  "name" : "ROLE_ADMIN",
  "description" : "Super user role",
  "immutable" : true
}, {
  "@class" : "org.openwms.core.uaa.api.RoleVO",
  "links" : [ {
    "rel" : "users",
    "href" : "http://localhost:8080/roles/2/users"
  }, {
    "rel" : "grants",
    "href" : "http://localhost:8080/roles/2/grants"
  }, {
    "rel" : "role-findbypkey",
    "href" : "http://localhost:8080/roles/2"
  } ],
  "ol" : 1,
  "pKey" : "2",
  "name" : "ROLE_OPS",
  "description" : "Operator role",
  "immutable" : true
} ]

Find a Role by persistent key

Each Role has an unique ID the pKey or persistent identifier. To find and return a Role by pKey a client must send a GET request to the Roles resource:

GET /roles/1 HTTP/1.1
Host: localhost:8080
HTTP/1.1 200 OK
Content-Type: application/vnd.openwms.uaa.role-v1+json
Content-Length: 421

{
  "@class" : "org.openwms.core.uaa.api.RoleVO",
  "links" : [ {
    "rel" : "users",
    "href" : "http://localhost:8080/roles/1/users"
  }, {
    "rel" : "grants",
    "href" : "http://localhost:8080/roles/1/grants"
  }, {
    "rel" : "role-findbypkey",
    "href" : "http://localhost:8080/roles/1"
  } ],
  "ol" : 1,
  "pKey" : "1",
  "name" : "ROLE_ADMIN",
  "description" : "Super user role",
  "immutable" : true
}

Find all Users that are assigned to a Role

A client might ask for all Users that are assigned to a Role resource. Therefore the client needs to query all users of the primary Role:

GET /roles/1/users HTTP/1.1
Host: localhost:8080

and get an array of Users back, that could also be empty:

HTTP/1.1 200 OK
Content-Type: application/vnd.openwms.uaa.user-v1+json
Content-Length: 588

[ {
  "links" : [ ],
  "ol" : 1,
  "pKey" : "96baa849-dd19-4b19-8c5e-895d3b7f405d",
  "username" : "jenkins",
  "externalUser" : true,
  "lastPasswordChange" : "2020-06-22T19:02:47Z",
  "locked" : true,
  "enabled" : true,
  "expirationDate" : "2020-06-23T19:02:45Z",
  "fullname" : "Mister Jenkins",
  "details" : { },
  "emailAddresses" : [ {
    "emailAddress" : "admin.private@acme.com",
    "primary" : true,
    "fullname" : "Mr. Jenkins"
  }, {
    "emailAddress" : "admin@acme.com",
    "primary" : false,
    "fullname" : "Mr. Jenkins"
  } ],
  "roleNames" : [ "ROLE_ADMIN" ]
} ]

Find all Grants that belong to a Role

A client might ask for all Grants that are assigned to a Role resource. Therefore the client needs to query all grants of the primary Role:

GET /roles/1/grants HTTP/1.1
Host: localhost:8080

and get an array of Grants back, that could also be empty:

HTTP/1.1 200 OK
Content-Type: application/vnd.openwms.uaa.security-object-v1+json
Content-Length: 688

[ {
  "@class" : "org.openwms.core.uaa.api.SecurityObjectVO",
  "ol" : 1,
  "pKey" : "5",
  "name" : "SEC_UAA_USER_MODIFY",
  "description" : "Permission to modify Users"
}, {
  "@class" : "org.openwms.core.uaa.api.SecurityObjectVO",
  "ol" : 1,
  "pKey" : "4",
  "name" : "SEC_UAA_USER_CREATE",
  "description" : "Permission to create Users"
}, {
  "@class" : "org.openwms.core.uaa.api.SecurityObjectVO",
  "ol" : 1,
  "pKey" : "3",
  "name" : "SEC_UAA_USER_LOOKUP",
  "description" : "Permission to find Users"
}, {
  "@class" : "org.openwms.core.uaa.api.SecurityObjectVO",
  "ol" : 1,
  "pKey" : "6",
  "name" : "SEC_UAA_USER_DELETE",
  "description" : "Permission to delete Users"
} ]

Modify an existing Role

An existing Role instance can be modified by sending a PUT request with the Role representation as request body. At least the name of the Role, as an identifying attribute must be set.

PUT /roles/1 HTTP/1.1
Content-Type: application/json
Content-Length: 167
Host: localhost:8080

{
  "@class" : "org.openwms.core.uaa.api.RoleVO",
  "ol" : 0,
  "pKey" : "1",
  "name" : "ROLE_SUPER",
  "description" : "Administrators role",
  "immutable" : false
}
Path Type Description

pKey

String

The persistent key must be passed when modifying an existing instance

ol

Number

Versioning field to check the instance version

name

String

The name as an identifying attribute of the existing Role, cannot be changed

description

String

A description text to update

immutable

Boolean

Whether the Role is immutable or not

If the server has correctly updated the Role the response contains the updated representation:

HTTP/1.1 200 OK
Content-Type: application/vnd.openwms.uaa.role-v1+json
Content-Length: 425

{
  "@class" : "org.openwms.core.uaa.api.RoleVO",
  "links" : [ {
    "rel" : "users",
    "href" : "http://localhost:8080/roles/1/users"
  }, {
    "rel" : "grants",
    "href" : "http://localhost:8080/roles/1/grants"
  }, {
    "rel" : "role-findbypkey",
    "href" : "http://localhost:8080/roles/1"
  } ],
  "ol" : 1,
  "pKey" : "1",
  "name" : "ROLE_SUPER",
  "description" : "Administrators role",
  "immutable" : true
}

If the name of the Role to update is missing, the server responds with an error:

HTTP/1.1 400 Bad Request
Content-Type: application/hal+json
Content-Length: 143

{
  "message" : "Error on validating the input parameters [save.role.name]",
  "messageKey" : "core.validation.error",
  "httpStatus" : "400"
}

Assign an User to a Role

Users can be assigned to one or more Roles. To assign an existing User to an existing Role the client must send a POST request to the primary Role resource:

POST /roles/1/users/96baa849-dd19-4b19-8c5e-895d3b7f405e HTTP/1.1
Host: localhost:8080

If the User has been assigned successfully, the server responds with 200-OK:

HTTP/1.1 200 OK
Content-Type: application/vnd.openwms.uaa.role-v1+json
Content-Length: 421

{
  "@class" : "org.openwms.core.uaa.api.RoleVO",
  "links" : [ {
    "rel" : "users",
    "href" : "http://localhost:8080/roles/1/users"
  }, {
    "rel" : "grants",
    "href" : "http://localhost:8080/roles/1/grants"
  }, {
    "rel" : "role-findbypkey",
    "href" : "http://localhost:8080/roles/1"
  } ],
  "ol" : 1,
  "pKey" : "1",
  "name" : "ROLE_ADMIN",
  "description" : "Super user role",
  "immutable" : true
}

If the User or the Role do not exist the server responds with an error:

HTTP/1.1 404 Not Found
Content-Type: application/hal+json
Content-Length: 166

{
  "message" : "User with ID UNKNOWN does not exist",
  "messageKey" : "user.pkey.not.exist",
  "obj" : [ "UNKNOWN" ],
  "httpStatus" : "404",
  "class" : "String"
}

Unassign an User from a Role

Already assigned Users can be unassigned from a Role. Therefore the client sends a DELETE request on the secondary User resource of the primary Role resource. Note: This will not delete the User but delete the assignment between the Role and the User.

DELETE /roles/1/users/96baa849-dd19-4b19-8c5e-895d3b7f405d HTTP/1.1
Host: localhost:8080

If the User has been unassigned successfully, the server responds with 200-OK:

HTTP/1.1 200 OK
Content-Type: application/vnd.openwms.uaa.role-v1+json
Content-Length: 421

{
  "@class" : "org.openwms.core.uaa.api.RoleVO",
  "links" : [ {
    "rel" : "users",
    "href" : "http://localhost:8080/roles/1/users"
  }, {
    "rel" : "grants",
    "href" : "http://localhost:8080/roles/1/grants"
  }, {
    "rel" : "role-findbypkey",
    "href" : "http://localhost:8080/roles/1"
  } ],
  "ol" : 1,
  "pKey" : "1",
  "name" : "ROLE_ADMIN",
  "description" : "Super user role",
  "immutable" : true
}

If the User or the Role do not exist the server responds with an error:

HTTP/1.1 404 Not Found
Content-Type: application/hal+json
Content-Length: 166

{
  "message" : "Role with ID UNKNOWN does not exist",
  "messageKey" : "role.pkey.not.exist",
  "obj" : [ "UNKNOWN" ],
  "httpStatus" : "404",
  "class" : "String"
}

Delete a Role

To finally delete all Role data, a DELETE request with the persistent key of the Role is required:

DELETE /roles/1 HTTP/1.1
Host: localhost:8080

If the Role has been deleted successfully the server responds:

HTTP/1.1 204 No Content

Grant

A Grant represents a permission to perform an action. A Grant can be assigned to a Role and is always tied to some kind of action that can be taken. It has a unique business key, that is used in API or UI to protect against unauthorized access.

Grant Index

An overview of all possible operations on Grants can be found on the Grant index page that is retrieved with a GET request:

GET /grants/index HTTP/1.1
Host: localhost:8080

And the server responds with a HAL+JSON representation to further operations:

HTTP/1.1 200 OK
Content-Type: application/hal+json
Content-Length: 343

{
  "_links" : {
    "grant-findbypkey" : {
      "href" : "http://localhost:8080/grants/pKey"
    },
    "grant-findall" : {
      "href" : "http://localhost:8080/grants"
    },
    "grant-findallforuser" : {
      "href" : "http://localhost:8080/grants"
    },
    "grant-create" : {
      "href" : "http://localhost:8080/grants"
    }
  }
}

Create a Grant

To create a new Grant instance, a POST request must be send to the server with the mandatory fields of the Grant resource in the request body.

POST /grants HTTP/1.1
Content-Type: application/json
Content-Length: 132
Host: localhost:8080

{
  "@class" : "org.openwms.core.uaa.api.GrantVO",
  "name" : "VIEW_USERS",
  "description" : "Permission to view all users in UI"
}

Not named properties are optional to pass.

Path Type Description

name

String

Unique name of the Grant

description

String

(Optional) A descriptive text for the Grant

If the Grant has been created successfully, the server returns the URI to the created resource in the Location header:

HTTP/1.1 201 Created
Location: http://localhost:8080/grants/3e7cc678-924d-48e7-98ab-e637bec7aa26/
Content-Type: application/vnd.openwms.uaa.grant-v1+json
Content-Length: 331

{
  "@class" : "org.openwms.core.uaa.api.GrantVO",
  "links" : [ {
    "rel" : "grant-findbypkey",
    "href" : "http://localhost:8080/grants/3e7cc678-924d-48e7-98ab-e637bec7aa26"
  } ],
  "ol" : 0,
  "pKey" : "3e7cc678-924d-48e7-98ab-e637bec7aa26",
  "name" : "VIEW_USERS",
  "description" : "Permission to view all users in UI"
}

If a Grant with the same name already exists the server returns an error:

HTTP/1.1 409 Conflict
Content-Type: application/hal+json
Content-Length: 140

{
  "message" : "Grant with name SEC_UAA_USER_LOOKUP already exists",
  "messageKey" : "grant.name.already.exists",
  "httpStatus" : "409"
}

Find all Grants

To retrieve all existing Grants from the server, a client simply needs to do a GET request to the Grants resource.

GET /grants HTTP/1.1
Host: localhost:8080

The server responds with a list representation of all Grants or an empty list:

HTTP/1.1 200 OK
Content-Type: application/vnd.openwms.uaa.grant-v1+json
Content-Length: 1056

[ {
  "@class" : "org.openwms.core.uaa.api.GrantVO",
  "links" : [ {
    "rel" : "grant-findbypkey",
    "href" : "http://localhost:8080/grants/3"
  } ],
  "ol" : 1,
  "pKey" : "3",
  "name" : "SEC_UAA_USER_LOOKUP",
  "description" : "Permission to find Users"
}, {
  "@class" : "org.openwms.core.uaa.api.GrantVO",
  "links" : [ {
    "rel" : "grant-findbypkey",
    "href" : "http://localhost:8080/grants/4"
  } ],
  "ol" : 1,
  "pKey" : "4",
  "name" : "SEC_UAA_USER_CREATE",
  "description" : "Permission to create Users"
}, {
  "@class" : "org.openwms.core.uaa.api.GrantVO",
  "links" : [ {
    "rel" : "grant-findbypkey",
    "href" : "http://localhost:8080/grants/5"
  } ],
  "ol" : 1,
  "pKey" : "5",
  "name" : "SEC_UAA_USER_MODIFY",
  "description" : "Permission to modify Users"
}, {
  "@class" : "org.openwms.core.uaa.api.GrantVO",
  "links" : [ {
    "rel" : "grant-findbypkey",
    "href" : "http://localhost:8080/grants/6"
  } ],
  "ol" : 1,
  "pKey" : "6",
  "name" : "SEC_UAA_USER_DELETE",
  "description" : "Permission to delete Users"
} ]

Find a Grant by persistent key

Each Grant has an unique ID the pKey or persistent identifier. To find and return a Grant by pKey a client must send a GET request to the Grants resource:

GET /grants/3 HTTP/1.1
Host: localhost:8080
HTTP/1.1 200 OK
Content-Type: application/vnd.openwms.uaa.grant-v1+json
Content-Length: 260

{
  "@class" : "org.openwms.core.uaa.api.GrantVO",
  "links" : [ {
    "rel" : "grant-findbypkey",
    "href" : "http://localhost:8080/grants/3"
  } ],
  "ol" : 1,
  "pKey" : "3",
  "name" : "SEC_UAA_USER_LOOKUP",
  "description" : "Permission to find Users"
}
Path Type Description

@class

String

Type identifier of the Grant type

links[]

Array

Contains an array of hypermedia resource links

ol

Number

Versioning field to check the instance version

pKey

String

The technical persistent identifier of the Grant

name

String

Unique name of the Grant

description

String

A descriptive text for the Grant

Find all Grants of a User

To retrieve all existing Grants from assigned to a User, a client simply needs to do a GET request to the Grants resource and pass the users identity within the X-Identity http header.

GET /grants HTTP/1.1
X-Identity: jenkins
Host: localhost:8080

The server responds with a list representation of all Grants:

HTTP/1.1 200 OK
Content-Type: application/vnd.openwms.uaa.grant-v1+json
Content-Length: 1056

[ {
  "@class" : "org.openwms.core.uaa.api.GrantVO",
  "links" : [ {
    "rel" : "grant-findbypkey",
    "href" : "http://localhost:8080/grants/5"
  } ],
  "ol" : 1,
  "pKey" : "5",
  "name" : "SEC_UAA_USER_MODIFY",
  "description" : "Permission to modify Users"
}, {
  "@class" : "org.openwms.core.uaa.api.GrantVO",
  "links" : [ {
    "rel" : "grant-findbypkey",
    "href" : "http://localhost:8080/grants/4"
  } ],
  "ol" : 1,
  "pKey" : "4",
  "name" : "SEC_UAA_USER_CREATE",
  "description" : "Permission to create Users"
}, {
  "@class" : "org.openwms.core.uaa.api.GrantVO",
  "links" : [ {
    "rel" : "grant-findbypkey",
    "href" : "http://localhost:8080/grants/3"
  } ],
  "ol" : 1,
  "pKey" : "3",
  "name" : "SEC_UAA_USER_LOOKUP",
  "description" : "Permission to find Users"
}, {
  "@class" : "org.openwms.core.uaa.api.GrantVO",
  "links" : [ {
    "rel" : "grant-findbypkey",
    "href" : "http://localhost:8080/grants/6"
  } ],
  "ol" : 1,
  "pKey" : "6",
  "name" : "SEC_UAA_USER_DELETE",
  "description" : "Permission to delete Users"
} ]

or a HTTP 204-NO CONTENT response if no Grants are assigned to the User:

HTTP/1.1 204 No Content

or a HTTP 404-NOT FOUND response if the User does not exist:

HTTP/1.1 404 Not Found
Content-Type: application/hal+json
Content-Length: 121

{
  "message" : "User with name UNKNOWN does not exist",
  "messageKey" : "user.name.not.exist",
  "httpStatus" : "404"
}