API Documentation

/contactPersons

Contact persons belong to a company.

Endpoints

MethodPath
GET/
GET/{id}
POST/
PUT/{id}
DELETE/{id}

Structure

FieldnameFieldtypeValidations
idLong
versionInteger
salutationStringnot empty
firstNameStringnot empty
lastNameStringnot empty
emailStringvalid email address
phoneString
rolesString
LinksSecurity
companyupdateable by ROLE_SUPERVISOR, not deletable.

GET /

Get all contact persons.

Returns

List of contact persons.


GET /{id}

Get a single contact person by its id.

Returns

One contact person.


POST /

Create a new contact person. Returns the created object.

Security

ROLE_ADMIN

Returns

A single contact person.


PUT /{id}

Update the contact person identified by id. Returns the updated object.

Security

ROLE_ADMIN

Returns

A contact person.


DELETE /{id}

Delete the contact person identified by id.

Security

ROLE_ADMIN

Returns

Nothing