Implemented enpoint for retrieving average rating and number of ratings of a specific process
Create org.POSThttp://localhost:10000/api/store/process/createJSON Body
{
"processName": "TestProcess",
"processDescription": "Description of a process",
"processCreator": "set the username of the user",
"processPrice": 222.222
}
JSON Response
{
"processId": 1,
"processName": "TestProcess",
"processDescription": "Description of a process",
"processCreator": "set the username of the user",
"processCreatedAt": 1530045995095,
"processVersion": 1,
"processPrice": 222.222,
"processApprover": null,
"processApproverComment": null,
"processApproved": false,
"processApprovedDate": null
}
Get average rating and number of ratings for a specific processGEThttp://localhost:10000/api/store/processRating/<processId>/getAverageAndCountJSON Response
DONE
Create org.
POST
http://localhost:10000/api/store/process/create
JSON BodyJSON Response
Get average rating and number of ratings for a specific process
GET
http://localhost:10000/api/store/processRating/<processId>/getAverageAndCount
JSON Response