Commit efa06946 authored by Venkaiah Naidu Singamchetty's avatar Venkaiah Naidu Singamchetty

Merge branch 'apiserver' into 'master'

readme file documentation added

See merge request !92
parents 9158d2b1 a63cf63a
...@@ -52,6 +52,7 @@ Data In body Example : ...@@ -52,6 +52,7 @@ Data In body Example :
"searchText":"eng" "searchText":"eng"
}*/ }*/
3. POST method to add activity added by manager to his reportees. Id should contain all the fields given below in the example or else it throws an error. 3. POST method to add activity added by manager to his reportees. Id should contain all the fields given below in the example or else it throws an error.
Note: Users can add a custom aName field , from frontend a unique id will be generated and added as aID. Note: Users can add a custom aName field , from frontend a unique id will be generated and added as aID.
...@@ -59,18 +60,20 @@ https://nisumscorecardservertesting.netlify.app/.netlify/functions/api/createAct ...@@ -59,18 +60,20 @@ https://nisumscorecardservertesting.netlify.app/.netlify/functions/api/createAct
Data In body Example : Data In body Example :
//Example of post Data //Example of post Data
/*
{ {
"empId":41689, "empId":10000,
"data":{ "data":{
"aName":"Approval of timesheet", "aName":"Approval of timesheet",
"aId":"D001", "aId":"D001",
"type":"duties", "type":"duties",
"ratedBy":"Name",
"score":3, "score":3,
"comments":"" "comments":""
} }
} }
Actual Activities Data this to be used when trying to create a activity to a employee: Actual Activities Data this to be used when trying to create a activity to a employee:
[{"_id":"65f19252ecd2b756fab896b8","type":"duties","aId":"D001","aName":"Submission timesheet"}, [{"_id":"65f19252ecd2b756fab896b8","type":"duties","aId":"D001","aName":"Submission timesheet"},
...@@ -91,8 +94,29 @@ Data In body Example : ...@@ -91,8 +94,29 @@ Data In body Example :
{ {
"empId":41689, "empId":41689,
"fromDate":"2024-03-10", "fromDate":"2024-03-10",
"toDate":"2024-03-14" "toDate":"2024-03-14",
page:0
perPage:10,
getAll:true //send only for get all records
}
*/
5. POST method to get Average scores of individual activities.
https://nisumscorecardservertesting.netlify.app/.netlify/functions/api/getActivities-avg
//sending filtered activities avg score data
/*Example post data
{
"empId":41689,
"fromDate":"2024-03-10",
"toDate":"2024-03-14",
"types":["duties","initiative"]
} }
*/
API's for Deployment Team Usage API's for Deployment Team Usage
...@@ -134,6 +158,7 @@ Data In body Example : ...@@ -134,6 +158,7 @@ Data In body Example :
"searchText":"eng" "searchText":"eng"
}*/ }*/
3. POST method to add activity added by manager to his reportees. Id should contain all the fields given below in the example or else it throws an error. 3. POST method to add activity added by manager to his reportees. Id should contain all the fields given below in the example or else it throws an error.
Note: Users can add a custom aName field , from frontend a unique id will be generated and added as aID. Note: Users can add a custom aName field , from frontend a unique id will be generated and added as aID.
...@@ -141,18 +166,19 @@ https://nisumscorecardserverdev.netlify.app/.netlify/functions/api/createActivit ...@@ -141,18 +166,19 @@ https://nisumscorecardserverdev.netlify.app/.netlify/functions/api/createActivit
Data In body Example : Data In body Example :
//Example of post Data //Example of post Data
/*
{ {
"empId":41689, "empId":10000,
"data":{ "data":{
"aName":"Approval of timesheet", "aName":"Approval of timesheet",
"aId":"D001", "aId":"D001",
"type":"duties", "type":"duties",
"ratedBy":"Name",
"score":3, "score":3,
"comments":"" "comments":""
} }
} }
Actual Activities Data this to be used when trying to create a activity to a employee: Actual Activities Data this to be used when trying to create a activity to a employee:
[{"_id":"65f19252ecd2b756fab896b8","type":"duties","aId":"D001","aName":"Submission timesheet"}, [{"_id":"65f19252ecd2b756fab896b8","type":"duties","aId":"D001","aName":"Submission timesheet"},
...@@ -168,12 +194,30 @@ Actual Activities Data this to be used when trying to create a activity to a emp ...@@ -168,12 +194,30 @@ Actual Activities Data this to be used when trying to create a activity to a emp
https://nisumscorecardserverdev.netlify.app/.netlify/functions/api/getActivities https://nisumscorecardserverdev.netlify.app/.netlify/functions/api/getActivities
Data In body Example : Data In body Example :
/*Example post data
{ {
"empId":41689, "empId":41689,
"fromDate":"2024-03-10", "fromDate":"2024-03-10",
"toDate":"2024-03-14" "toDate":"2024-03-14",
page:0
perPage:10,
getAll:true //send only for get all records
}
*/
5. POST method to get Average scores of individual activities.
https://nisumscorecardserverdev.netlify.app/.netlify/functions/api/getActivities-avg
//sending filtered activities avg score data
/*Example post data
{
"empId":41689,
"fromDate":"2024-03-10",
"toDate":"2024-03-14",
"types":["duties","initiative"]
} }
*/
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment