best viewed in the swagger editor
Last active
July 20, 2018 08:47
-
-
Save yochannah/2e84dc6cf4d0462cf7748717fa39929c to your computer and use it in GitHub Desktop.
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
swagger: "2.0" | |
info: | |
description: "ISA-InterMine Data import wizard prototype spec" | |
version: "1.0.0" | |
title: "Swagger Petstore" | |
contact: | |
email: "info@intermine.org" | |
license: | |
name: "LGPL 2.1" | |
url: "https://github.com/intermine/intermine/blob/dev/LICENSE" | |
host: "wizard.intermine.org" | |
basePath: "/v1" | |
schemes: | |
- "https" | |
- "http" | |
paths: | |
/detectFileDetails: | |
post: | |
tags: | |
- "pet" | |
summary: "Return identified file type" | |
description: "" | |
operationId: "addPet" | |
consumes: | |
- "application/json" | |
- "application/xml" | |
- "multipart/form-data" | |
produces: | |
- "application/json" | |
- "application/xml" | |
parameters: | |
- in: "body" | |
name: "body" | |
description: "File or file snippet that needs to be identified." | |
required: true | |
schema: | |
$ref: "#/definitions/DataFile" | |
responses: | |
200: | |
description: "successfully detected file type" | |
schema: | |
$ref: "#/definitions/DataFileProperties" | |
definitions: | |
DataFile: | |
type: "object" | |
required: | |
- "name" | |
- "fileContents" | |
properties: | |
name: | |
type: "string" | |
example: "humanfile.gff" | |
fileContents: | |
type: "string" | |
xml: | |
name: "DataFile" | |
DataFileProperties: | |
type: "object" | |
required: | |
- "name" | |
- "fileFormat" | |
- "rowCount" | |
- "organism" | |
properties: | |
name: | |
type: "string" | |
example: "humanfile.gff" | |
fileFormat: | |
type: "string" | |
example: "gff" | |
rowCount: | |
type: "integer" | |
example: 22395 | |
filePreview: | |
type: "object" | |
properties: | |
headerRow: | |
type: "array" | |
items: | |
type: "string" | |
example: ["seqID", "source", "type", "start", "end", "score", "strand", "phase"] | |
rows: | |
type: "array" | |
items: | |
type: "array" | |
items: | |
type: "string" | |
example: ["NC_000001.11", "RefSeq", "region 1", "248956422", ".", "+", ".", "ID=id0;Dbxref=taxon:9606;Name=1;chromosome=1;gbkey=Src;genome=chromosome;mol_type=genomic DNA"] | |
columnsToMap: | |
type: "array" | |
items: | |
type: "object" | |
properties: | |
columnName: | |
type: "string" | |
example: "GeneID" | |
columnExample: | |
type: "string" | |
example: "100287102" | |
modelClassToMapTo: | |
type: "string" | |
example: "Gene" | |
modelPropertyToMapTo: | |
type: "array" | |
items: | |
type: "string" | |
example: ["Gene Primary Identifier","Symbol", | |
"Synonym"] | |
defaultMapping: | |
type: "string" | |
organism: | |
type: "object" | |
properties: | |
name: | |
type: "string" | |
example: "H. Sapiens" | |
genomeBuild: | |
type: "string" | |
example: "GRCh38.p7" | |
taxonID: | |
type: "integer" | |
example: "9606" | |
xml: | |
name: "DataFileProperties" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment