-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Ferdinand Thiessen <[email protected]>
- Loading branch information
Showing
1 changed file
with
25 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ | |
* | ||
* @author affan98 <[email protected]> | ||
* @author Christian Hartmann <[email protected]> | ||
* @author Ferdinand Thiessen <[email protected]> | ||
* @author John Molakvoæ (skjnldsv) <[email protected]> | ||
* @author Jonas Rittershofer <[email protected]> | ||
* | ||
|
@@ -73,7 +74,7 @@ | |
'verb' => 'OPTIONS', | ||
'requirements' => [ | ||
'path' => '.+', | ||
'apiVersion' => 'v2(\.[1-3])?' | ||
'apiVersion' => 'v2(\.[1-4])?' | ||
] | ||
], | ||
|
||
|
@@ -83,15 +84,15 @@ | |
'url' => '/api/{apiVersion}/forms', | ||
'verb' => 'GET', | ||
'requirements' => [ | ||
'apiVersion' => 'v2(\.[1-3])?' | ||
'apiVersion' => 'v2(\.[1-4])?' | ||
] | ||
], | ||
[ | ||
'name' => 'api#newForm', | ||
'url' => '/api/{apiVersion}/form', | ||
'verb' => 'POST', | ||
'requirements' => [ | ||
'apiVersion' => 'v2(\.[1-3])?' | ||
'apiVersion' => 'v2(\.[1-4])?' | ||
] | ||
], | ||
[ | ||
|
@@ -107,7 +108,7 @@ | |
'url' => '/api/{apiVersion}/form/clone/{id}', | ||
'verb' => 'POST', | ||
'requirements' => [ | ||
'apiVersion' => 'v2(\.[1-3])?' | ||
'apiVersion' => 'v2(\.[1-4])?' | ||
] | ||
], | ||
// TODO: Remove POST in next API release | ||
|
@@ -124,39 +125,39 @@ | |
'url' => '/api/{apiVersion}/form/update', | ||
'verb' => 'PATCH', | ||
'requirements' => [ | ||
'apiVersion' => 'v2\.[2-3]' | ||
'apiVersion' => 'v2\.[2-4]' | ||
] | ||
], | ||
[ | ||
'name' => 'api#transferOwner', | ||
'url' => '/api/{apiVersion}/form/transfer', | ||
'verb' => 'POST', | ||
'requirements' => [ | ||
'apiVersion' => 'v2\.[2-3]' | ||
'apiVersion' => 'v2\.[2-4]' | ||
] | ||
], | ||
[ | ||
'name' => 'api#deleteForm', | ||
'url' => '/api/{apiVersion}/form/{id}', | ||
'verb' => 'DELETE', | ||
'requirements' => [ | ||
'apiVersion' => 'v2(\.[1-3])?' | ||
'apiVersion' => 'v2(\.[1-4])?' | ||
] | ||
], | ||
[ | ||
'name' => 'api#getPartialForm', | ||
'url' => '/api/{apiVersion}/partial_form/{hash}', | ||
'verb' => 'GET', | ||
'requirements' => [ | ||
'apiVersion' => 'v2(\.[1-3])?' | ||
'apiVersion' => 'v2(\.[1-4])?' | ||
] | ||
], | ||
[ | ||
'name' => 'api#getSharedForms', | ||
'url' => '/api/{apiVersion}/shared_forms', | ||
'verb' => 'GET', | ||
'requirements' => [ | ||
'apiVersion' => 'v2(\.[1-3])?' | ||
'apiVersion' => 'v2(\.[1-4])?' | ||
] | ||
], | ||
|
||
|
@@ -166,7 +167,7 @@ | |
'url' => '/api/{apiVersion}/question', | ||
'verb' => 'POST', | ||
'requirements' => [ | ||
'apiVersion' => 'v2(\.[1-3])?' | ||
'apiVersion' => 'v2(\.[1-4])?' | ||
] | ||
], | ||
// TODO: Remove POST in next API release | ||
|
@@ -183,7 +184,7 @@ | |
'url' => '/api/{apiVersion}/question/update', | ||
'verb' => 'PATCH', | ||
'requirements' => [ | ||
'apiVersion' => 'v2\.[2-3]' | ||
'apiVersion' => 'v2\.[2-4]' | ||
] | ||
], | ||
// TODO: Remove POST in next API release | ||
|
@@ -200,23 +201,23 @@ | |
'url' => '/api/{apiVersion}/question/reorder', | ||
'verb' => 'PUT', | ||
'requirements' => [ | ||
'apiVersion' => 'v2\.[2-3]' | ||
'apiVersion' => 'v2\.[2-4]' | ||
] | ||
], | ||
[ | ||
'name' => 'api#deleteQuestion', | ||
'url' => '/api/{apiVersion}/question/{id}', | ||
'verb' => 'DELETE', | ||
'requirements' => [ | ||
'apiVersion' => 'v2(\.[1-3])?' | ||
'apiVersion' => 'v2(\.[1-4])?' | ||
] | ||
], | ||
[ | ||
'name' => 'api#cloneQuestion', | ||
'url' => '/api/{apiVersion}/question/clone/{id}', | ||
'verb' => 'POST', | ||
'requirements' => [ | ||
'apiVersion' => 'v2.3' | ||
'apiVersion' => 'v2\.[3-4]' | ||
] | ||
], | ||
|
||
|
@@ -226,7 +227,7 @@ | |
'url' => '/api/{apiVersion}/option', | ||
'verb' => 'POST', | ||
'requirements' => [ | ||
'apiVersion' => 'v2(\.[1-3])?' | ||
'apiVersion' => 'v2(\.[1-4])?' | ||
] | ||
], | ||
// TODO: Remove POST in next API release | ||
|
@@ -243,15 +244,15 @@ | |
'url' => '/api/{apiVersion}/option/update', | ||
'verb' => 'PATCH', | ||
'requirements' => [ | ||
'apiVersion' => 'v2\.[2-3]' | ||
'apiVersion' => 'v2\.[2-4]' | ||
] | ||
], | ||
[ | ||
'name' => 'api#deleteOption', | ||
'url' => '/api/{apiVersion}/option/{id}', | ||
'verb' => 'DELETE', | ||
'requirements' => [ | ||
'apiVersion' => 'v2(\.[1-3])?' | ||
'apiVersion' => 'v2(\.[1-4])?' | ||
] | ||
], | ||
|
||
|
@@ -261,15 +262,15 @@ | |
'url' => '/api/{apiVersion}/share', | ||
'verb' => 'POST', | ||
'requirements' => [ | ||
'apiVersion' => 'v2(\.[1-3])?' | ||
'apiVersion' => 'v2(\.[1-4])?' | ||
] | ||
], | ||
[ | ||
'name' => 'shareApi#deleteShare', | ||
'url' => '/api/{apiVersion}/share/{id}', | ||
'verb' => 'DELETE', | ||
'requirements' => [ | ||
'apiVersion' => 'v2(\.[1-3])?' | ||
'apiVersion' => 'v2(\.[1-4])?' | ||
] | ||
], | ||
// TODO: Remove POST in next API release | ||
|
@@ -286,7 +287,7 @@ | |
'url' => '/api/{apiVersion}/share/update', | ||
'verb' => 'PATCH', | ||
'requirements' => [ | ||
'apiVersion' => 'v2\.[2-3]' | ||
'apiVersion' => 'v2\.[2-4]' | ||
] | ||
], | ||
|
||
|
@@ -296,7 +297,7 @@ | |
'url' => '/api/{apiVersion}/submissions/{hash}', | ||
'verb' => 'GET', | ||
'requirements' => [ | ||
'apiVersion' => 'v2(\.[1-3])?' | ||
'apiVersion' => 'v2(\.[1-4])?' | ||
] | ||
], | ||
[ | ||
|
@@ -320,23 +321,23 @@ | |
'url' => '/api/{apiVersion}/submissions/{formId}', | ||
'verb' => 'DELETE', | ||
'requirements' => [ | ||
'apiVersion' => 'v2(\.[1-3])?' | ||
'apiVersion' => 'v2(\.[1-4])?' | ||
] | ||
], | ||
[ | ||
'name' => 'api#insertSubmission', | ||
'url' => '/api/{apiVersion}/submission/insert', | ||
'verb' => 'POST', | ||
'requirements' => [ | ||
'apiVersion' => 'v2(\.[1-3])?' | ||
'apiVersion' => 'v2(\.[1-4])?' | ||
] | ||
], | ||
[ | ||
'name' => 'api#deleteSubmission', | ||
'url' => '/api/{apiVersion}/submission/{id}', | ||
'verb' => 'DELETE', | ||
'requirements' => [ | ||
'apiVersion' => 'v2(\.[1-3])?' | ||
'apiVersion' => 'v2(\.[1-4])?' | ||
] | ||
], | ||
// Submissions linking with file in cloud | ||
|