Specification
In addition to the documentation on this page, you can also download a spec file describing the API:
Resources
Person
Get all persons
A GET request is used to retrieve all persons.
Curl request
$ curl 'http://localhost:8080/api/person/pkid110' -i -X GET \
-H 'Accept: application/vnd.hal+json'
HTTP request
GET /api/person/pkid110 HTTP/1.1
Accept: application/vnd.hal+json
Host: localhost:8080
HTTP response
HTTP/1.1 200 OK
Content-Type: application/vnd.hal+json
Content-Length: 333
{"_links":{"self":{"href":"http://localhost:8080/api/person/pkid110"},"related":{"href":"http://localhost:8080/api/person/hr/pkid110","name":"hr","title":"hr data"}},"active":null,"costCenter":null,"department":null,"email":null,"firstname":null,"identification":"pkid110","lastname":null,"phoneNumber":null,"phoneNumberMobile":null}
HTTPie request
$ http GET 'http://localhost:8080/api/person/pkid110' \
'Accept:application/vnd.hal+json'
Links
| Relation | Description |
|---|---|
|
the page’s self link |
|
the person’s hr data link |
Path parameters
| Parameter | Description |
|---|---|
|
the person’s pk id |
Request body
Response body
{"_links":{"self":{"href":"http://localhost:8080/api/person/pkid110"},"related":{"href":"http://localhost:8080/api/person/hr/pkid110","name":"hr","title":"hr data"}},"active":null,"costCenter":null,"department":null,"email":null,"firstname":null,"identification":"pkid110","lastname":null,"phoneNumber":null,"phoneNumberMobile":null}
Response fields
| Path | Type | Description |
|---|---|---|
|
|
the employee’s pk id |
|
|
the employee’s first name |
|
|
the employee’s last name |
|
|
the employee’s email |
|
|
the employee’s phone number |
|
|
the employee’s mobile phone number |
|
|
the employee’s cost center |
|
|
the employee’s department |
|
|
the employee’s active state |
Get one person
A GET request is used to retrieve one person by id.
Curl request
$ curl 'http://localhost:8080/api/person/pkid110' -i -X GET \
-H 'Accept: application/vnd.hal+json'
HTTP request
GET /api/person/pkid110 HTTP/1.1
Accept: application/vnd.hal+json
Host: localhost:8080
HTTP response
HTTP/1.1 200 OK
Content-Type: application/vnd.hal+json
Content-Length: 333
{"_links":{"self":{"href":"http://localhost:8080/api/person/pkid110"},"related":{"href":"http://localhost:8080/api/person/hr/pkid110","name":"hr","title":"hr data"}},"active":null,"costCenter":null,"department":null,"email":null,"firstname":null,"identification":"pkid110","lastname":null,"phoneNumber":null,"phoneNumberMobile":null}
HTTPie request
$ http GET 'http://localhost:8080/api/person/pkid110' \
'Accept:application/vnd.hal+json'
Links
| Relation | Description |
|---|---|
|
the page’s self link |
|
the person’s hr data link |
Path parameters
| Parameter | Description |
|---|---|
|
the person’s pk id |
Request body
Response body
{"_links":{"self":{"href":"http://localhost:8080/api/person/pkid110"},"related":{"href":"http://localhost:8080/api/person/hr/pkid110","name":"hr","title":"hr data"}},"active":null,"costCenter":null,"department":null,"email":null,"firstname":null,"identification":"pkid110","lastname":null,"phoneNumber":null,"phoneNumberMobile":null}
Response fields
| Path | Type | Description |
|---|---|---|
|
|
the employee’s pk id |
|
|
the employee’s first name |
|
|
the employee’s last name |
|
|
the employee’s email |
|
|
the employee’s phone number |
|
|
the employee’s mobile phone number |
|
|
the employee’s cost center |
|
|
the employee’s department |
|
|
the employee’s active state |
HR
Get one person’s HR data
A 'GET' request is used to retrieve one person’s HR data by id
Curl request
$ curl 'http://localhost:8080/api/person/hr/pkid110' -i -X GET \
-H 'Accept: application/vnd.hal+json'
HTTP request
GET /api/person/hr/pkid110 HTTP/1.1
Accept: application/vnd.hal+json
Host: localhost:8080
HTTP response
HTTP/1.1 200 OK
Content-Type: application/vnd.hal+json
Content-Length: 810
{"_links":{"self":{"href":"http://localhost:8080/api/person/hr/pkid110"}},"address":{"city":null,"country":null,"postcode":null,"street":null},"area":{"code":"10","name":"area 1"},"businessUnit":{"code":"1100","name":"business unit"},"company":{"code":"0020","name":"company 20"},"costCenterCode":null,"countryCode":null,"dateOfBirth":null,"department":{"code":null,"name":null},"employeeClass":null,"firstname":null,"functionCodeName":null,"group":{"code":null,"name":null},"hireDate":null,"lastname":null,"locationName":null,"logaCompany":null,"logaPnr":null,"managementLevel":null,"manager":null,"managerPkId":null,"nationalId":null,"nationality":null,"pkId":"pkid110","sapPnr":null,"secondTitle":null,"subteam":{"code":null,"name":null},"team":{"code":null,"name":null},"terminationDate":null,"title":null}
HTTPie request
$ http GET 'http://localhost:8080/api/person/hr/pkid110' \
'Accept:application/vnd.hal+json'
Links
| Relation | Description |
|---|---|
|
the page’s self link |
Path parameters
| Parameter | Description |
|---|---|
|
the person’s pk id |
Request body
Response body
{"_links":{"self":{"href":"http://localhost:8080/api/person/hr/pkid110"}},"address":{"city":null,"country":null,"postcode":null,"street":null},"area":{"code":"10","name":"area 1"},"businessUnit":{"code":"1100","name":"business unit"},"company":{"code":"0020","name":"company 20"},"costCenterCode":null,"countryCode":null,"dateOfBirth":null,"department":{"code":null,"name":null},"employeeClass":null,"firstname":null,"functionCodeName":null,"group":{"code":null,"name":null},"hireDate":null,"lastname":null,"locationName":null,"logaCompany":null,"logaPnr":null,"managementLevel":null,"manager":null,"managerPkId":null,"nationalId":null,"nationality":null,"pkId":"pkid110","sapPnr":null,"secondTitle":null,"subteam":{"code":null,"name":null},"team":{"code":null,"name":null},"terminationDate":null,"title":null}
Response fields
| Path | Type | Description |
|---|---|---|
|
|
the person’s pk id |
|
|
the person’s SAP personal number |
|
|
the person’s living address (country, city, postcode, street) |
|
|
the person’s country code |
|
|
the person’s date of birth |
|
|
the person’s cost center code |
|
|
the person’s employee class |
|
|
the person’s first name |
|
|
the person’s last name |
|
|
the person’s title |
|
|
the person’s second title |
|
|
the person’s hire date |
|
|
the person’s termination date |
|
|
the person’s function code name |
|
|
the person’s management level |
|
|
the person’s national id |
|
|
the person’s nationality |
|
|
the person’s manager |
|
|
the person’s manager - pk id |
|
|
the person’s location name |
|
|
the person’s area |
|
|
the person’s business unit |
|
|
the person’s company |
|
|
the person’s department |
|
|
the person’s group |
|
|
the person’s team |
|
|
the person’s sub-team |
|
|
the person’s loga company |
|
|
the person’s loga personal number |