Skip to content

Commit

Permalink
Transition to API version 0.0.4-dev (aces#6944)
Browse files Browse the repository at this point in the history
Initiate development on version 0.0.4-dev of the API and remove support for 0.0.2

    Resolves aces#6941
  • Loading branch information
spell00 authored and AlexandraLivadas committed Jun 29, 2021
1 parent d90dfb1 commit 5cd6f70
Show file tree
Hide file tree
Showing 40 changed files with 511 additions and 84 deletions.
506 changes: 452 additions & 54 deletions modules/api/docs/LorisRESTAPI.md

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# LORIS API - v0.0.3
# LORIS API - v0.0.4-dev
## 1.0 Overview

This document specifies the Loris REST API.
Expand All @@ -8,7 +8,7 @@ or no data. The Loris API uses standard HTTP error codes and the body of any res
either be empty or contain only a JSON object for any request.

For brevity, the `$LorisRoot/api/$APIVERSION` is omitted from the definitions in this
document. This document specifies $APIVERSION v0.0.3 and it
document. This document specifies $APIVERSION v0.0.4-dev and it
MUST be included before the request in all requests.

HTTP GET requests NEVER modify data. PUT, POST or PATCH requests MUST be used to modify
Expand Down
2 changes: 1 addition & 1 deletion modules/api/php/endpoints/candidate/candidate.class.inc
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ class Candidate extends Endpoint implements \LORIS\Middleware\ETagCalculator
protected function supportedVersions() : array
{
return [
'v0.0.2',
'v0.0.3',
'v0.0.4-dev',
];
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,10 @@ class Dicom extends Endpoint implements \LORIS\Middleware\ETagCalculator
*/
protected function supportedVersions() : array
{
return ['v0.0.3'];
return [
'v0.0.3',
'v0.0.4-dev',
];
}

/**
Expand Down
5 changes: 4 additions & 1 deletion modules/api/php/endpoints/candidate/visit/dicoms.class.inc
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,10 @@ class Dicoms extends Endpoint implements \LORIS\Middleware\ETagCalculator
*/
protected function supportedVersions() : array
{
return ['v0.0.3'];
return [
'v0.0.3',
'v0.0.4-dev',
];
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ class BidsFile extends Endpoint
{
return [
'v0.0.3',
'v0.0.4-dev',
];
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ class Archive extends Endpoint implements \LORIS\Middleware\ETagCalculator
{
return [
'v0.0.3',
'v0.0.4-dev',
];
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ class Channels extends Endpoint implements \LORIS\Middleware\ETagCalculator
{
return [
'v0.0.3',
'v0.0.4-dev',
];
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ class Electrodes extends Endpoint implements \LORIS\Middleware\ETagCalculator
{
return [
'v0.0.3',
'v0.0.4-dev',
];
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ class Events extends Endpoint implements \LORIS\Middleware\ETagCalculator
{
return [
'v0.0.3',
'v0.0.4-dev',
];
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ class Channels extends Endpoint implements \LORIS\Middleware\ETagCalculator
{
return [
'v0.0.3',
'v0.0.4-dev',
];
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ class Electrodes extends Endpoint implements \LORIS\Middleware\ETagCalculator
{
return [
'v0.0.3',
'v0.0.4-dev',
];
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ class Events extends Endpoint implements \LORIS\Middleware\ETagCalculator
{
return [
'v0.0.3',
'v0.0.4-dev',
];
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ class Metadata extends Endpoint implements \LORIS\Middleware\ETagCalculator
{
return [
'v0.0.3',
'v0.0.4-dev',
];
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ class Recording extends Endpoint implements \LORIS\Middleware\ETagCalculator
{
return [
'v0.0.3',
'v0.0.4-dev',
];
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ class Format extends Endpoint
protected function supportedVersions() : array
{
return [
'v0.0.2',
'v0.0.3',
'v0.0.4-dev',
];
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ class Brainbrowser extends Endpoint implements \LORIS\Middleware\ETagCalculator
protected function supportedVersions() : array
{
return [
'v0.0.2',
'v0.0.3',
'v0.0.4-dev',
];
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ class Raw extends Endpoint implements \LORIS\Middleware\ETagCalculator
protected function supportedVersions() : array
{
return [
'v0.0.2',
'v0.0.3',
'v0.0.4-dev',
];
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ class Thumbnail extends Endpoint implements \LORIS\Middleware\ETagCalculator
protected function supportedVersions() : array
{
return [
'v0.0.2',
'v0.0.3',
'v0.0.4-dev',
];
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ class Headers extends Endpoint implements \LORIS\Middleware\ETagCalculator
protected function supportedVersions() : array
{
return [
'v0.0.2',
'v0.0.3',
'v0.0.4-dev',
];
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ class Image extends Endpoint implements \LORIS\Middleware\ETagCalculator
protected function supportedVersions() : array
{
return [
'v0.0.2',
'v0.0.3',
'v0.0.4-dev',
];
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ class Qc extends Endpoint implements \LORIS\Middleware\ETagCalculator
protected function supportedVersions() : array
{
return [
'v0.0.2',
'v0.0.3',
'v0.0.4-dev',
];
}

Expand Down
2 changes: 1 addition & 1 deletion modules/api/php/endpoints/candidate/visit/images.class.inc
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ class Images extends Endpoint implements \LORIS\Middleware\ETagCalculator
protected function supportedVersions() : array
{
return [
'v0.0.2',
'v0.0.3',
'v0.0.4-dev',
];
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ class Flags extends Endpoint implements \LORIS\Middleware\ETagCalculator
protected function supportedVersions() : array
{
return [
'v0.0.2',
'v0.0.3',
'v0.0.4-dev',
];
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ class Instrument extends Endpoint implements \LORIS\Middleware\ETagCalculator
protected function supportedVersions() : array
{
return [
'v0.0.2',
'v0.0.3',
'v0.0.4-dev',
];
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ class Instruments extends Endpoint implements \LORIS\Middleware\ETagCalculator
protected function supportedVersions() : array
{
return [
'v0.0.2',
'v0.0.3',
'v0.0.4-dev',
];
}

Expand Down
2 changes: 1 addition & 1 deletion modules/api/php/endpoints/candidate/visit/qc.class.inc
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ class Qc extends Endpoint implements \LORIS\Middleware\ETagCalculator
protected function supportedVersions() : array
{
return [
'v0.0.2',
'v0.0.3',
'v0.0.4-dev',
];
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ class Recordings extends Endpoint implements \LORIS\Middleware\ETagCalculator
{
return [
'v0.0.3',
'v0.0.4-dev',
];
}

Expand Down
6 changes: 4 additions & 2 deletions modules/api/php/endpoints/candidate/visit/visit.class.inc
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,10 @@ class Visit extends Endpoint implements \LORIS\Middleware\ETagCalculator
*/
protected function supportedVersions() : array
{
// Removed 0.0.2 since session requires a project.
return ['v0.0.3'];
return [
'v0.0.3',
'v0.0.4-dev',
];
}

/**
Expand Down
2 changes: 1 addition & 1 deletion modules/api/php/endpoints/candidates.class.inc
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ class Candidates extends Endpoint implements \LORIS\Middleware\ETagCalculator
protected function supportedVersions() : array
{
return [
"v0.0.2",
"v0.0.3",
"v0.0.4-dev",
];
}

Expand Down
2 changes: 1 addition & 1 deletion modules/api/php/endpoints/login.class.inc
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ class Login extends Endpoint
protected function supportedVersions() : array
{
return [
'v0.0.2',
'v0.0.3',
'v0.0.4-dev',
];
}

Expand Down
2 changes: 1 addition & 1 deletion modules/api/php/endpoints/project/candidates.class.inc
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ class Candidates extends Endpoint implements \LORIS\Middleware\ETagCalculator
protected function supportedVersions() : array
{
return [
'v0.0.2',
'v0.0.3',
'v0.0.4-dev',
];
}

Expand Down
5 changes: 4 additions & 1 deletion modules/api/php/endpoints/project/images.class.inc
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,10 @@ class Images extends Endpoint implements \LORIS\Middleware\ETagCalculator
*/
protected function supportedVersions() : array
{
return ["v0.0.3"];
return [
"v0.0.3",
"v0.0.4-dev",
];
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ class Instrument extends Endpoint implements \LORIS\Middleware\ETagCalculator
protected function supportedVersions() : array
{
return [
'v0.0.2',
'v0.0.3',
'v0.0.4-dev',
];
}

Expand Down
2 changes: 1 addition & 1 deletion modules/api/php/endpoints/project/instruments.class.inc
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ class Instruments extends Endpoint implements \LORIS\Middleware\ETagCalculator
protected function supportedVersions() : array
{
return [
'v0.0.2',
'v0.0.3',
'v0.0.4-dev',
];
}

Expand Down
2 changes: 1 addition & 1 deletion modules/api/php/endpoints/project/project.class.inc
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ class Project extends Endpoint implements \LORIS\Middleware\ETagCalculator
protected function supportedVersions() : array
{
return [
'v0.0.2',
'v0.0.3',
'v0.0.4-dev',
];
}

Expand Down
5 changes: 4 additions & 1 deletion modules/api/php/endpoints/project/recordings.class.inc
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,10 @@ class Recordings extends Endpoint implements \LORIS\Middleware\ETagCalculator
*/
protected function supportedVersions() : array
{
return ["v0.0.3"];
return [
"v0.0.3",
"v0.0.4-dev"
];
}

/**
Expand Down
2 changes: 1 addition & 1 deletion modules/api/php/endpoints/project/visits.class.inc
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ class Visits extends Endpoint implements \LORIS\Middleware\ETagCalculator
protected function supportedVersions() : array
{
return [
'v0.0.2',
'v0.0.3',
'v0.0.4-dev',
];
}

Expand Down
2 changes: 1 addition & 1 deletion modules/api/php/endpoints/projects.class.inc
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ class Projects extends Endpoint implements \LORIS\Middleware\ETagCalculator
protected function supportedVersions() : array
{
return [
'v0.0.2',
'v0.0.3',
'v0.0.4-dev',
];
}

Expand Down
Loading

0 comments on commit 5cd6f70

Please sign in to comment.