-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add REST API versioning support (second try) (#3408)
* Revert "Add debugging methods to visualize wireframe of buckets (#3402)" This reverts commit 8238820. * Revert "fixed bug that selects a just removed layout (#3379)" This reverts commit 8b16ef3. * Revert "Added button to revoke admin rights in frontend (#3378)" This reverts commit 2fc489c. * Revert "Revert "Add REST API versioning support (#3385)" (#3404)" This reverts commit 49819b2. * move /api routes prefix to webknossosApi.routes * reorganize routing to handle all combinations of local datastore/tracingstore etc * update migrations
- Loading branch information
Showing
9 changed files
with
201 additions
and
163 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
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package controllers | ||
|
||
import com.mohiva.play.silhouette.api.Silhouette | ||
import javax.inject.Inject | ||
import oxalis.security.WkEnv | ||
import utils.WkConf | ||
|
||
class LegacyApiController @Inject()(conf: WkConf, | ||
sil: Silhouette[WkEnv]) extends Controller { | ||
|
||
|
||
} |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
GET /assets/*file controllers.Assets.at(path="/public", file) | ||
|
||
-> /api/ webknossos.versioned.Routes |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
GET /assets/*file controllers.Assets.at(path="/public", file) | ||
|
||
-> /api/ webknossos.versioned.Routes | ||
-> /tracings/ com.scalableminds.webknossos.tracingstore.Routes |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
GET /assets/*file controllers.Assets.at(path="/public", file) | ||
|
||
-> /api/ webknossos.versioned.Routes | ||
-> /data/ com.scalableminds.webknossos.datastore.Routes |
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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
-> / webknossos.Routes | ||
GET /assets/*file controllers.Assets.at(path="/public", file) | ||
|
||
-> /api/ webknossos.versioned.Routes | ||
-> /data/ com.scalableminds.webknossos.datastore.Routes | ||
-> /tracings/ com.scalableminds.webknossos.tracingstore.Routes |
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# API versioning is handled here. Higher-Priority routes first | ||
|
||
GET /assets/*file controllers.Assets.at(path="/public", file) | ||
|
||
# example: assume, the features route has changed, introducing v2. The older v1 needs to be provided in the legacyApiController | ||
#-> /v2/ webknossos.Routes | ||
|
||
|
||
# GET /v1/features controllers.LegacyApiController.v1features | ||
-> /v1/ webknossos.latest.Routes | ||
|
||
|
||
-> / webknossos.latest.Routes |