| | 10 | - Use Postman or other HTTP utility to make the following request: |
| | 11 | |
| | 12 | URL:: http[s]:<host>:<port>/openspecimen/rest/ng/collection-protocols/{cp_id}/workflows |
| | 13 | Method:: PUT |
| | 14 | Content-Type:: application/json |
| | 15 | parameter:: cp_id using the value from above. |
| | 16 | Request Body:: |
| | 17 | |
| | 18 | {{{ |
| | 19 | [ |
| | 20 | { |
| | 21 | "name":"registerParticipant", |
| | 22 | "view":"plugin-ui-resources/le/collect-specimens.html", |
| | 23 | "ctrl":"leRegAndCollectSpecimensCtrl", |
| | 24 | "data":{ |
| | 25 | "boxOpts":{ |
| | 26 | "dimension":{ |
| | 27 | "rows":8, |
| | 28 | "columns":12 |
| | 29 | }, |
| | 30 | "compact":false |
| | 31 | } |
| | 32 | } |
| | 33 | } |
| | 34 | ] |
| | 35 | }}} |
| | 36 | |
| | 37 | Response Body:: |
| | 38 | {{{ |
| | 39 | |
| | 40 | { |
| | 41 | "cpId": <cp_id>, |
| | 42 | "shortTitle": <cp_short_title>, |
| | 43 | "workflows": { |
| | 44 | "registerParticipant": { |
| | 45 | "name": "registerParticipant", |
| | 46 | "view": "plugin-ui-resources/le/collect-specimens.html", |
| | 47 | "ctrl": "leRegAndCollectSpecimensCtrl", |
| | 48 | "data": { |
| | 49 | "boxOpts": { |
| | 50 | "dimension": { |
| | 51 | "rows": 8, |
| | 52 | "columns": 12 |
| | 53 | }, |
| | 54 | "compact": false |
| | 55 | } |
| | 56 | } |
| | 57 | } |
| | 58 | } |
| | 59 | } |
| | 60 | }}} |