1. Overview
Microservice containing the business logic for managing labor-service.
Descriptions of these functions can be found in the section headers for each collection of relevant resources.
1.1. URI scheme
Host : localhost
BasePath : /
1.2. Tags
-
labor-code-details-controller : Labor Code Details Controller
-
labor-planning-type-controller : Labor Planning Type Controller
-
labor-record-controller : Labor Record Controller
-
labor-type-controller : Labor Type Controller
2. Resources
2.1. Labor-code-details-controller
Labor Code Details Controller
2.1.1. Create Labor code
POST /v1/laborCodeDetails/create
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Header |
Site-Id |
Represents the id of the site to connect to |
string |
Body |
laborCodeInfo |
Details of the labor code to create |
Responses
HTTP Code | Description | Schema |
---|---|---|
201 |
Created |
|
400 |
Bad Request |
|
422 |
Unprocessable Entity |
|
500 |
Internal Server Error |
Consumes
-
application/json
Produces
-
application/json
Security
Type | Name | Scopes |
---|---|---|
oauth2 |
default |
|
oauth2 |
default |
|
oauth2 |
default |
|
oauth2 |
default |
2.1.2. Get labor codes by unit, line and department
GET /v1/laborCodeDetails/getLaborCodes
Parameters
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Header |
Site-Id |
Represents the id of the site to connect to |
string |
|
Query |
includeAll |
If flag is set to true it retrieves all labor codes else it retrieves only global labor codes. |
boolean |
|
Query |
lineId |
lineId |
integer (int32) |
|
Query |
unitId |
unitId |
string |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
< LaborCodeInfo > array |
401 |
Unauthorized |
|
500 |
Internal Server Error |
Produces
-
application/json
Security
Type | Name | Scopes |
---|---|---|
oauth2 |
default |
|
oauth2 |
default |
|
oauth2 |
default |
|
oauth2 |
default |
2.1.3. Get labor code by id
GET /v1/laborCodeDetails/getLaborCodesByIds
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Header |
Site-Id |
Represents the id of the site to connect to |
string |
Query |
laborCodeId |
laborCodeId |
< integer (int32) > array(multi) |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
< LaborCodeInfo > array |
401 |
Unauthorized |
|
500 |
Internal Server Error |
Produces
-
application/json
Security
Type | Name | Scopes |
---|---|---|
oauth2 |
default |
|
oauth2 |
default |
|
oauth2 |
default |
|
oauth2 |
default |
2.1.4. Update Labor code
PUT /v1/laborCodeDetails/update/{id}
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Header |
Site-Id |
Represents the id of the site to connect to |
string |
Path |
id |
id |
integer (int32) |
Body |
laborCodeInfo |
Details of the labor code to update |
Responses
HTTP Code | Description | Schema |
---|---|---|
201 |
Updated |
|
400 |
Bad Request |
|
422 |
Unprocessable Entity |
|
500 |
Internal Server Error |
Consumes
-
application/json
Produces
-
application/json
Security
Type | Name | Scopes |
---|---|---|
oauth2 |
default |
|
oauth2 |
default |
|
oauth2 |
default |
|
oauth2 |
default |
2.2. Labor-planning-type-controller
Labor Planning Type Controller
2.2.1. Get all labor planning types
GET /v1/laborPlanningTypes
Parameters
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Header |
Site-Id |
Represents the id of the site to connect to |
string |
|
Query |
page |
Minimum value 0 |
integer (int32) |
|
Query |
size |
Max value 2000 |
integer (int32) |
|
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
401 |
Unauthorized |
|
500 |
Internal Server Error |
Produces
-
application/json
Security
Type | Name | Scopes |
---|---|---|
oauth2 |
default |
|
oauth2 |
default |
|
oauth2 |
default |
|
oauth2 |
default |
2.3. Labor-record-controller
Labor Record Controller
2.3.1. Create Labor Record
POST /v1/laborRecords
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Header |
Site-Id |
Represents the id of the site to connect to |
string |
Body |
laborRecordAddInfo |
Details of the labor record to create |
Responses
HTTP Code | Description | Schema |
---|---|---|
201 |
Created |
|
400 |
Bad Request |
|
422 |
Unprocessable Entity |
|
500 |
Internal Server Error |
Consumes
-
application/json
Produces
-
application/json
Security
Type | Name | Scopes |
---|---|---|
oauth2 |
default |
|
oauth2 |
default |
|
oauth2 |
default |
|
oauth2 |
default |
2.3.2. Get labor records
GET /v1/laborRecords
Parameters
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Header |
Site-Id |
Represents the id of the site to connect to |
string |
|
Query |
endTime |
endTime |
string |
|
Query |
laborTypeId |
laborTypeId |
integer (int64) |
|
Query |
page |
Minimum value 0 |
integer (int32) |
|
Query |
size |
Max value 2000 |
integer (int32) |
|
Query |
startTime |
startTime |
string |
|
Query |
userName |
userName |
string |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
Success |
|
400 |
Bad Request |
|
422 |
Unprocessable Entity |
|
500 |
Internal Server Error |
Produces
-
application/json
Security
Type | Name | Scopes |
---|---|---|
oauth2 |
default |
|
oauth2 |
default |
|
oauth2 |
default |
|
oauth2 |
default |
2.3.3. Get a labor record by id
GET /v1/laborRecords/{laborRecordId}
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Header |
Site-Id |
Represents the id of the site to connect to |
string |
Path |
laborRecordId |
Id of the labor record |
integer (int64) |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
400 |
Bad Request |
|
401 |
Unauthorized |
|
404 |
Not Found |
|
422 |
Unprocessable Entity |
|
500 |
Internal Server Error |
Produces
-
application/json
Security
Type | Name | Scopes |
---|---|---|
oauth2 |
default |
|
oauth2 |
default |
|
oauth2 |
default |
|
oauth2 |
default |
2.3.4. Update labor record
PUT /v1/laborRecords/{laborRecordId}
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Header |
Site-Id |
Represents the id of the site to connect to |
string |
Path |
laborRecordId |
Labor Record Id |
integer (int64) |
Body |
laborRecordUpdateInfo |
Update Labor Record |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
400 |
Bad Request |
|
404 |
Not Found |
|
422 |
Unprocessable Entity |
|
500 |
Internal Server Error |
Consumes
-
application/json
Produces
-
application/json
Security
Type | Name | Scopes |
---|---|---|
oauth2 |
default |
|
oauth2 |
default |
|
oauth2 |
default |
|
oauth2 |
default |
2.3.5. Delete a labor record
DELETE /v1/laborRecords/{laborRecordId}
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Header |
Site-Id |
Represents the id of the site to connect to |
string |
Path |
laborRecordId |
Labor record Id to be deleted |
integer (int64) |
Responses
HTTP Code | Description | Schema |
---|---|---|
204 |
No Content |
object |
404 |
Not Found |
|
500 |
Internal Server Error |
Produces
-
/
Security
Type | Name | Scopes |
---|---|---|
oauth2 |
default |
|
oauth2 |
default |
|
oauth2 |
default |
|
oauth2 |
default |
2.4. Labor-type-controller
Labor Type Controller
2.4.1. Create Labor Type
POST /v1/laborTypes
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Header |
Site-Id |
Represents the id of the site to connect to |
string |
Body |
laborTypeRequest |
Details of the labor type to create |
Responses
HTTP Code | Description | Schema |
---|---|---|
201 |
Created |
|
400 |
Bad Request |
|
422 |
Unprocessable Entity |
|
500 |
Internal Server Error |
Consumes
-
application/json
Produces
-
application/json
Security
Type | Name | Scopes |
---|---|---|
oauth2 |
default |
|
oauth2 |
default |
|
oauth2 |
default |
|
oauth2 |
default |
2.4.2. Get labor types
GET /v1/laborTypes
Parameters
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Header |
Site-Id |
Represents the id of the site to connect to |
string |
|
Query |
name |
name |
string |
|
Query |
page |
Minimum value 0 |
integer (int32) |
|
Query |
size |
Max value 2000 |
integer (int32) |
|
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
401 |
Unauthorized |
No Content |
500 |
Internal Server Error |
Produces
-
application/json
Security
Type | Name | Scopes |
---|---|---|
oauth2 |
default |
|
oauth2 |
default |
|
oauth2 |
default |
|
oauth2 |
default |
2.4.3. Get a labor type by id
GET /v1/laborTypes/{LaborTypeId}
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Header |
Site-Id |
Represents the id of the site to connect to |
string |
Path |
LaborTypeId |
Id of the labor type |
integer (int64) |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
401 |
Unauthorized |
|
404 |
Not Found |
|
500 |
Internal Server Error |
Produces
-
application/json
Security
Type | Name | Scopes |
---|---|---|
oauth2 |
default |
|
oauth2 |
default |
|
oauth2 |
default |
|
oauth2 |
default |
2.4.4. Update Labor Type
PUT /v1/laborTypes/{laborTypeId}
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Header |
Site-Id |
Represents the id of the site to connect to |
string |
Path |
laborTypeId |
Labor Type Id |
integer (int64) |
Body |
laborTypeRequest |
Details of the labor type to update |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
Updated |
|
400 |
Bad Request |
|
422 |
Unprocessable Entity |
|
500 |
Internal Server Error |
Consumes
-
application/json
Produces
-
application/json
Security
Type | Name | Scopes |
---|---|---|
oauth2 |
default |
|
oauth2 |
default |
|
oauth2 |
default |
|
oauth2 |
default |
3. Definitions
3.1. EntityModel«LaborPlanningTypeInfo»
Name | Description | Schema |
---|---|---|
createdBy |
created by for the labor planning type |
string |
createdOn |
created on date/time for the labor planning type |
string (date-time) |
id |
id of the labor planning type |
integer (int64) |
links |
< Link > array |
|
name |
name for the labor planning type |
string |
3.2. EntityModel«LaborRecordInfo»
Name | Description | Schema |
---|---|---|
appliedTime |
applied time for the labor record |
integer (int64) |
clockedTime |
Actual clockedTime of the operator |
integer (int64) |
createdBy |
created by for the labor record |
string |
createdOn |
created on date/time for the labor record |
string |
endTime |
end time for the labor record |
string |
id |
id of the labor record |
integer (int64) |
laborTypeId |
labor type id for the labor record |
integer (int64) |
links |
< Link > array |
|
modifiedBy |
modified by for the labor record |
string |
modifiedOn |
modified on date/time for the labor record |
string |
reasonId |
reasonId for the labor record |
integer (int64) |
segmentActualId |
segment actual id of the labor record |
integer (int64) |
startTime |
start time for the labor record |
string |
userName |
user name for the labor record |
string |
3.3. EntityModel«LaborTypeInfo»
Name | Description | Schema |
---|---|---|
createdBy |
created by for the labor type |
string |
createdOn |
created on date/time for the labor type |
string |
id |
id of the labor type |
integer (int64) |
laborPlanningTypeId |
labor planning type Id |
integer (int64) |
links |
< Link > array |
|
modifiedBy |
modified by for the labor type |
string |
modifiedOn |
modified on date/time for the labor type |
string |
name |
name for the labor type |
string |
3.4. Error
Error details.
Name | Description | Schema |
---|---|---|
code |
string |
|
details |
Details of the error. |
object |
3.5. HttpErrorResponse
Http Error response.
Name | Description | Schema |
---|---|---|
error |
Error details |
|
path |
URL at which error occured. |
string |
timestamp |
Timestamp at which error occured |
string |
3.6. LaborCodeCreateRequest
Name | Schema |
---|---|
appliesToMachine |
boolean |
appliesToPeople |
boolean |
deptId |
integer (int32) |
displayName |
string |
externalId |
string |
inspectionFactor |
number (float) |
lineId |
integer (int32) |
runFactor |
number (float) |
setupFactor |
number (float) |
transportFactor |
number (float) |
unitId |
integer (int32) |
3.7. LaborCodeInfo
Name | Schema |
---|---|
appliesToMachine |
boolean |
appliesToPeople |
boolean |
deptId |
integer (int32) |
displayName |
string |
externalId |
string |
id |
integer (int32) |
inspectionFactor |
number (float) |
levelType |
string |
lineId |
integer (int32) |
runFactor |
number (float) |
setupFactor |
number (float) |
transportFactor |
number (float) |
unitId |
integer (int32) |
3.8. LaborCodeUpdateRequest
Name | Schema |
---|---|
displayName |
string |
externalId |
string |
inspectionFactor |
number (float) |
runFactor |
number (float) |
setupFactor |
number (float) |
transportFactor |
number (float) |
3.9. LaborPlanningTypeInfo
Labor Planning type data tranfer object
Name | Description | Schema |
---|---|---|
createdBy |
created by for the labor planning type |
string |
createdOn |
created on date/time for the labor planning type |
string (date-time) |
id |
id of the labor planning type |
integer (int64) |
name |
name for the labor planning type |
string |
3.10. LaborPlanningTypeInfoResults
Name | Schema |
---|---|
content |
< EntityModel«LaborPlanningTypeInfo» > array |
links |
< Link > array |
page |
3.11. LaborRecordAddInfo
Labor Record add data tranfer object
Name | Description | Schema |
---|---|---|
appliedTime |
applied time for the labor record |
integer (int64) |
endTime |
end time for the labor record |
string |
laborTypeId |
labor type id for the labor record |
integer (int64) |
reasonId |
reasonId for the labor record |
integer (int64) |
segmentActualId |
segment actual id of the labor record |
integer (int64) |
startTime |
start time for the labor record |
string |
userName |
user name for the labor record |
string |
3.12. LaborRecordInfo
Labor Record data tranfer object
Name | Description | Schema |
---|---|---|
appliedTime |
applied time for the labor record |
integer (int64) |
clockedTime |
Actual clockedTime of the operator |
integer (int64) |
createdBy |
created by for the labor record |
string |
createdOn |
created on date/time for the labor record |
string |
endTime |
end time for the labor record |
string |
id |
id of the labor record |
integer (int64) |
laborTypeId |
labor type id for the labor record |
integer (int64) |
modifiedBy |
modified by for the labor record |
string |
modifiedOn |
modified on date/time for the labor record |
string |
reasonId |
reasonId for the labor record |
integer (int64) |
segmentActualId |
segment actual id of the labor record |
integer (int64) |
startTime |
start time for the labor record |
string |
userName |
user name for the labor record |
string |
3.13. LaborRecordInfoResult
Name | Description | Schema |
---|---|---|
appliedTime |
applied time for the labor record |
integer (int64) |
clockedTime |
Actual clockedTime of the operator |
integer (int64) |
createdBy |
created by for the labor record |
string |
createdOn |
created on date/time for the labor record |
string |
endTime |
end time for the labor record |
string |
id |
id of the labor record |
integer (int64) |
laborTypeId |
labor type id for the labor record |
integer (int64) |
links |
< Link > array |
|
modifiedBy |
modified by for the labor record |
string |
modifiedOn |
modified on date/time for the labor record |
string |
reasonId |
reasonId for the labor record |
integer (int64) |
segmentActualId |
segment actual id of the labor record |
integer (int64) |
startTime |
start time for the labor record |
string |
userName |
user name for the labor record |
string |
3.14. LaborRecordInfoResults
Name | Schema |
---|---|
content |
< EntityModel«LaborRecordInfo» > array |
links |
< Link > array |
page |
3.15. LaborRecordUpdateInfo
Labor Record update data tranfer object
Name | Description | Schema |
---|---|---|
appliedTime |
applied time for the labor record |
integer (int64) |
3.16. LaborTypeInfo
Labor type data tranfer object
Name | Description | Schema |
---|---|---|
createdBy |
created by for the labor type |
string |
createdOn |
created on date/time for the labor type |
string |
id |
id of the labor type |
integer (int64) |
laborPlanningTypeId |
labor planning type Id |
integer (int64) |
modifiedBy |
modified by for the labor type |
string |
modifiedOn |
modified on date/time for the labor type |
string |
name |
name for the labor type |
string |
3.17. LaborTypeInfoResult
Name | Description | Schema |
---|---|---|
createdBy |
created by for the labor type |
string |
createdOn |
created on date/time for the labor type |
string |
id |
id of the labor type |
integer (int64) |
laborPlanningTypeId |
labor planning type Id |
integer (int64) |
links |
< Link > array |
|
modifiedBy |
modified by for the labor type |
string |
modifiedOn |
modified on date/time for the labor type |
string |
name |
name for the labor type |
string |
3.18. LaborTypeInfoResults
Name | Schema |
---|---|
content |
< EntityModel«LaborTypeInfo» > array |
links |
< Link > array |
page |
3.19. LaborTypeRequest
Labor type data tranfer object
Name | Description | Schema |
---|---|---|
laborPlanningTypeId |
labor planning type id |
integer (int64) |
name |
name for the labor type |
string |
3.20. Link
Name | Schema |
---|---|
deprecation |
string |
href |
string |
hreflang |
string |
media |
string |
name |
string |
profile |
string |
rel |
string |
template |
|
templated |
boolean |
title |
string |
type |
string |
3.21. PageMetadata
Name | Schema |
---|---|
number |
integer (int64) |
size |
integer (int64) |
totalElements |
integer (int64) |
totalPages |
integer (int64) |
3.22. TemplateVariable
Name | Schema |
---|---|
description |
string |
name |
string |
type |
enum (, ?, &, /, #, *) |
3.23. UriTemplate
Name | Schema |
---|---|
variableNames |
< string > array |
variables |
< TemplateVariable > array |
4. Security
4.1. access_token
Type : oauth2
Flow : accessCode
Token URL : https://localhost/uaa/oauth/authorize
Token URL : https://localhost/uaa/oauth/token
Name | Description |
---|---|
default |
Default oauth2 scope. |
4.2. resource_owner
Type : oauth2
Flow : password
Token URL : https://localhost/uaa/oauth/token
Name | Description |
---|---|
default |
Default oauth2 scope. |
4.3. implicit_grant
Type : oauth2
Flow : implicit
Token URL : https://localhost/uaa/oauth/authorize
Name | Description |
---|---|
default |
Default oauth2 scope. |
4.4. client_creds
Type : oauth2
Flow : application
Token URL : https://localhost/uaa/oauth/token
Name | Description |
---|---|
default |
Default oauth2 scope. |