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: '',
items:[
{
id: 'PENDING_OPEN',
value: '',
label:'',
color: ''
}
]
},
{
id: 'IN_PROGRESS',
value: '',
label: '',
color: '',
variant: '',
items: [
{
id: '',
label: '',
value: '',
color: ''
}
]
}
]

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 : true,
}]
},
{
id:'SORT_LEVEL1',
label:'Sort Levels 1 :',
items:[{
id:'2',
label:'',
active : true,
}]
},
{
id:'SORT_LEVEL2',
label:'2:',
items:[{
id:'2',
label:'',
active : true,
}]
},
{
id:'REGION',
label:'',
items:[{
id:'2',
label:'',
active : true,
}]
},
{
id:'COT',
label:'',
items:[{
id:'2',
label:'',
active : true,
}]
},
{
id:'ECV',
label:'',
items:[{
id:'2',
label:'',
active : true,
}]
},
{
id:'DISPLAY_STYLE_SORT',
label:'',
items:[{
id:'2',
label:'',
active : true,
}]
}
]

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'
}