{"openapi":"3.0.1","info":{"title":"Public API","version":"1.0"},"externalDocs":{"url":"https://services.porr-itservices.com/docs/index.html"},"servers":[{"url":"https://services.porr-itservices.com/api","description":"Integration Service (Production)"},{"url":"https://services-t.porr-itservices.com/api","description":"Integration Service (Test)"}],"security":[{"Oauth2":[]}],"paths":{"/api/person":{"get":{"tags":["person-controller"],"operationId":"get","parameters":[{"name":"page[number]","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0}},{"name":"page[size]","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":10}}],"responses":{"200":{"description":"OK","content":{"application/vnd.hal+json":{"schema":{"$ref":"#/components/schemas/CollectionModelEmployeeData"}}}}}}},"/api/person/{pkId}":{"get":{"tags":["person-controller"],"operationId":"get_1","parameters":[{"name":"pkId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"the person's data for the given pkId","content":{"application/vnd.hal+json":{"schema":{"$ref":"#/components/schemas/EmployeeData"}}}},"404":{"description":"the person with the given pkId was not found","content":{"application/vnd.hal+json":{"schema":{"$ref":"#/components/schemas/JsonApiErrorsException"}}}}}}},"/api/person/hr/{pkId}":{"get":{"tags":["person-controller"],"operationId":"getHr","parameters":[{"name":"pkId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"the person's data for the given pkId","content":{"application/vnd.hal+json":{"schema":{"$ref":"#/components/schemas/HRData"}}}},"404":{"description":"the person with the given pkId was not found","content":{"application/vnd.hal+json":{"schema":{"$ref":"#/components/schemas/JsonApiErrorsException"}}}}}}},"/api/person/bulk":{"get":{"tags":["person-controller"],"summary":"Get all persons that have hr data","description":"All persons that are present via 1ID and have HR data present in the data hub are returned as one bulk message.","operationId":"bulk","responses":{"200":{"description":"OK","content":{"application/vnd.hal+json":{"schema":{"$ref":"#/components/schemas/CollectionModelEmployeeData"}}}}}}}},"components":{"schemas":{"CollectionModelEmployeeData":{"type":"object","properties":{"_embedded":{"type":"object","properties":{"employeeDataList":{"type":"array","items":{"$ref":"#/components/schemas/EmployeeData"}}}},"_links":{"$ref":"#/components/schemas/Links"}}},"EmployeeData":{"type":"object","properties":{"identification":{"type":"string"},"firstname":{"type":"string"},"lastname":{"type":"string"},"email":{"type":"string"},"phoneNumber":{"type":"string"},"phoneNumberMobile":{"type":"string"},"costCenter":{"type":"string"},"department":{"type":"string"},"active":{"type":"boolean"},"hr":{"$ref":"#/components/schemas/HRData"},"_links":{"$ref":"#/components/schemas/Links"}}},"HRAddress":{"type":"object","properties":{"country":{"type":"string"},"countryCode":{"type":"string"},"postcode":{"type":"string"},"city":{"type":"string"},"street":{"type":"string"}}},"HRContract":{"type":"object","properties":{"employeeClass":{"type":"string"},"locationName":{"type":"string"},"company":{"$ref":"#/components/schemas/HRUnit"},"businessUnit":{"$ref":"#/components/schemas/HRUnit"},"area":{"$ref":"#/components/schemas/HRUnit"},"department":{"$ref":"#/components/schemas/HRUnit"},"group":{"$ref":"#/components/schemas/HRUnit"},"team":{"$ref":"#/components/schemas/HRUnit"},"subteam":{"$ref":"#/components/schemas/HRUnit"},"manager":{"type":"string"},"managerPkId":{"type":"string"},"costCenterCode":{"type":"string"},"logaCompany":{"type":"string"},"logaPnr":{"type":"string"},"sapPnr":{"type":"string"},"hireDate":{"type":"string","format":"date"},"terminationDate":{"type":"string","format":"date"},"functionCodeName":{"type":"string"},"managementLevel":{"type":"string"}}},"HRData":{"type":"object","properties":{"pkId":{"type":"string"},"title":{"type":"string"},"firstname":{"type":"string"},"lastname":{"type":"string"},"secondTitle":{"type":"string"},"dateOfBirth":{"type":"string","format":"date"},"nationalId":{"type":"string"},"nationality":{"type":"string"},"address":{"$ref":"#/components/schemas/HRAddress"},"contracts":{"type":"array","items":{"$ref":"#/components/schemas/HRContract"}},"_links":{"$ref":"#/components/schemas/Links"}}},"HRUnit":{"type":"object","properties":{"code":{"type":"string"},"name":{"type":"string"}}},"JsonApiErrors":{"type":"object"},"JsonApiErrorsException":{"type":"object","properties":{"cause":{"type":"object","properties":{"cause":{"type":"object","properties":{"stackTrace":{"type":"array","items":{"type":"object","properties":{"classLoaderName":{"type":"string"},"moduleName":{"type":"string"},"moduleVersion":{"type":"string"},"methodName":{"type":"string"},"fileName":{"type":"string"},"lineNumber":{"type":"integer","format":"int32"},"className":{"type":"string"},"nativeMethod":{"type":"boolean"}}}},"message":{"type":"string"},"suppressed":{"type":"array","items":{"type":"object","properties":{"stackTrace":{"type":"array","items":{"type":"object","properties":{"classLoaderName":{"type":"string"},"moduleName":{"type":"string"},"moduleVersion":{"type":"string"},"methodName":{"type":"string"},"fileName":{"type":"string"},"lineNumber":{"type":"integer","format":"int32"},"className":{"type":"string"},"nativeMethod":{"type":"boolean"}}}},"message":{"type":"string"},"localizedMessage":{"type":"string"}}}},"localizedMessage":{"type":"string"}}},"stackTrace":{"type":"array","items":{"type":"object","properties":{"classLoaderName":{"type":"string"},"moduleName":{"type":"string"},"moduleVersion":{"type":"string"},"methodName":{"type":"string"},"fileName":{"type":"string"},"lineNumber":{"type":"integer","format":"int32"},"className":{"type":"string"},"nativeMethod":{"type":"boolean"}}}},"message":{"type":"string"},"suppressed":{"type":"array","items":{"type":"object","properties":{"stackTrace":{"type":"array","items":{"type":"object","properties":{"classLoaderName":{"type":"string"},"moduleName":{"type":"string"},"moduleVersion":{"type":"string"},"methodName":{"type":"string"},"fileName":{"type":"string"},"lineNumber":{"type":"integer","format":"int32"},"className":{"type":"string"},"nativeMethod":{"type":"boolean"}}}},"message":{"type":"string"},"localizedMessage":{"type":"string"}}}},"localizedMessage":{"type":"string"}}},"stackTrace":{"type":"array","items":{"type":"object","properties":{"classLoaderName":{"type":"string"},"moduleName":{"type":"string"},"moduleVersion":{"type":"string"},"methodName":{"type":"string"},"fileName":{"type":"string"},"lineNumber":{"type":"integer","format":"int32"},"className":{"type":"string"},"nativeMethod":{"type":"boolean"}}}},"status":{"type":"string","enum":["100 CONTINUE","101 SWITCHING_PROTOCOLS","102 PROCESSING","103 EARLY_HINTS","200 OK","201 CREATED","202 ACCEPTED","203 NON_AUTHORITATIVE_INFORMATION","204 NO_CONTENT","205 RESET_CONTENT","206 PARTIAL_CONTENT","207 MULTI_STATUS","208 ALREADY_REPORTED","226 IM_USED","300 MULTIPLE_CHOICES","301 MOVED_PERMANENTLY","302 FOUND","303 SEE_OTHER","304 NOT_MODIFIED","307 TEMPORARY_REDIRECT","308 PERMANENT_REDIRECT","400 BAD_REQUEST","401 UNAUTHORIZED","402 PAYMENT_REQUIRED","403 FORBIDDEN","404 NOT_FOUND","405 METHOD_NOT_ALLOWED","406 NOT_ACCEPTABLE","407 PROXY_AUTHENTICATION_REQUIRED","408 REQUEST_TIMEOUT","409 CONFLICT","410 GONE","411 LENGTH_REQUIRED","412 PRECONDITION_FAILED","413 CONTENT_TOO_LARGE","413 PAYLOAD_TOO_LARGE","414 URI_TOO_LONG","415 UNSUPPORTED_MEDIA_TYPE","416 REQUESTED_RANGE_NOT_SATISFIABLE","417 EXPECTATION_FAILED","418 I_AM_A_TEAPOT","421 MISDIRECTED_REQUEST","422 UNPROCESSABLE_CONTENT","422 UNPROCESSABLE_ENTITY","423 LOCKED","424 FAILED_DEPENDENCY","425 TOO_EARLY","426 UPGRADE_REQUIRED","428 PRECONDITION_REQUIRED","429 TOO_MANY_REQUESTS","431 REQUEST_HEADER_FIELDS_TOO_LARGE","451 UNAVAILABLE_FOR_LEGAL_REASONS","500 INTERNAL_SERVER_ERROR","501 NOT_IMPLEMENTED","502 BAD_GATEWAY","503 SERVICE_UNAVAILABLE","504 GATEWAY_TIMEOUT","505 HTTP_VERSION_NOT_SUPPORTED","506 VARIANT_ALSO_NEGOTIATES","507 INSUFFICIENT_STORAGE","508 LOOP_DETECTED","509 BANDWIDTH_LIMIT_EXCEEDED","510 NOT_EXTENDED","511 NETWORK_AUTHENTICATION_REQUIRED"]},"errors":{"$ref":"#/components/schemas/JsonApiErrors"},"message":{"type":"string"},"suppressed":{"type":"array","items":{"type":"object","properties":{"cause":{"type":"object","properties":{"stackTrace":{"type":"array","items":{"type":"object","properties":{"classLoaderName":{"type":"string"},"moduleName":{"type":"string"},"moduleVersion":{"type":"string"},"methodName":{"type":"string"},"fileName":{"type":"string"},"lineNumber":{"type":"integer","format":"int32"},"className":{"type":"string"},"nativeMethod":{"type":"boolean"}}}},"message":{"type":"string"},"suppressed":{"type":"array","items":{"type":"object","properties":{"stackTrace":{"type":"array","items":{"type":"object","properties":{"classLoaderName":{"type":"string"},"moduleName":{"type":"string"},"moduleVersion":{"type":"string"},"methodName":{"type":"string"},"fileName":{"type":"string"},"lineNumber":{"type":"integer","format":"int32"},"className":{"type":"string"},"nativeMethod":{"type":"boolean"}}}},"message":{"type":"string"},"localizedMessage":{"type":"string"}}}},"localizedMessage":{"type":"string"}}},"stackTrace":{"type":"array","items":{"type":"object","properties":{"classLoaderName":{"type":"string"},"moduleName":{"type":"string"},"moduleVersion":{"type":"string"},"methodName":{"type":"string"},"fileName":{"type":"string"},"lineNumber":{"type":"integer","format":"int32"},"className":{"type":"string"},"nativeMethod":{"type":"boolean"}}}},"message":{"type":"string"},"suppressed":{"type":"array","items":{"type":"object","properties":{"stackTrace":{"type":"array","items":{"type":"object","properties":{"classLoaderName":{"type":"string"},"moduleName":{"type":"string"},"moduleVersion":{"type":"string"},"methodName":{"type":"string"},"fileName":{"type":"string"},"lineNumber":{"type":"integer","format":"int32"},"className":{"type":"string"},"nativeMethod":{"type":"boolean"}}}},"message":{"type":"string"},"localizedMessage":{"type":"string"}}}},"localizedMessage":{"type":"string"}}}},"localizedMessage":{"type":"string"}}},"Link":{"type":"object","properties":{"href":{"type":"string"},"hreflang":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"deprecation":{"type":"string"},"profile":{"type":"string"},"name":{"type":"string"},"templated":{"type":"boolean"}}},"Links":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/Link"}}},"securitySchemes":{"Oauth2":{"type":"oauth2","description":"OAuth2 client credentials flow used to obtain the bearer token for the `Authorization` header.","flows":{"clientCredentials":{"tokenUrl":"https://login.microsoftonline.com/porrag.onmicrosoft.com/oauth2/v2.0/token","scopes":{"api://02480241-0dc7-4615-a029-ff7196d9068e/.default":"Access to the API"}}}}}}}