-
Notifications
You must be signed in to change notification settings - Fork 6
/
reference_genomes.clj
36 lines (29 loc) · 1.67 KB
/
reference_genomes.clj
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
(ns common-swagger-api.schema.apps.admin.reference-genomes
(:use [common-swagger-api.schema :only [->optional-param describe]]
[common-swagger-api.schema.apps.reference-genomes :only [ReferenceGenome]]
[schema.core :only [defschema optional-key]]))
(def ReferenceGenomeAddSummary "Add a Reference Genome")
(def ReferenceGenomeAddDocs
"This endpoint adds a Reference Genome to the Discovery Environment.")
(def ReferenceGenomeDeleteSummary "Delete a Reference Genome")
(def ReferenceGenomeDeleteDocs
"A Reference Genome can be marked as deleted in the DE without being completely removed from the database using this service.
**Note**: an attempt to delete a Reference Genome that is already marked as deleted is treated as a no-op rather than an error condition.
If the Reference Genome doesn't exist in the database at all, however, then that is treated as an error condition.")
(def ReferenceGenomeUpdateSummary "Update a Reference Genome")
(def ReferenceGenomeUpdateDocs
"This endpoint modifies the `name`, `path`, and `deleted` fields of a Reference Genome in the Discovery Environment.")
(defschema ReferenceGenomeDeletionParams
{(optional-key :permanent)
(describe Boolean "If true, completely remove the reference genome from the database.")})
(defschema ReferenceGenomeRequest
(-> ReferenceGenome
(->optional-param :id)
(->optional-param :created_by)
(->optional-param :last_modified_by)))
(defschema ReferenceGenomeAddRequest
(-> ReferenceGenomeRequest
(describe "The Reference Genome to add.")))
(defschema ReferenceGenomeUpdateRequest
(-> ReferenceGenomeRequest
(describe "The Reference Genome fields to update.")))