amarbajric / EBUSA-AIM17

BPMaaS. Platform for buying, selling and reviewing processes
MIT License
2 stars 3 forks source link

Store service #30 #113

Closed stfnltnr closed 6 years ago

stfnltnr commented 6 years ago

added Rating stuff

GET localhost:10000/api/store/processRating/{processId}

returns list with ratings for the process. e.g.

[
    {
        "rating": 4,
        "ratingComment": "TestKommentar zu einem Process",
        "createdBy": "Ersteller",
        "createdAt": 1356019200000,
        "processId": 3
    },
    {
        "rating": 1,
        "ratingComment": "nicht so tolle ...",
        "createdBy": "Ersteller",
        "createdAt": 1356019200000,
        "processId": 3
    }
]

POST localhost:10000/api/store/processRating/{processId}/add adds a rating to the present processId within the URL. Example for the body

{
        "rating": 4,
        "ratingComment": "TestKommentar zu einem Process",
        "createdBy": "Ersteller",
        "createdAt": 1356019200000,
}

Added update function for ApprovalComment

POST localhost:10000/api/store/process/{processId}/updateApprovalComment updates the ApprovalComment of a process comment is send as simple plain within the body

A sample comment