API Documentation
/credentials
Credential is the login data belonging to an employee. Credentials have the same id as the belonging employee.
Endpoints
Method | Path |
---|---|
GET | / |
GET | /{id} |
GET | /search/findByEmail |
POST | / |
PUT | /{id} |
DELETE | /{id} |
Projections
Name | Description |
---|---|
allRolesOverview | Contains all authorities. |
Structure
Fieldname | Fieldtype | Validations |
---|---|---|
id | Long | |
String | valid email address, unique | |
enabled | boolean | |
locale | String | not empty |
Links | Security | |
employee | deletable, updateable by ROLE_ADMIN | |
authorities | deletable, updateable by ROLE_ADMIN |
GET /▲
Get all credentials.
Returns
A page of credentials.
Parameters
pageableGET /{id}▲
Get a single credential by its id.
Returns
One credential.
GET /search/findByEmail▲
Find credentials by an email address.
Returns
A list of credentials.
Parameters
name | type | required | description |
---|---|---|---|
String | true | The email to search for. |
POST /▲
Create a new credential. Returns the created object.
Security
ROLE_ADMIN
Returns
A single credential.
PUT /{id}▲
Update the credential identified by id. Returns the updated object.
Security
ROLE_ADMIN
Returns
A credential.
DELETE /{id}▲
Delete the credential identified by id.
Security
ROLE_ADMIN
Returns
Nothing