2. Resources
2.1. Graph-viewer-controller
Graph Viewer Controller
2.1.1. Get material lot grapsh details
GET /v1/graph
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Query |
materialLotId |
matertial lot id |
integer (int64) |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
successful |
|
401 |
Unauthorized |
No Content |
404 |
ERR404 |
No Content |
422 |
Unprocessable Entity |
|
500 |
Internal server error |
No Content |
503 |
Service unavailable |
2.2. Material-lot-viewer-controller
Material Lot Viewer Controller
2.2.1. Get material lot genealogy view data
GET /v1/materialLots/genealogy
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Query |
lotIdentifier |
lot identifier (use lot_identifier/event_num for this property |
string |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
successful |
object |
401 |
Unauthorized |
No Content |
403 |
Forbidden |
|
404 |
Not Found |
|
500 |
Internal server error |
No Content |
503 |
Service Unavailable |
2.2.2. Get material lot genealogy view data by target lot id
GET /v1/materialLots/genealogy/{targetLotId}
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
successful |
object |
401 |
Unauthorized |
No Content |
403 |
Forbidden |
|
404 |
Not Found |
|
500 |
Internal server error |
No Content |
503 |
Service Unavailable |
2.2.3. Get SourceLots of a target lot
GET /v1/materialLots/genealogy/{targetLotId}/sourceLots
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
targetLotId |
Target lot/event Id |
integer (int64) |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
successful |
object |
401 |
Unauthorized |
No Content |
403 |
Forbidden |
|
404 |
Not Found |
|
500 |
Internal server error |
No Content |
503 |
Service Unavailable |
2.3. Source-details-viewer-controller
Source Details Viewer Controller
2.3.1. Get Source Details data
GET /v1/sourceDetails
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Query |
materialLotId |
Matertial Lot of product |
integer (int64) |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
successful |
object |
401 |
Unauthorized |
No Content |
404 |
ERR404 |
No Content |
500 |
Internal server error |
No Content |
2.4. Used-in-viewer-controller
Used In Viewer Controller
2.4.1. Get material lot used in details
GET /v1/usedin/{materialLotId}
Parameters
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Path |
materialLotId |
matertial lot id |
integer (int64) |
|
Query |
page |
integer (int32) |
|
|
Query |
size |
integer (int32) |
|
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
successful |
|
401 |
Unauthorized |
No Content |
404 |
ERR404 |
No Content |
422 |
Unprocessable Entity |
|
500 |
Internal server error |
No Content |
503 |
Service unavailable |
2.5. User-settings-controller
User Settings Controller
2.5.1. Create User settings for the logged in user
POST /v2/settings
Responses
HTTP Code | Description | Schema |
---|---|---|
201 |
Created |
|
204 |
No Content, Error retrieving created user settings |
|
400 |
Invalid data supplied |
|
401 |
User Unauthorized |
No Content |
404 |
App ID not found in privilege set |
|
409 |
Conflict, User Setting already exists. Use a PUT to update |
|
500 |
Internal Server Error |
2.5.2. Get User settings for the logged in User
GET /v2/settings
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Query |
appId |
appId |
integer (int32) |
Query |
viewName |
viewName |
string |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
400 |
Invalid data supplied |
|
401 |
User Unauthorized |
No Content |
404 |
Not found, no user setting found for the user |
|
500 |
Internal Server Error |
2.5.3. Update User settings for the logged in user
PUT /v2/settings
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
400 |
Invalid data supplied |
|
401 |
User Unauthorized |
No Content |
404 |
Not Found, There is no saved User settings for the logged in user |
|
500 |
Internal Server Error |
2.5.4. Delete User settings for the logged in user
DELETE /v2/settings
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Query |
appId |
appId |
integer (int32) |
Query |
viewName |
viewName |
string |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
object |
204 |
Success |
string |
400 |
Invalid data supplied |
|
401 |
User Unauthorized |
No Content |
404 |
Not Found, User Setting not found |
|
500 |
Internal Server Error |
2.5.5. Get Privilege Sets
GET /v2/settings/apps
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
< PrivilegeSet > array |
400 |
Invalid data supplied |
|
401 |
User Unauthorized |
No Content |
404 |
Not found, no user setting found for the user |
|
500 |
Internal Server Error |
3. Definitions
3.1. EntityModel«UsedInInfo»
Name | Description | Schema |
---|---|---|
currentQty |
MateriLot currentQty |
number (float) |
id |
MateriLot Id |
integer (int64) |
initialQty |
MateriLot initialQty |
number (double) |
links |
||
lotDesc |
MateriLot lotDesc |
string |
lotId |
MateriLot lotId |
integer (int64) |
prodCode |
MateriLot prodCode |
string |
prodDesc |
MateriLot prodDesc |
string |
prodFamilyDesc |
MateriLot prodFamilyDesc |
string |
prodFamilyId |
MateriLot prodFamilyId |
integer (int64) |
prodId |
MateriLot prodId |
integer (int64) |
status |
MateriLot Status |
string |
unit |
MateriLot unit |
string |
unitId |
MateriLot unitId |
integer (int64) |
unitOfMeasure |
MaterialLot UnitOfMeasure |
string |
unitOfMeasureId |
MaterialLot UnitOfMeasure Id |
integer (int64) |
usedQty |
MateriLot usedQty |
number (double) |
3.3. GraphInfo
Name | Description | Schema |
---|---|---|
consumedQuantity |
Consumed Quantity |
number (double) |
engineeringUnit |
Unit of Measure |
string |
location |
Location of Material |
string |
lotIdentifier |
Material LotIdentifier |
string |
materialLotId |
Material Lot Id |
integer (int64) |
productCode |
Product Code |
string |
status |
Status of Lot |
string |
3.4. GraphResponse
Name | Description | Schema |
---|---|---|
materialLotId |
Material Lot Id |
integer (int64) |
sourceLots |
Material Source Lots |
< GraphInfo > array |
targetLots |
Material Target Lots |
< GraphInfo > array |
3.6. Link
Name | Description | Schema |
---|---|---|
deprecation |
string |
|
href |
string |
|
hreflang |
string |
|
media |
string |
|
name |
string |
|
profile |
string |
|
rel |
string |
|
template |
||
templated |
Example : |
boolean |
title |
string |
|
type |
string |
3.8. PageMetadata
Name | Schema |
---|---|
number |
integer (int64) |
size |
integer (int64) |
totalElements |
integer (int64) |
totalPages |
integer (int64) |
3.9. PrivilegeSet
Name | Schema |
---|---|
category |
string |
description |
string |
displayName |
string |
icon |
string |
id |
integer (int32) |
scope |
string |
3.10. TemplateVariable
Name | Schema |
---|---|
description |
string |
name |
string |
type |
enum (, ?, &, /, #, *) |
3.11. UriTemplate
Name | Schema |
---|---|
variableNames |
< string > array |
variables |
< TemplateVariable > array |
3.12. UsedInInfo
Name | Description | Schema |
---|---|---|
currentQty |
MateriLot currentQty |
number (float) |
id |
MateriLot Id |
integer (int64) |
initialQty |
MateriLot initialQty |
number (double) |
lotDesc |
MateriLot lotDesc |
string |
lotId |
MateriLot lotId |
integer (int64) |
prodCode |
MateriLot prodCode |
string |
prodDesc |
MateriLot prodDesc |
string |
prodFamilyDesc |
MateriLot prodFamilyDesc |
string |
prodFamilyId |
MateriLot prodFamilyId |
integer (int64) |
prodId |
MateriLot prodId |
integer (int64) |
status |
MateriLot Status |
string |
unit |
MateriLot unit |
string |
unitId |
MateriLot unitId |
integer (int64) |
unitOfMeasure |
MaterialLot UnitOfMeasure |
string |
unitOfMeasureId |
MaterialLot UnitOfMeasure Id |
integer (int64) |
usedQty |
MateriLot usedQty |
number (double) |
3.13. UsedInInfoPage
Name | Schema |
---|---|
content |
< EntityModel«UsedInInfo» > array |
links |
|
page |
3.14. UserSettingRequest
Name | Description | Schema |
---|---|---|
appId |
integer (int32) |
|
data |
The application specific settings, Eg:- 'App Name' : {'property1' : 'value' , 'property2' : 'value'} } |
object |
viewName |
string |
3.15. UserSettingResponseResource
Name | Description | Schema |
---|---|---|
appId |
integer (int32) |
|
data |
object |
|
defaultSetting |
Example : |
boolean |
links |
< Link > array |
|
viewName |
string |
4. Security
4.1. access_token
Type : oauth2
Flow : accessCode
Token URL : http://localhost:8080/uaa/oauth/authorize
Token URL : http://localhost:8080/uaa/oauth/token
Name | Description |
---|---|
default |
Default oauth2 scope. |
4.2. resource_owner
Type : oauth2
Flow : password
Token URL : http://localhost:8080/uaa/oauth/token
Name | Description |
---|---|
default |
Default oauth2 scope. |
4.3. implicit_grant
Type : oauth2
Flow : implicit
Token URL : http://localhost:8080/uaa/oauth/authorize
Name | Description |
---|---|
default |
Default oauth2 scope. |
4.4. client_creds
Type : oauth2
Flow : application
Token URL : http://localhost:8080/uaa/oauth/token
Name | Description |
---|---|
default |
Default oauth2 scope. |