2. Resources
2.1. Route-command-controller
Route Command Controller
2.1.1. Archive route
PATCH /routes/{routeId}/archive
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
routeId |
routeId |
integer (int64) |
Body |
routeInfo |
routeInfo |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
400 |
Bad request |
|
401 |
Unauthorized |
|
404 |
Not Found |
|
422 |
Unprocessable Entity |
2.1.2. Copy route
POST /routes/{routeId}/copyRoute
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
routeId |
Id of the route to be released |
integer (int64) |
Body |
routeInput |
routeInput |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
400 |
Bad request |
|
401 |
Unauthorized |
|
404 |
Not Found |
|
422 |
Unprocessable Entity |
|
500 |
Internal Server error |
2.1.3. Release route
POST /routes/{routeId}/{confirmRelease}/release
Parameters
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Path |
confirmRelease |
confirm release flag |
boolean |
|
Path |
routeId |
Id of the route to be released |
integer (int64) |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
400 |
Bad request |
|
401 |
Unauthorized |
|
404 |
Not Found |
|
422 |
Unprocessable Entity |
|
500 |
Internal Server error |
2.2. Route-controller
Route Controller
2.2.1. Create route
POST /routes
Responses
HTTP Code | Description | Schema |
---|---|---|
201 |
Created |
|
400 |
Bad Request |
|
401 |
Unauthorized |
|
422 |
Unprocessable Entity |
2.2.2. Get routes
GET /routes
Parameters
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Query |
description |
description |
string |
|
Query |
modifiedBy |
modifiedBy |
string |
|
Query |
name |
name |
string |
|
Query |
orderBy |
enum (asc, desc) |
|
|
Query |
orderByColumn |
orderByColumn |
string |
|
Query |
page |
integer (int32) |
|
|
Query |
producedMaterialId |
producedMaterialId |
integer (int64) |
|
Query |
productionLineId |
productionLineId |
integer (int64) |
|
Query |
showAllRevisions |
showAllRevisions |
boolean |
|
Query |
size |
integer (int32) |
|
|
Query |
status |
status |
string |
2.2.3. Upgrade route segment documents to latest schema version
GET /routes/upgrade/{schemaVersion}/{routeId}
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
routeId |
RouteId of segment |
integer (int64) |
Path |
schemaVersion |
Schema Version |
integer (int32) |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
401 |
Unauthorized |
|
404 |
Not Found |
|
500 |
Internal Server error |
2.2.4. Get a route
GET /routes/{routeId}
2.2.5. Delete a route
DELETE /routes/{routeId}
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
routeId |
Route Id to be deleted |
integer (int64) |
2.2.6. Update route
PATCH /routes/{routeId}
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
routeId |
Details on the route to update |
integer (int64) |
Body |
routeInfo |
routeInfo |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
400 |
Bad request |
|
401 |
Unauthorized |
|
404 |
Not Found |
|
422 |
Unprocessable Entity |
2.2.7. Create a New Revision
POST /routes/{routeId}/revision
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
routeId |
Id of the route to create a new revision |
integer (int64) |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
400 |
Bad request |
|
401 |
Unauthorized |
|
404 |
Not Found |
|
422 |
Unprocessable Entity |
|
500 |
Internal Server error |
2.3. Segment-controller
Segment Controller
2.3.1. Get Segments Definition Document
GET /routes/{routeId}/segments
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
routeId |
Get segments of the RouteId |
integer (int64) |
2.3.2. Update segmentDefinition
PUT /routes/{routeId}/segments
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
routeId |
RouteId of segments |
integer (int64) |
Body |
segmentDefInput |
Segments Definition to update |
object |
Responses
HTTP Code | Description | Schema |
---|---|---|
201 |
Created |
object |
400 |
Bad Request |
|
401 |
Unauthorized |
|
422 |
Unprocessable Entity |
|
500 |
Internal Server error |
2.3.3. Delete segments
DELETE /routes/{routeId}/segments
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
routeId |
RouteId for which segments to be deleted |
integer (int64) |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
object |
303 |
See Other. (Segments deleted and route segment added) |
|
401 |
Unauthorized |
|
404 |
Not Found |
2.3.4. Get segment
GET /routes/{routeId}/segments/{segmentId}
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
routeId |
RouteId of the segment |
integer (int64) |
Path |
segmentId |
SegmentId fof the segment |
integer (int64) |
3. Definitions
3.1. Api error
Http Error response.
Name | Schema |
---|---|
errorCode |
string |
message |
string |
requestPath |
string |
status |
enum (100, 101, 102, 103, 200, 201, 202, 203, 204, 205, 206, 207, 208, 226, 300, 301, 302, 303, 304, 305, 307, 308, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 426, 428, 429, 431, 451, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511) |
subErrors |
|
timestamp |
string |
3.2. ApiSubError
Name | Schema |
---|---|
args |
< string > array |
errorCode |
string |
field |
string |
message |
string |
value |
object |
3.3. Error
Error details.
Name | Description | Schema |
---|---|---|
code |
string |
|
details |
Details of the error. |
object |
3.4. 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. PageMetadata
Name | Schema |
---|---|
number |
integer (int64) |
size |
integer (int64) |
totalElements |
integer (int64) |
totalPages |
integer (int64) |
3.7. Resource«RouteInfo»
Name | Description | Schema |
---|---|---|
bomFormulationId |
bomFormulationId of the route |
integer (int64) |
count |
Determines count of revisions of a route. |
integer (int64) |
createdBy |
User that Created the route. |
string |
createdOn |
Date that the route was created. |
string (date-time) |
description |
description of the route |
string |
lastModifiedBy |
User that last modified the route. |
string |
lastModifiedOn |
Date that the route was last modified. |
string (date-time) |
latest |
Determines if revision of route is latest. 0 - if revision is old. 1 - If revision is new. |
boolean |
links |
< Link > array |
|
name |
name of the route |
string |
producedMaterialId |
producedMaterialId of the route |
integer (int64) |
productionLineId |
productionLineId of the route |
integer (int64) |
released |
Determines if route been released. 0 - if Route is not released. 1 - If route is released. |
boolean |
revision |
revision of the route |
integer (int32) |
routeId |
id of the route |
integer (int64) |
state |
State of the route. |
boolean |
status |
status of the route |
string |
3.8. RouteForCopyInfo
Name | Description | Schema |
---|---|---|
bomFormulationId |
bomFormulationId of the route |
integer (int64) |
description |
description of the route record |
string |
name |
name of the route record |
string |
producedMaterialId |
producedMaterialId of the route record |
integer (int64) |
productionLineId |
productionLineId of the route record |
integer (int64) |
productionUnits |
productionUnits of the route record |
< integer (int64) > array |
secretKey |
secretkey of the BFF request |
string |
3.9. RouteForCreateInfo
Route data tranfer object for creation.
Name | Description | Schema |
---|---|---|
bomFormulationId |
bomFormulationId of the route record |
integer (int64) |
description |
description of the route record |
string |
name |
name of the route record |
string |
producedMaterialId |
producedMaterialId of the route record |
integer (int64) |
productionLineId |
productionLineId of the route record |
integer (int64) |
revision |
revision of the route record |
integer (int32) |
secretKey |
secretkey of the BFF request |
string |
status |
status of the route record |
string |
3.10. RouteForStatusUpdateInfo
Route data tranfer object for update
Name | Description | Schema |
---|---|---|
status |
Status of the route record |
string |
3.11. RouteForUpdateInfo
Route data tranfer object for update
Name | Description | Schema |
---|---|---|
bomFormulationId |
bomFormulationId of the route record |
integer (int64) |
description |
Description of the route record |
string |
name |
Name of the route record |
string |
status |
Status of the route record |
string |
3.12. RouteInfo
Route data tranfer object
Name | Description | Schema |
---|---|---|
bomFormulationId |
bomFormulationId of the route |
integer (int64) |
count |
Determines count of revisions of a route. |
integer (int64) |
createdBy |
User that Created the route. |
string |
createdOn |
Date that the route was created. |
string (date-time) |
description |
description of the route |
string |
lastModifiedBy |
User that last modified the route. |
string |
lastModifiedOn |
Date that the route was last modified. |
string (date-time) |
latest |
Determines if revision of route is latest. 0 - if revision is old. 1 - If revision is new. |
boolean |
name |
name of the route |
string |
producedMaterialId |
producedMaterialId of the route |
integer (int64) |
productionLineId |
productionLineId of the route |
integer (int64) |
released |
Determines if route been released. 0 - if Route is not released. 1 - If route is released. |
boolean |
revision |
revision of the route |
integer (int32) |
routeId |
id of the route |
integer (int64) |
state |
State of the route. |
boolean |
status |
status of the route |
string |
3.13. RouteInfoResult
Name | Description | Schema |
---|---|---|
bomFormulationId |
bomFormulationId of the route |
integer (int64) |
count |
Determines count of revisions of a route. |
integer (int64) |
createdBy |
User that Created the route. |
string |
createdOn |
Date that the route was created. |
string (date-time) |
description |
description of the route |
string |
lastModifiedBy |
User that last modified the route. |
string |
lastModifiedOn |
Date that the route was last modified. |
string (date-time) |
latest |
Determines if revision of route is latest. 0 - if revision is old. 1 - If revision is new. |
boolean |
links |
< Link > array |
|
name |
name of the route |
string |
producedMaterialId |
producedMaterialId of the route |
integer (int64) |
productionLineId |
productionLineId of the route |
integer (int64) |
released |
Determines if route been released. 0 - if Route is not released. 1 - If route is released. |
boolean |
revision |
revision of the route |
integer (int32) |
routeId |
id of the route |
integer (int64) |
state |
State of the route. |
boolean |
status |
status of the route |
string |
3.14. RouteInfoResults
Name | Schema |
---|---|
content |
< Resource«RouteInfo» > array |
links |
< Link > array |
page |
4. Security
4.1. access_token
Type : oauth2
Flow : accessCode
Token URL : https://localhost:8443/uaa/oauth/authorize
Token URL : https://localhost:8443/uaa/oauth/token
Name | Description |
---|---|
default |
Default oauth2 scope. |
4.2. resource_owner
Type : oauth2
Flow : password
Token URL : https://localhost:8443/uaa/oauth/token
Name | Description |
---|---|
default |
Default oauth2 scope. |
4.3. implicit_grant
Type : oauth2
Flow : implicit
Token URL : https://localhost:8443/uaa/oauth/authorize
Name | Description |
---|---|
default |
Default oauth2 scope. |
4.4. client_creds
Type : oauth2
Flow : application
Token URL : https://localhost:8443/uaa/oauth/token
Name | Description |
---|---|
default |
Default oauth2 scope. |