Closed stfnltnr closed 6 years ago
WIP Changes to ProcessStore Service
Added approver columns are now stored within the ProcessStore table, modified ProcessStoreDTO. is_approved is false by default.
is_approved
false
{ "processId": 1, "processName": "name1", "processDescription": "test desct asldfasd", "processCreator": "test1", "processCreatedAt": 993052800000, "processVersion": 1, "processPrice": 123.123, "processApprover": "approver1", "processApproverComment": "well done approved", "processApprovedDate": 1213977600000, "approved": false }
INSERT INTO ippr_store.processstore VALUES (1, true,'08.06.2018','approver1','well done approved','01.06.2018', 'test1', 'test desct asldfasd', 'name1', 123.123, 1); INSERT INTO ippr_store.processstore VALUES (2, false, null,null,null, '20.06.2018', 't1231est', 'testasdas asda as asd as ad asd ad asd ad asd dd', 'name2', 222.222, 2); INSERT INTO ippr_store.processstore VALUES (3, false, '09.06.2018','approver1','error', '20.06.2018', 'test3', 'testprocess nummer 3', 'name2', 222.222, 2);
At the moment the following endpoints are available
GET localhost:10000/api/store/processes
GET localhost:10000/api/store/processes/approved
GET localhost:10000/api/store/processes/notApproved
GET localhost:10000/api/store/process/{processId}
{processid}
POST localhost:10000/api/store/process/{processId}/approve
POST localhost:10000/api/store/process/{processId}/unapprove
As this PR contains WIP changes, the CHANGELOG.md can be left out and changes should be added at completion
CHANGELOG.md
WIP Changes to ProcessStore Service
ProcessStore Repo
Added approver columns are now stored within the ProcessStore table, modified ProcessStoreDTO.
is_approved
isfalse
by default.TestData
Endpoints
At the moment the following endpoints are available
GET localhost:10000/api/store/processes
- returns a list with all processes from storeGET localhost:10000/api/store/processes/approved
- returns a list with all approved processes from storeGET localhost:10000/api/store/processes/notApproved
- returns a list with all unapproved processes from storeGET localhost:10000/api/store/process/{processId}
- returns process with{processid}
POST localhost:10000/api/store/process/{processId}/approve
- approve process with{processid}
POST localhost:10000/api/store/process/{processId}/unapprove
- unapprove process with{processid}
ToDo