Skip to content

Commit

Permalink
OC-6736: Document existing APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
kkrumlian committed Nov 4, 2015
1 parent ff3f182 commit 65428e2
Show file tree
Hide file tree
Showing 11 changed files with 923 additions and 745 deletions.
10 changes: 10 additions & 0 deletions apidoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"name": "OpenClinica API",
"version": "3.8",
"description": "The OpenClinica REST API",
"title": "The OpenClinica REST API",
"template": {
"withCompare": false,
"withGenerator": false
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public class AccountController {
* @api {post} /pages/accounts/login Retrieve a user account
* @apiName getAccountByUserName
* @apiPermission admin
* @apiVersion 1.0.0
* @apiVersion 3.8.0
* @apiParam {String} username OC login Username.
* @apiParam {String} password OC login Password .
* @apiGroup User Account
Expand Down Expand Up @@ -146,7 +146,7 @@ public ResponseEntity<HashMap> getAccountByUserName(@RequestBody HashMap<String,
* @api {get} /pages/accounts/study/:studyOid/crc/:crcUserName Retrieve a user account - crc
* @apiName getAccount1
* @apiPermission Module participate - enabled & admin
* @apiVersion 1.0.0
* @apiVersion 3.8.0
* @apiParam {String} studyOid Study Oid.
* @apiParam {String} crcUserName CRC Username .
* @apiGroup User Account
Expand Down Expand Up @@ -217,7 +217,7 @@ public Boolean isCRCHasAccessToStudySubject(String studyOid, String crcUserName,
* @api {get} /pages/accounts/study/:studyOid/accesscode/:accessCode Retrieve a user account - participant
* @apiName getAccount2
* @apiPermission Module participate - enabled & admin
* @apiVersion 1.0.0
* @apiVersion 3.8.0
* @apiParam {String} studyOid Study Oid.
* @apiParam {String} accessCode Participant Access code .
* @apiGroup User Account
Expand Down Expand Up @@ -276,7 +276,7 @@ public ResponseEntity<UserDTO> getAccount2(@PathVariable("studyOid") String stud
* @api {get} /pages/accounts/study/:studyOid/studysubject/:studySubjectId Retrieve a user account - participant
* @apiName getAccount3
* @apiPermission Module participate - enabled & admin
* @apiVersion 1.0.0
* @apiVersion 3.8.0
* @apiParam {String} studyOid Study Oid.
* @apiParam {String} studySubjectId Study Subject Id .
* @apiGroup User Account
Expand Down Expand Up @@ -339,7 +339,7 @@ public ResponseEntity<UserDTO> getAccount3(@PathVariable("studyOid") String stud
* @api {post} /pages/accounts/ Create a user account - participant
* @apiName createParticipantUserAccount
* @apiPermission Module participate - enabled & admin
* @apiVersion 1.0.0
* @apiVersion 3.8.0
* @apiParam {String} studyOid Study Oid.
* @apiParam {String} studySubjectId Study Subject Id .
* @apiParam {String} fName First Name
Expand Down Expand Up @@ -379,7 +379,7 @@ public ResponseEntity<UserDTO> getAccount3(@PathVariable("studyOid") String stud
* @api {post} /pages/accounts/ Update a user account - participant
* @apiName updateParticipantUserAccount
* @apiPermission Module participate - enabled & admin
* @apiVersion 1.0.0
* @apiVersion 3.8.0
* @apiParam {String} studyOid Study Oid.
* @apiParam {String} studySubjectId Study Subject Id .
* @apiParam {String} fName First Name
Expand Down Expand Up @@ -498,7 +498,7 @@ public ResponseEntity<UserDTO> createOrUpdateAccount(@RequestBody HashMap<String
* @api {post} /pages/accounts/timezone Update subject time zone
* @apiName updateTimezone
* @apiPermission admin
* @apiVersion 1.0.0
* @apiVersion 3.8.0
* @apiParam {String} studyOid Study Oid.
* @apiParam {String} studySubjectId Study Subject Oid .
* @apiParam {String} timeZone Time Zone .
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public class AnonymousFormController {
* @api {post} /pages/api/v1/anonymousform/form Retrieve anonymous form URL
* @apiName getEnketoForm
* @apiPermission Module participate - enabled
* @apiVersion 1.0.0
* @apiVersion 3.8.0
* @apiParam {String} studyOid Study Oid
* @apiParam {String} submissionUri Submission Url
* @apiGroup Form
Expand Down
Loading

0 comments on commit 65428e2

Please sign in to comment.