|
| 1 | +openapi: '3.0' |
| 2 | +info: |
| 3 | + version: 3.0.0.2 |
| 4 | + title: MyGene.info API |
| 5 | + description: >- |
| 6 | + Documentation of the MyGene.info Gene Query web services. Learn more about |
| 7 | + [MyGene.info](http://mygene.info/) |
| 8 | + termsOfService: 'http://example.com/terms/' |
| 9 | + contact: |
| 10 | + name: Chunlei Wu |
| 11 | + x-role: responsible developer |
| 12 | + |
| 13 | + x-id: 'http://orcid.org/0000-0002-2629-6124' |
| 14 | + x-accessRestriction: none |
| 15 | + x-maturity: production |
| 16 | + x-implementationLanguage: python |
| 17 | +externalDocs: |
| 18 | + description: Find more info here |
| 19 | + url: 'https://example.com' |
| 20 | +x-externalResources: |
| 21 | + - x-url: 'http://example.org/api/docs' |
| 22 | + x-type: api documentation |
| 23 | + - x-url: 'https://doi.org/10.1093/nar/gks1114' |
| 24 | + x-type: publication |
| 25 | + x-description: 'BioGPS and MyGene.info: organizing online, gene-centric information' |
| 26 | + - x-url: 'http://twitter.com/mygeneinfo' |
| 27 | + x-type: social media |
| 28 | +servers: |
| 29 | + - url: 'http://mygene.info' |
| 30 | + description: Development server |
| 31 | + x-___location: 'California, USA' |
| 32 | +tags: |
| 33 | + - x-id: 'http://purl.bioontology.org/ontology/MESH/D005796' |
| 34 | + name: Genes |
| 35 | +components: |
| 36 | + schemas: |
| 37 | + Category: |
| 38 | + type: object |
| 39 | + properties: |
| 40 | + id: |
| 41 | + type: integer |
| 42 | + format: int64 |
| 43 | + name: |
| 44 | + type: string |
| 45 | + Tag: |
| 46 | + type: object |
| 47 | + properties: |
| 48 | + id: |
| 49 | + type: integer |
| 50 | + format: int64 |
| 51 | + name: |
| 52 | + type: string |
| 53 | + parameters: |
| 54 | + skipParam: |
| 55 | + name: skip |
| 56 | + in: query |
| 57 | + description: number of items to skip |
| 58 | + required: true |
| 59 | + schema: |
| 60 | + type: integer |
| 61 | + format: int32 |
| 62 | + limitParam: |
| 63 | + name: limit |
| 64 | + in: query |
| 65 | + description: max records to return |
| 66 | + required: true |
| 67 | + schema: |
| 68 | + type: integer |
| 69 | + format: int32 |
| 70 | + responses: |
| 71 | + NotFound: |
| 72 | + description: Entity not found. |
| 73 | + IllegalInput: |
| 74 | + description: Illegal input for operation. |
| 75 | + securitySchemes: |
| 76 | + api_key: |
| 77 | + type: apiKey |
| 78 | + name: api_key |
| 79 | + in: header |
| 80 | + petstore_auth: |
| 81 | + type: oauth2 |
| 82 | + flows: |
| 83 | + implicit: |
| 84 | + authorizationUrl: 'http://example.org/api/oauth/dialog' |
| 85 | + scopes: |
| 86 | + 'write:pets': modify genes in your account |
| 87 | + 'read:pets': read your genes |
| 88 | +paths: |
| 89 | + /query: |
| 90 | + get: |
| 91 | + tags: |
| 92 | + - query |
| 93 | + description: Makes gene query and returns matching gene list. |
| 94 | + summary: Makes gene query and returns matching gene list. |
| 95 | + x-accessRestriction: fee |
| 96 | + parameters: |
| 97 | + - name: q |
| 98 | + in: query |
| 99 | + description: >- |
| 100 | + Query string. Examples "CDK2", "NM_052827", "204639_at". The |
| 101 | + detailed query syntax can be found at |
| 102 | + http://docs.mygene.info/en/latest/doc/query_service.html |
| 103 | + required: true |
| 104 | + schema: |
| 105 | + type: string |
| 106 | + x-parameterType: InputParameter |
| 107 | + x-valueType: |
| 108 | + - 'http://identifiers.org/hgnc.symbol' |
| 109 | + - 'http://identifiers.org/refseq' |
| 110 | + - 'http://identifiers.org/unigene' |
| 111 | + - 'http://identifiers.org/uniprot' |
| 112 | + - 'http://identifiers.org/pdb' |
| 113 | + operationId: add operation id here |
| 114 | + responses: |
| 115 | + '200': |
| 116 | + description: Successful response. |
| 117 | + content: |
| 118 | + application/json: |
| 119 | + x-responseProfile: 'http://www.w3.org/ns/anno.jsonld' |
| 120 | + x-responseValueType: |
| 121 | + - path: a.id |
| 122 | + valueType: 'http://example.org/a.id' |
| 123 | + - path: a.b.c.id |
| 124 | + valueType: 'http://example.org/c.id' |
| 125 | + '/gene/{geneid}': |
| 126 | + get: |
| 127 | + tags: |
| 128 | + - gene |
| 129 | + parameters: |
| 130 | + - name: geneid |
| 131 | + in: path |
| 132 | + description: >- |
| 133 | + Entrez or Ensembl gene id, e.g., 1017, ENSG00000170248. A retired |
| 134 | + Entrez Gene id works too if it is replaced by a new one, e.g., |
| 135 | + 245794 |
| 136 | + required: true |
| 137 | + x-parameterType: InputParameter |
| 138 | + x-valueType: |
| 139 | + - 'http://identifiers.org/ncbigene' |
| 140 | + - 'http://identifiers.org/ensembl' |
| 141 | + x-defaultValue: add default |
| 142 | + x-exampleValue: '1017' |
| 143 | + operationId: getAnnotation |
| 144 | + summary: add summary |
| 145 | + responses: |
| 146 | + '200': |
| 147 | + description: Successful response |
| 148 | + content: |
| 149 | + application/json: |
| 150 | + x-responseSchema: |
| 151 | + properties: |
| 152 | + reporter: |
| 153 | + properties: |
| 154 | + HTA-2_0: |
| 155 | + type: string |
| 156 | + HG-U133_Plus_2: |
| 157 | + items: |
| 158 | + type: string |
| 159 | + type: array |
| 160 | + HuEx-1_0: |
| 161 | + type: integer |
| 162 | + HuGene-1_1: |
| 163 | + type: integer |
| 164 | + HuGene-2_1: |
| 165 | + type: integer |
| 166 | + HG-U95Av2: |
| 167 | + items: |
| 168 | + type: string |
| 169 | + type: array |
| 170 | + type: object |
| 171 | + x-responseValueType: |
| 172 | + - path: ec |
| 173 | + valueType: 'http://identifiers.org/ec-code/' |
| 174 | + - path: ensembl.gene |
| 175 | + valueType: 'http://identifiers.org/ensembl/' |
| 176 | + - path: ensembl.translation.protein |
| 177 | + valueType: 'http://identifiers.org/ensembl/' |
| 178 | + - path: ensembl.translation.rna |
| 179 | + valueType: 'http://identifiers.org/ensembl/' |
| 180 | + - path: entrezgene |
| 181 | + valueType: 'http://identifiers.org/ncbigene/' |
| 182 | + - path: generif.pubmed |
| 183 | + valueType: 'http://identifiers.org/pubmed/' |
0 commit comments