forked from cyverse-de/terrain
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CORE-6: added Swagger docs to the
POST /secured/filetypes/type
endp…
…oint
- Loading branch information
Showing
5 changed files
with
57 additions
and
8 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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
Sets or clears a file type. The file type can be set by passing in the name of one of the supported file types, which | ||
can be obtained by calling the `GET /secured/filetypes/type-list` endpoint, for example: | ||
|
||
``` json | ||
{ | ||
"path": "/path/to/irods/file", | ||
"type": "csv" | ||
} | ||
``` | ||
|
||
The file type can be cleared by passing in the empty string as the file type: | ||
|
||
``` json | ||
{ | ||
"path": "/path/to/irods/file", | ||
"type": "" | ||
} | ||
``` |
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
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,9 @@ | ||
(ns terrain.routes.schemas.filetypes | ||
(:use [common-swagger-api.schema :only [describe NonBlankString]]) | ||
(:require [common-swagger-api.schema.filetypes :as filetype-schema])) | ||
|
||
(def FileType | ||
(assoc filetype-schema/FileType | ||
:path (describe NonBlankString "The iRODS path to the file"))) | ||
|
||
(def FileTypeReturn filetype-schema/FileTypeReturn) |