-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathacquisition-gateway-document-library-api.yaml
More file actions
322 lines (322 loc) · 8.53 KB
/
Copy pathacquisition-gateway-document-library-api.yaml
File metadata and controls
322 lines (322 loc) · 8.53 KB
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
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
swagger: "2.0"
info:
title: AG Document Library API
version: 1.0.0
basePath: /acquisition/cap/v1/
paths:
"/search/documents/{keyword}":
get:
tags:
- search-documents
summary: Performs search on Document Library documents
parameters:
- in: path
name: keyword
description: Keywords to use to search Document library
type: string
required: true
responses:
"200":
description: List of search results
schema:
type: array
items:
$ref: "#/definitions/DocLibSearchResultItem"
"/tag-groups/{group}":
get:
tags:
- tag-groups
summary: Retrieve all Tag Groups
parameters:
- in: path
name: group
description: Name of Tag Group
required: true
type: string
responses:
"200":
description: List of Tag Groups
schema:
properties:
data:
description: Get a list of entities.
type: array
items:
$ref: "#/definitions/TagGroups"
type: object
/documents:
get:
tags:
- documents
summary: List of documents
responses:
"200":
description: List of documents
schema:
properties:
data:
type: array
items:
$ref: "#/definitions/Documents"
type: object
"/documents/{id}":
get:
tags:
- documents
summary: List of documents
parameters:
- in: path
name: id
description: document id
required: true
type: integer
responses:
"200":
description: List of documents
schema:
properties:
data:
type: array
items:
$ref: "#/definitions/Documents"
type: object
definitions:
Agencies:
properties:
id:
description: tid of agency (taxonomy term)
type: integer
label:
description: name of agency (taxonomy term)
type: string
File:
properties:
fid:
description: id of file
type: integer
filename:
description: name of file
type: string
filemime:
description: file mime
type: string
url:
description: file url to download
type: string
fileextension:
description: file extension
type: string
DocLibSearchResultItem:
properties:
id:
description: ID of document
type: integer
self:
description: Url of the document API
type: string
title:
description: Title of the document
type: string
node_type:
description: Node type (document or arrt-e)
type: string
author:
description: uid of the author of the content
type: integer
description:
description: Description of the document
type: string
excerpt:
description: Excerpt from document containing keywords
type: string
agency:
description: Agency Name
items:
$ref: "#/definitions/Agencies"
type:
description: tags from the document type group selected for the item
type: array
items:
$ref: "#/definitions/Tag"
acquisition_stage:
description: tags from the acquisition stage group selected for the item
type: array
items:
$ref: "#/definitions/Tag"
contract_type:
description: tags from the contract type group selected for the item
type: array
items:
$ref: "#/definitions/Tag"
format:
description: Document format
type: string
public_private:
description: Boolean indicating if document is public
type: boolean
file:
description: List of file objects attached to document
type: array
items:
$ref: "#/definitions/File"
date_uploaded:
description: UNIX timestamp of when document was uploaded/created
type: string
tags:
description: List of tags associated with document
type: array
items:
$ref: "#/definitions/Tag"
relevance:
description: Relevance score from search
type: integer
views:
description: Number of times the document was viewed
type: integer
downloads:
description: Number of downloads
type: integer
public:
description: Value if document is checked for public access
type: boolean
comment_count:
description: Total number of comments posted for the document
type: integer
project_content:
description: True if document is associated with a project
type: boolean
updated:
description: unix timestamp of date changed
type: integer
sections:
description: arrt-e sections
type: array
items:
$ref: "#/components/schemas/Section"
Section:
properties:
id:
description: Unique ID
type: integer
title:
description: section name
type: string
performance_standard:
description: performance standard
type: boolean
Tag:
properties:
id:
description: Unique ID
type: integer
label:
description: tag label
type: string
description:
description: Tag Description
type: string
icon:
description: String containing the name of the icon associated with the tag. For example 'fa-user'
type: string
TagGroups:
properties:
id:
description: ID of TagGroups
type: integer
label:
description: Title of Group
type: string
self:
description: URL for the api
type: string
url:
description: url of the app
type: string
slug:
description: slug value example acquisition-gateway.
type: string
description:
description: Description of the TagGroups.
type: string
icon:
description: icon of the TagGroups -Example fa-tag.
type: string
tags:
description: tags information
type: object
style:
description: Tag Groups style?.
type: integer
hidden:
description: Is Tag Groups hidden?.
type: string
weight:
description: Tag Groups weight.
type: integer
Documents:
properties:
id:
description: ID of document
type: integer
self:
description: Url of the document API
type: string
title:
description: Title of the document
type: string
description:
description: Description of the document
type: string
agency:
description: Agency name
items:
$ref: "#/definitions/Agencies"
format:
description: Document format
type: string
type:
description: tags from the document type group selected for the item
type: array
items:
$ref: "#/definitions/Tag"
acquisition_stage:
description: tags from the acquisition stage group selected for the item
type: array
items:
$ref: "#/definitions/Tag"
contract_type:
description: tags from the contract type group selected for the item
type: array
items:
$ref: "#/definitions/Tag"
name:
description: Document Username
type: string
uid:
description: The user id for the Document Owner
type: integer
public_private:
description: Boolean indicating if document is public
type: boolean
file:
description: List of file objects attached to document
type: array
items:
$ref: "#/definitions/File"
date_uploaded:
description: UNIX timestamp of when document was uploaded/created
type: string
tags:
description: List of tags associated with document
type: array
items:
$ref: "#/definitions/Tag"
views:
description: Number of times the document was viewed
type: integer
downloads:
description: Number of downloads
type: integer
updated:
description: unix timestamp of date changed
type: integer