Skip to content

Commit 3705a05

Browse files
authored
Merge pull request #32 from biigle/patch-1
Fix API docs
2 parents e907d02 + 32ec3a7 commit 3705a05

File tree

1 file changed

+29
-4
lines changed

1 file changed

+29
-4
lines changed

src/Http/Controllers/Api/UserDiskController.php

Lines changed: 29 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ class UserDiskController extends Controller
2222
* @apiGroup StorageDisks
2323
* @apiName StoreStorageDisk
2424
* @apiPermission editor
25-
* @apiDescription Depending on the storage disk type, different additional arguments are required.
25+
* @apiDescription Depending on the storage disk type, different additional arguments are required. Not all storage disk types listed here may be enabled for your BIIGLE instance.
2626
*
27-
* @apiParam (Required arguments) {String} type The storage disk type. One of `s3` or `aos`.
27+
* @apiParam (Required arguments) {String} type The storage disk type. One of `s3`, `webdav`, 'elements' or 'aruna'.
2828
* @apiParam (Required arguments) {String} name The name of the storage disk.
2929
*
3030
* @apiParam (S3 required arguments) {String} key The S3 access key.
@@ -33,7 +33,19 @@ class UserDiskController extends Controller
3333
* @apiParam (S3 required arguments) {String} region The S3 region. Example: `us-east-1`.
3434
* @apiParam (S3 required arguments) {String} endpoint The S3 endpoint URL. Example `https://s3.example.com`.
3535
*
36-
* @apiParam (S3 optional arguments) {Boolean} use_path_style_endpoint Set to `true` to use the S3 "path style endpoint" (e.g. `https://s3.example.com/BUCKETNAME`) instead of the subdomain-style (e.g. `https://BUCKETNAME.s3.example.com`). Default: `false`.
36+
* @apiParam (WebDAV required arguments) {String} baseUri The base URI of the WebDAV server.
37+
*
38+
* @apiParam (WebDAV optional arguments) {String} userName User name for authentication. Required if a password is given.
39+
* @apiParam (WebDAV optional arguments) {String} password Password for authentication. Required if a user name is given.
40+
* @apiParam (WebDAV optional arguments) {String} pathPrefix Path prefix to use for all requests. If your baseUri contains a path, it is automatically used as pathPrefix.
41+
*
42+
* @apiParam (Elements required arguments) {String} baseUri The base URI of the Elements server.
43+
* @apiParam (Elements required arguments) {String} token The Elements API token.
44+
*
45+
* @apiParam (Aruna required arguments) {String} endpoint The Aruna data proxy endpoint URL.
46+
* @apiParam (Aruna required arguments) {String} bucket The Aruna project name.
47+
* @apiParam (Aruna required arguments) {String} key The Aruna S3 access key.
48+
* @apiParam (Aruna required arguments) {String} secret The Aruna S3 secret key.
3749
*
3850
* @param StoreUserDisk $request
3951
* @throws ValidationException if the disk configuration is invalid
@@ -86,7 +98,20 @@ public function store(StoreUserDisk $request)
8698
* @apiParam (S3 attributes that can be updated) {String} bucket The S3 bucket name.
8799
* @apiParam (S3 attributes that can be updated) {String} region The S3 region. Example: `us-east-1`.
88100
* @apiParam (S3 attributes that can be updated) {String} endpoint The S3 endpoint URL. Example `https://s3.example.com`.
89-
* @apiParam (S3 attributes that can be updated) {Boolean} use_path_style_endpoint Set to `true` to use the S3 "path style endpoint" (e.g. `https://s3.example.com/BUCKETNAME`) instead of the subdomain-style (e.g. `https://BUCKETNAME.s3.example.com`).
101+
*
102+
*
103+
* @apiParam (WebDAV attributes that can be updated) {String} baseUri The base URI of the WebDAV server.
104+
* @apiParam (WebDAV attributes that can be updated) {String} userName User name for authentication. Required if a password is given.
105+
* @apiParam (WebDAV attributes that can be updated) {String} password Password for authentication. Required if a user name is given.
106+
* @apiParam (WebDAV attributes that can be updated) {String} pathPrefix Path prefix to use for all requests. If your baseUri contains a path, it is automatically used as pathPrefix.
107+
*
108+
* @apiParam (Elements attributes that can be updated) {String} baseUri The base URI of the Elements server.
109+
* @apiParam (Elements attributes that can be updated) {String} token The Elements API token.
110+
*
111+
* @apiParam (Aruna attributes that can be updated) {String} endpoint The Aruna data proxy endpoint URL.
112+
* @apiParam (Aruna attributes that can be updated) {String} bucket The Aruna project name.
113+
* @apiParam (Aruna attributes that can be updated) {String} key The Aruna S3 access key.
114+
* @apiParam (Aruna attributes that can be updated) {String} secret The Aruna S3 secret key.
90115
*
91116
* @param UpdateUserDisk $request
92117
* @throws ValidationException if the disk configuration is invalid

0 commit comments

Comments
 (0)