-
Notifications
You must be signed in to change notification settings - Fork 5
/
openapi.yaml
173 lines (172 loc) · 5.56 KB
/
openapi.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
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
openapi: 3.0.3
info:
title: Visier Document Search API
description: Visier API for searching for Visier documents
version: 22222222.99201.1256
license:
name: Apache License, Version 2.0
url: https://www.apache.org/licenses/LICENSE-2.0
x-api-status-urls: false
servers:
- url: https://{vanity-name}.api.visier.io
variables:
vanity-name:
default: vanity
tags:
- name: DocumentSearch
paths:
/v1alpha/search/simple/document-headers:
get:
tags:
- DocumentSearch
summary: Perform a simple search for Visier document headers
operationId: DocumentSearch_SimpleSearchDocumentHeaders
description: >-
Perform a simple search for Visier document headers, such as analysis
titles. Simple search doesn't support keywords, Boolean expressions, or
any other advanced search features.
Example: `GET /v1alpha/search/simple/document-headers?q=My+Query&limit=10` returns the first 10 document headers that best match the query string `My Query`.
<br>**Note:** <em>This API is in **alpha**. While in alpha, APIs may change in a breaking way without notice; functionality may be removed, and no deprecation notices will be issued.
If you are interested in using this API, please contact your Customer Success Manager (CSM).</em>
parameters:
- description: The search query string.
name: q
in: query
schema:
type: string
- description: The maximum number of results to return. Defaults to 100.
name: limit
in: query
schema:
type: integer
format: int32
- description: >-
The index to start retrieving results from, also known as offset.
Defaults to 0.
name: offset
in: query
schema:
type: integer
format: int32
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/SimpleDocumentHeaderSearchResponseDTO'
default:
description: Default error response
content:
application/json:
schema:
$ref: '#/components/schemas/Status'
components:
schemas:
DocumentSearchLinkDTO:
description: >-
Defines the attributes of a web request to reference documents in the
search results.
type: object
properties:
href:
description: The URL pointing to the specific document.
type: string
verb:
description: >-
The verb to use when formulating the web request. This is commonly
`GET`.
type: string
GoogleProtobufAny:
description: >-
Contains an arbitrary serialized message along with a @type that
describes the type of the serialized message.
type: object
properties:
'@type':
description: The type of the serialized message.
type: string
additionalProperties: true
SimpleDocumentHeaderSearchResponseDTO:
description: >-
The response body structure for Simple document header search
operations.
type: object
properties:
documentHeaders:
description: >-
The ordered collection of document header search results. The
results are sorted according to their relevance in a descending
order.
type: array
items:
$ref: '#/components/schemas/SimpleDocumentHeaderSearchResultDTO'
SimpleDocumentHeaderSearchResultDTO:
description: >-
Structure of a single document header search using the Simple search
operation.
type: object
properties:
description:
description: >-
The `Web Template Framework` representation of the search result
element. This commonly displayed alongside the result by search
portals.
type: string
displayName:
description: The display name of the element in the search result.
type: string
relevance:
description: >-
The relevance of the search result and a number between `0` and
`100`.
type: number
format: double
viewLink:
$ref: '#/components/schemas/DocumentSearchLinkDTO'
x-konfig-properties:
viewLink:
description: Use the `viewLink` to build a web request to view this document.
Status:
description: The response structure for errors.
type: object
properties:
errorCode:
description: Error classification.
type: string
message:
description: Error message describing the root cause of the error.
type: string
securitySchemes:
CookieAuth:
type: apiKey
name: VisierASIDToken
in: cookie
ApiKeyAuth:
type: apiKey
name: apikey
in: header
BearerAuth:
type: http
scheme: bearer
OAuth2Auth:
type: oauth2
flows:
authorizationCode:
authorizationUrl: /v1/auth/oauth2/authorize
tokenUrl: /v1/auth/oauth2/token
scopes:
read: Grants read access
write: Grants write access
password:
tokenUrl: /v1/auth/oauth2/token
scopes:
read: Grants read access
write: Grants write access
security:
- ApiKeyAuth: []
BearerAuth: []
- ApiKeyAuth: []
CookieAuth: []
- ApiKeyAuth: []
OAuth2Auth: []