API Structure
1) getTopData
Description This API provides data for top cards.
Request Details
- method: POST
- body:
{
keys: {
dbCompany: '',
buyer: ''
}
}
Response
[
{
id: 'UN_APPROVED',
value: '',
label: '',
color: '',
variant: '',
active: '',
items:[
{
id: 'PENDING_OPEN',
value: '',
label:'',
color: '',
active:'' //Y/N
}
]
},
{
id: 'IN_PROGRESS',
value: '',
label: '',
color: '',
variant: '',
active: '',
items: [
{
id: '',
label: '',
value: '',
color: '',
active: ''
}
]
}
]
2) getFilterData
Description This API provides data for filters.
Request Details
- method: POST
- body:
{
keys: {
dbCompany: '',
buyer: ''
}
}
Response
[
{
id:'DATA_POINTS',
label:'',
items:[{
id:'2',
label:'',
active : '',
}]
},
{
id:'SORT_LEVEL1',
label:'Sort Levels 1 :',
items:[{
id:'2',
label:'',
active : '',
}]
},
{
id:'SORT_LEVEL2',
label:'2:',
items:[{
id:'2',
label:'',
active : '',
}]
},
{
id:'REGION',
label:'',
items:[{
id:'2',
label:'',
active : '',
}]
},
{
id:'COT',
label:'',
items:[{
id:'2',
label:'',
active : '',
}]
},
{
id:'ECV',
label:'',
items:[{
id:'2',
label:'',
active : '',
}]
},
{
id:'DISPLAY_STYLE_SORT',
label:'',
items:[{
id:'2',
label:'',
active : '',
}]
}
]
3) getIds
Description This API gives chart data ids.
Request Details
- method: POST
- body:
{
keys: {
dbCompany: '',
buyer: ''
},
filterObj: {
DATA_POINTS: '',
SORT_LEVEL1: '',
SORT_LEVEL2: '',
REGION: '',
COT: '',
ECV: '',
DISPLAY_STYLE_SORT: '',
CATEGORY: ['UN_APPROVED']
}
}
Response
[
1,2,3
]
4) getDataByIds
Description This API gives chart data by ids.
Request Details
- method: POST
- body:
{
keys: {
dbCompany: '',
buyer: ''
},
idArr: [1,2,3]
}
Response
[
{
label: '',
value: ''
}
]
5) saveData
Request Details
- method: POST
- body:
{
keys: {
dbCompany: '',
buyer: ''
},
data: {
DATA_POINTS: '',
SORT_LEVEL1: '',
SORT_LEVEL2: '',
REGION: '',
COT: '',
ECV: '',
DISPLAY_STYLE_SORT: '',
CATEGORY: ['UN_APPROVED']
}
}
Response
{
status: 'Success'
}