Skip to content

Instantly share code, notes, and snippets.

@waltermoreira
Last active August 29, 2015 14:15
Show Gist options
  • Save waltermoreira/62e02945e77ec43b8d31 to your computer and use it in GitHub Desktop.
Save waltermoreira/62e02945e77ec43b8d31 to your computer and use it in GitHub Desktop.
Parameter specification proposal

Proposal for parameter specification

A subset of Swagger 2.0 specification for query parameters.

---
parameters:
- description: AGI locus identifier
name: locus
required: true
type: string
pattern: AT[1-5MC]G[0-9]{5,5}
- description: Type of coexpression calculation
name: relationship_type
required: false
default: mutual_rank
type: string
enum:
- mutual_rank
- correlation_coefficient
- description: Filter by days
name: filter_by_days
required: true
type: array
collectionFormat: multi
items:
type: string
format: date
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment