Skip to content

Commit

Permalink
don't ask for rid but use projectid instead
Browse files Browse the repository at this point in the history
  • Loading branch information
gadeynebram committed Feb 27, 2019
1 parent f58abe3 commit 02fda22
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# API to allow usage of the RedCap Randomization from plugins

## Help

The help page can be viewed by accessing https://localhost/api/?type=module&prefix=Randapi&page=api&pid=20&NOAUTH

## Randomization Test

A test for this API was written in testrandomization.php.
Expand Down
4 changes: 2 additions & 2 deletions help.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<p>Adds new records to the allocation table</p>
<h4>parameters:</h4>
<ul>
<li><b>rid</b>: Randomization table id (integer)</li>
<li><b>projectId</b>: The project id (integer)</li>
<li><b>project_status</b>: 0 = development, 1 = production (integer)</li>
<li><b>allocations</b>: array of new allocation values (see RandomizationAllocation.ts)</li>
</ul>
Expand All @@ -34,7 +34,7 @@
{
"action":"addRecordsToAllocationTable",
"parameters":{
"rid":1,
"projectId":20,
"project_status":0,
"allocations":[
{"target_field":"A","source_fields":["1","2"]},
Expand Down

0 comments on commit 02fda22

Please sign in to comment.