-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathapi-1-0.yml
189 lines (174 loc) · 5.46 KB
/
api-1-0.yml
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
openapi: "3.0.0"
info:
version: "1.0"
title: Insight Object Graph API
description: Provides a REST API to simplify Mindville Insight object access.
servers:
- url: /rest/insight-object-graph/1.0
components:
securitySchemes:
basicAuth:
type: http
scheme: basic
security:
- basicAuth: []
paths:
/objects/{object-type-name}:
get:
summary: Returns all Insight objects of the given object type, including all attributes.
description: Children of the object type are considered as well.
parameters:
- in: path
name: object-type-name
required: true
schema:
type: string
- in: query
name: schemaId
description: Optionally restrict results to specific Insight Object Schema
required: false
schema:
type: integer
- in: query
name: attributes
description: Optionally restrict results to specific attributes (case-sensitive)
required: false
schema:
type: array
items:
type: string
- in: query
name: resolve_attributes
description: Optionally restrict results to specific attributes (case-sensitive) and resolve relation ID
required: false
schema:
type: array
items:
type: string
- in: query
name: resolve_relations
description: Optionally resolve ALL attribute relation IDs to names of connected objects
schema:
type: boolean
- in: query
name: iql_string
description: 'Optionally pass additional iql query to be applied.
if your query consists of multiple statements, wrap them in parenthesis as it will be
concatenated with another query'
required: false
schema:
type: string
responses:
'200':
description: JSON representing list of Insight Objects
content:
application/json:
example:
[{
"id": 1,
"attributes":
[{
"name": "Key",
"values": ["IT-1"]
},
{
"name": "Name",
"values": ["SomeName"]
},
{
"name": "AttributeXY",
"values": ["SomeAttributeValue"]
}]
}]
'404':
description: No objects found
/graph/{insight_object_id}:
get:
summary: Returns the object graph with the given Insight object as root.
parameters:
- in: path
name: insight_object_id
required: true
schema:
type: integer
- in: query
name: blacklist_relations
description: Set of relation names (on any object) to exclude
required: false
schema:
type: array
items:
type: string
- in: query
name: whitelist_relations
description: Set of relation names (on any object) to include (exclusively)
required: false
schema:
type: array
items:
type: string
responses:
'200':
description: JSON representing the object graph
content:
application/json:
example:
[{
"id": 39328,
"typeId": 32,
"schemaId": 82,
"attributes":
[{
"id": 634223,
"typeId": 1535,
"name": "someAttribute",
"values": ["value 1", "value 2"]
}],
"relations":
[{
"id": 23423,
"typeId": 1536,
"name": "someRelation",
"values": [832492, 23729]
}],
"inverseRelations":
[{
"name": "someInverseRelation",
"objects": [2342]
}]
}]
'404':
description: Insight Object not found
/issues/{insight-object-field-name}:
get:
summary: Returns all Jira Issues with an object relation in the given {insight-object-field-name}.
parameters:
- in: path
name: insight-object-field-name
required: true
schema:
type: string
responses:
'200':
description: JSON representing list of Jira Issues
content:
application/json:
example:
[{
"id": 39328,
"fields":
[{
"name": "Key",
"values": ["TEST-1"]
},
{
"name": "Summary",
"values": ["New Issue to Site"]
},
{
"name": "AttributeXY",
"values": ["ValueXY"]
}]
}]
'404':
description: No issues found