2. Resources
2.1. Material-lot-viewer-controller
Material Lot Viewer Controller
2.1.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.1.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.1.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.2. Source-details-viewer-controller
Source Details Viewer Controller
2.2.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.3. Used-in-viewer-controller
Used In Viewer Controller
2.3.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.4. User-settings-controller
User Settings Controller
2.4.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.4.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.4.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.4.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 |
object |
400 |
Invalid data supplied |
|
401 |
User Unauthorized |
No Content |
404 |
Not Found, User Setting not found |
|
500 |
Internal Server Error |
2.4.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.3. Link
Name | Description | Schema |
---|---|---|
href |
string |
|
rel |
string |
|
templated |
Example : |
boolean |
3.4. PageMetadata
Name | Schema |
---|---|
number |
integer (int64) |
size |
integer (int64) |
totalElements |
integer (int64) |
totalPages |
integer (int64) |
3.5. PrivilegeSet
Name | Schema |
---|---|
category |
string |
description |
string |
displayName |
string |
icon |
string |
id |
integer (int32) |
scope |
string |
3.6. Resource«UsedInInfo»
Name | Schema |
---|---|
currentQty |
number (float) |
id |
integer (int64) |
initialQty |
number (double) |
links |
< Link > array |
lotDesc |
string |
lotId |
integer (int64) |
prodCode |
string |
prodDesc |
string |
prodFamilyDesc |
string |
prodFamilyId |
integer (int64) |
prodId |
integer (int64) |
status |
string |
unit |
string |
unitId |
integer (int64) |
usedQty |
number (double) |
3.7. UsedInInfo
Name | Schema |
---|---|
currentQty |
number (float) |
id |
integer (int64) |
initialQty |
number (double) |
lotDesc |
string |
lotId |
integer (int64) |
prodCode |
string |
prodDesc |
string |
prodFamilyDesc |
string |
prodFamilyId |
integer (int64) |
prodId |
integer (int64) |
status |
string |
unit |
string |
unitId |
integer (int64) |
usedQty |
number (double) |
3.8. UsedInInfoPage
Name | Schema |
---|---|
content |
< Resource«UsedInInfo» > array |
links |
< Link > array |
page |
3.9. UserSettingRequest
Name | Description | Schema |
---|---|---|
appId |
integer (int32) |
|
data |
The application specific settings, Eg:- 'App Name' : {'property1' : 'value' , 'property2' : 'value'} } |
object |
viewName |
string |
3.10. UserSettingResource
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. |