API Documentation

/projects

Projects belong to companies and employees can work on them.

Endpoints

MethodPath
GET/
GET/{id}
GET/search/findByIdentifier
GET/search/findByNameLikeIgnoreCaseOrIdentifierLikeIgnoreCaseOrderByNameAsc
POST/
PUT/{id}
DELETE/{id}

Projections

NameDescription
withCompanyAndDebitorThe company and debitor of the project are embedded.

Structure

FieldnameFieldtypeValidations
idLong
versionInteger
identifierStringnot empty, unique
nameStringnot empty
volumeInteger> 0
hourlyRateNumber> 0
dailyRateNumber> 0
fixedPriceNumber> 0
LinksSecurity
companydelete and update by ROLE_ADMIN
debitordelete and update by ROLE_ADMIN
workTimesdelete and update by ROLE_ADMIN
billableTimesdelete and update by ROLE_ADMIN

GET /

Get all projects.

Returns

A page of projects.

Parameters

pageable

GET /{id}

Get a single project by its id.

Returns

One project.


GET /search/findByIdentifier

Find projects by their identifier.

Returns

A list of projects

Parameters

nametyperequireddescription
identifier StringtrueThe project identifier to search for./**/

GET /search/findByNameLikeIgnoreCaseOrIdentifierLikeIgnoreCaseOrderByNameAsc

Search by name or identifier, ignoring their case with wildcards.

Returns

A list of projects.

Parameters

nametyperequireddescription
nameStringtrueThe name to search for. Wildcard is %.
identifierStringtrueThe identifier to search for. Wildcard is %.

POST /

Create a new project. Returns the created object.

Security

ROLE_ADMIN

Returns

A single project.


PUT /{id}

Update the project identified by id. Returns the updated object.

Security

ROLE_ADMIN

Returns

A single project.


DELETE /{id}

Delete the project identified by id.

Security

ROLE_ADMIN

Returns

Nothing