Changes between Version 3 and Version 4 of OpenSpecimen HowTo Use Expedited Entry for a Study


Ignore:
Timestamp:
03/18/16 14:29:07 (8 years ago)
Author:
Richard Bramley
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • OpenSpecimen HowTo Use Expedited Entry for a Study

    v3 v4  
    88
    99- The `cp_id` is the id of the protocol and can be obtained from the URL when viewing the protocol or its participants.  For example `https://www15.lamp.le.ac.uk/openspecimen/#/cp-view/12/participants`
     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}}}
    1061- The setting can be deleted by updating all the values to empty using the REST API.  For example
    1162