Skip to content

Commit d717630

Browse files
authored
Update smartAPI_spec_v3
example updated
1 parent c8fb8f4 commit d717630

File tree

1 file changed

+99
-98
lines changed

1 file changed

+99
-98
lines changed

versions/smartAPI_spec_v3

Lines changed: 99 additions & 98 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"swagger": "2.0",
3+
"openapi": "string",
34
"info": {
45
"version": "3.0.0.2",
56
"title": "MyGene.info API",
@@ -15,23 +16,23 @@
1516
"x-maturity": "production",
1617
"x-implementationLanguage": "python"
1718
},
18-
"externalDocs": [
19-
{
20-
"description": "Find more info here",
21-
"url": "https://example.com",
22-
"x-type": "website"
23-
},
19+
"externalDocs": {
20+
"description": "Find more info here",
21+
"url": "https://example.com"
22+
},
23+
"x-externalResource": [
2424
{
25-
"x-type": "api documentation",
26-
"url": "http://docs.mygene.info/en/latest/"
25+
"x-url": "http://example.org/api/docs",
26+
"x-type": "api documentation"
2727
},
2828
{
29+
"x-url": "https://doi.org/10.1093/nar/gks1114",
2930
"x-type": "publication",
30-
"url": "https://doi.org/10.1093/nar/gks1114"
31+
"x-description": "BioGPS and MyGene.info: organizing online, gene-centric information"
3132
},
3233
{
33-
"x-type": "social media",
34-
"url": "http://twitter.com/mygeneinfo"
34+
"x-url": "http://twitter.com/mygeneinfo",
35+
"x-type": "social media"
3536
}
3637
],
3738
"server": {
@@ -1057,178 +1058,178 @@
10571058
"type": "object"
10581059
},
10591060
"description": "Successful response",
1060-
"responseDataType": [
1061+
"responseValueType": [
10611062
{
1062-
"elementPath": "ec",
1063-
"datatype": "http://identifiers.org/ec-code/"
1063+
"path": "ec",
1064+
"valueType": "http://identifiers.org/ec-code/"
10641065
},
10651066
{
1066-
"elementPath": "ensembl.gene",
1067-
"datatype": "http://identifiers.org/ensembl/"
1067+
"path": "ensembl.gene",
1068+
"valueType": "http://identifiers.org/ensembl/"
10681069
},
10691070
{
1070-
"elementPath": "ensembl.translation.protein",
1071-
"datatype": "http://identifiers.org/ensembl/"
1071+
"path": "ensembl.translation.protein",
1072+
"valueType": "http://identifiers.org/ensembl/"
10721073
},
10731074
{
1074-
"elementPath": "ensembl.translation.rna",
1075-
"datatype": "http://identifiers.org/ensembl/"
1075+
"path": "ensembl.translation.rna",
1076+
"valueType": "http://identifiers.org/ensembl/"
10761077
},
10771078
{
1078-
"elementPath": "entrezgene",
1079-
"datatype": "http://identifiers.org/ncbigene/"
1079+
"path": "entrezgene",
1080+
"valueType": "http://identifiers.org/ncbigene/"
10801081
},
10811082
{
1082-
"elementPath": "generif.pubmed",
1083-
"datatype": "http://identifiers.org/pubmed/"
1083+
"path": "generif.pubmed",
1084+
"valueType": "http://identifiers.org/pubmed/"
10841085
},
10851086
{
1086-
"elementPath": "go.bp.evidence",
1087-
"datatype": "http://identifiers.org/eco/"
1087+
"path": "go.bp.evidence",
1088+
"valueType": "http://identifiers.org/eco/"
10881089
},
10891090
{
1090-
"elementPath": "go.bp.id",
1091-
"datatype": "http://identifiers.org/go/"
1091+
"path": "go.bp.id",
1092+
"valueType": "http://identifiers.org/go/"
10921093
},
10931094
{
1094-
"elementPath": "go.bp.pubmed",
1095-
"datatype": "http://identifiers.org/pubmed/"
1095+
"path": "go.bp.pubmed",
1096+
"valueType": "http://identifiers.org/pubmed/"
10961097
},
10971098
{
1098-
"elementPath": "go.bp.term",
1099-
"datatype": "http://identifiers.org/go/"
1099+
"path": "go.bp.term",
1100+
"valueType": "http://identifiers.org/go/"
11001101
},
11011102
{
1102-
"elementPath": "go.cc.evidence",
1103-
"datatype": "http://identifiers.org/eco/"
1103+
"path": "go.cc.evidence",
1104+
"valueType": "http://identifiers.org/eco/"
11041105
},
11051106
{
1106-
"elementPath": "go.cc.id",
1107-
"datatype": "http://identifiers.org/go/"
1107+
"path": "go.cc.id",
1108+
"valueType": "http://identifiers.org/go/"
11081109
},
11091110
{
1110-
"elementPath": "go.cc.pubmed",
1111-
"datatype": "http://identifiers.org/pubmed/"
1111+
"path": "go.cc.pubmed",
1112+
"valueType": "http://identifiers.org/pubmed/"
11121113
},
11131114
{
1114-
"elementPath": "go.cc.term",
1115-
"datatype": "http://identifiers.org/go/"
1115+
"path": "go.cc.term",
1116+
"valueType": "http://identifiers.org/go/"
11161117
},
11171118
{
1118-
"elementPath": "go.mf.evidence",
1119-
"datatype": "http://identifiers.org/eco/"
1119+
"path": "go.mf.evidence",
1120+
"valueType": "http://identifiers.org/eco/"
11201121
},
11211122
{
1122-
"elementPath": "go.mf.id",
1123-
"datatype": "http://identifiers.org/go/"
1123+
"path": "go.mf.id",
1124+
"valueType": "http://identifiers.org/go/"
11241125
},
11251126
{
1126-
"elementPath": "go.mf.pubmed",
1127-
"datatype": "http://identifiers.org/pubmed/"
1127+
"path": "go.mf.pubmed",
1128+
"valueType": "http://identifiers.org/pubmed/"
11281129
},
11291130
{
1130-
"elementPath": "go.mf.qualifier",
1131-
"datatype": "http://identifiers.org/go/"
1131+
"path": "go.mf.qualifier",
1132+
"valueType": "http://identifiers.org/go/"
11321133
},
11331134
{
1134-
"elementPath": "go.mf.term",
1135-
"datatype": "http://identifiers.org/go/"
1135+
"path": "go.mf.term",
1136+
"valueType": "http://identifiers.org/go/"
11361137
},
11371138
{
1138-
"elementPath": "hgnc",
1139-
"datatype": "http://identifiers.org/hgnc/"
1139+
"path": "hgnc",
1140+
"valueType": "http://identifiers.org/hgnc/"
11401141
},
11411142
{
1142-
"elementPath": "homologene.id",
1143-
"datatype": "http://identifiers.org/homologene/"
1143+
"path": "homologene.id",
1144+
"valueType": "http://identifiers.org/homologene/"
11441145
},
11451146
{
1146-
"elementPath": "interpro.desc",
1147-
"datatype": "http://identifiers.org/interpro/"
1147+
"path": "interpro.desc",
1148+
"valueType": "http://identifiers.org/interpro/"
11481149
},
11491150
{
1150-
"elementPath": "interpro.id",
1151-
"datatype": "http://identifiers.org/interpro/"
1151+
"path": "interpro.id",
1152+
"valueType": "http://identifiers.org/interpro/"
11521153
},
11531154
{
1154-
"elementPath": "interpro.short_desc",
1155-
"datatype": "http://identifiers.org/interpro/"
1155+
"path": "interpro.short_desc",
1156+
"valueType": "http://identifiers.org/interpro/"
11561157
},
11571158
{
1158-
"elementPath": "mim",
1159-
"datatype": "http://identifiers.org/omim/"
1159+
"path": "mim",
1160+
"valueType": "http://identifiers.org/omim/"
11601161
},
11611162
{
1162-
"elementPath": "pathway.biocarta.id",
1163-
"datatype": "http://identifiers.org/biocarta.pathway/"
1163+
"path": "pathway.biocarta.id",
1164+
"valueType": "http://identifiers.org/biocarta.pathway/"
11641165
},
11651166
{
1166-
"elementPath": "pathway.biocarta.name",
1167-
"datatype": "http://identifiers.org/biocarta.pathway/"
1167+
"path": "pathway.biocarta.name",
1168+
"valueType": "http://identifiers.org/biocarta.pathway/"
11681169
},
11691170
{
1170-
"elementPath": "pathway.kegg.id",
1171-
"datatype": "http://identifiers.org/kegg.pathway/"
1171+
"path": "pathway.kegg.id",
1172+
"valueType": "http://identifiers.org/kegg.pathway/"
11721173
},
11731174
{
1174-
"elementPath": "pathway.kegg.name",
1175-
"datatype": "http://identifiers.org/kegg.pathway/"
1175+
"path": "pathway.kegg.name",
1176+
"valueType": "http://identifiers.org/kegg.pathway/"
11761177
},
11771178
{
1178-
"elementPath": "pathway.pid.id",
1179-
"datatype": "http://identifiers.org/pid.pathway/"
1179+
"path": "pathway.pid.id",
1180+
"valueType": "http://identifiers.org/pid.pathway/"
11801181
},
11811182
{
1182-
"elementPath": "pathway.pid.name",
1183-
"datatype": "http://identifiers.org/pid.pathway/"
1183+
"path": "pathway.pid.name",
1184+
"valueType": "http://identifiers.org/pid.pathway/"
11841185
},
11851186
{
1186-
"elementPath": "pathway.reactome.id",
1187-
"datatype": "http://identifiers.org/reactome/"
1187+
"path": "pathway.reactome.id",
1188+
"valueType": "http://identifiers.org/reactome/"
11881189
},
11891190
{
1190-
"elementPath": "pathway.reactome.name",
1191-
"datatype": "http://identifiers.org/reactome/"
1191+
"path": "pathway.reactome.name",
1192+
"valueType": "http://identifiers.org/reactome/"
11921193
},
11931194
{
1194-
"elementPath": "pathway.wikipathways.id",
1195-
"datatype": "http://identifiers.org/wikipathways/"
1195+
"path": "pathway.wikipathways.id",
1196+
"valueType": "http://identifiers.org/wikipathways/"
11961197
},
11971198
{
1198-
"elementPath": "pathway.wikipathways.name",
1199-
"datatype": "http://identifiers.org/wikipathways/"
1199+
"path": "pathway.wikipathways.name",
1200+
"valueType": "http://identifiers.org/wikipathways/"
12001201
},
12011202
{
1202-
"elementPath": "pfam",
1203-
"datatype": "http://identifiers.org/pfam/"
1203+
"path": "pfam",
1204+
"valueType": "http://identifiers.org/pfam/"
12041205
},
12051206
{
1206-
"elementPath": "pharmgkb",
1207-
"datatype": "http://identifiers.org/pharmgkb.pathways/"
1207+
"path": "pharmgkb",
1208+
"valueType": "http://identifiers.org/pharmgkb.pathways/"
12081209
},
12091210
{
1210-
"elementPath": "prosite",
1211-
"datatype": "http://identifiers.org/prosite/"
1211+
"path": "prosite",
1212+
"valueType": "http://identifiers.org/prosite/"
12121213
},
12131214
{
1214-
"elementPath": "refseq.translation.protein",
1215-
"datatype": "http://identifiers.org/refseq/"
1215+
"path": "refseq.translation.protein",
1216+
"valueType": "http://identifiers.org/refseq/"
12161217
},
12171218
{
1218-
"elementPath": "refseq.translation.rna",
1219-
"datatype": "http://identifiers.org/refseq/"
1219+
"path": "refseq.translation.rna",
1220+
"valueType": "http://identifiers.org/refseq/"
12201221
},
12211222
{
1222-
"elementPath": "taxid",
1223-
"datatype": "http://identifiers.org/taxonomy/"
1223+
"path": "taxid",
1224+
"valueType": "http://identifiers.org/taxonomy/"
12241225
},
12251226
{
1226-
"elementPath": "uniprot.swiss-prot",
1227-
"datatype": "http://identifiers.org/uniprot/"
1227+
"path": "uniprot.swiss-prot",
1228+
"valueType": "http://identifiers.org/uniprot/"
12281229
},
12291230
{
1230-
"elementPath": "wikipedia.url_stub",
1231-
"datatype": "http://identifiers.org/wikipedia.en/"
1231+
"path": "wikipedia.url_stub",
1232+
"valueType": "http://identifiers.org/wikipedia.en/"
12321233
}
12331234
]
12341235
}

0 commit comments

Comments
 (0)