-
Notifications
You must be signed in to change notification settings - Fork 31
/
smartapi.yaml
82 lines (82 loc) · 2.03 KB
/
smartapi.yaml
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
openapi: 3.0.0
info:
version: '3.0'
title: OpenTarget API
description: The Opentarget API
termsOfService: http://www.opentarget.org
contact:
name: opentarget help desk
x-role: responsible developer
email: [email protected]
x-translator:
infores: "infores:open-target"
component: KP
team:
- Service Provider
biolink-version: "2.1.0"
servers:
- url: https://platform-api.opentargets.io/v3
description: Production server
x-maturity: production
tags:
- name: translator
- name: opentarget
paths:
"/platform/public/evidence/filter":
get:
summary: retrieve evidence
parameters:
- name: target
in: query
description: ensembl gene id
required: true
example: ENSG00000088832
schema:
type: string
- name: size
in: query
description: size of the output
example: 100
schema:
type: integer
- name: fields
in: query
description: the output field
example: drug
schema:
type: string
- name: datasource
in: query
description: the data source
example: chembl
schema:
type: string
responses:
'200':
description: A biosample object
x-bte-kgs-operations:
- "$ref": "#/components/x-bte-kgs-operations/gene_related_to_chemical"
components:
x-bte-kgs-operations:
gene_related_to_chemical:
- inputs:
- id: ENSEMBL
semantic: Gene
outputs:
- id: CHEMBL.COMPOUND
semantic: SmallMolecule
predicate: related_to
source: "infores:chembl"
parameters:
target: "{inputs[0]}"
datasource: chembl
size: 100
fields: drug
supportBatch: false
response_mapping:
"$ref": "#/components/x-bte-response-mapping/gene_related_to_chemical"
x-bte-response-mapping:
gene_related_to_chemical:
CHEMBL.COMPOUND: data.drug.id
moleculeType: data.drug.molecule_type
name: data.drug.molecule_name