forked from folio-org/mod-search
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathModuleDescriptor-template.json
377 lines (377 loc) · 13.1 KB
/
ModuleDescriptor-template.json
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
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
{
"id": "@artifactId@-@version@",
"name": "Search Module",
"provides": [
{
"id": "indices",
"version": "0.4",
"handlers": [
{
"methods": [ "POST" ],
"pathPattern": "/search/index/indices",
"permissionsRequired": [ "search.index.indices.item.post" ]
},
{
"methods": [ "POST" ],
"pathPattern": "/search/index/mappings",
"permissionsRequired": [ "search.index.mappings.item.post" ]
},
{
"methods": [ "POST" ],
"pathPattern": "/search/index/records",
"permissionsRequired": [ "search.index.records.collection.post" ],
"modulePermissions": [
"inventory-storage.inventory-view.instances.collection.get",
"inventory-storage.identifier-types.collection.get",
"inventory-storage.alternative-title-types.collection.get"
]
},
{
"methods": [ "POST" ],
"pathPattern": "/search/index/inventory/reindex",
"permissionsRequired": [ "search.index.inventory.reindex.post" ],
"modulePermissions": [
"inventory-storage.instance.reindex.post",
"authority-storage.authority.reindex.post"
]
}
]
},
{
"id": "search",
"version": "0.9",
"handlers": [
{
"methods": [ "GET" ],
"pathPattern": "/search/instances",
"permissionsRequired": [ "search.instances.collection.get" ]
},
{
"methods": [ "GET" ],
"pathPattern": "/search/authorities",
"permissionsRequired": [ "search.authorities.collection.get" ]
},
{
"methods": [ "GET" ],
"pathPattern": "/search/{recordType}/facets",
"permissionsRequired": [ "search.facets.collection.get" ]
},
{
"methods": [ "GET" ],
"pathPattern": "/search/instances/ids",
"permissionsRequired": [ "search.instances.ids.collection.get" ]
},
{
"methods": [ "GET" ],
"pathPattern": "/search/holdings/ids",
"permissionsRequired": [ "search.holdings.ids.collection.get" ]
}
]
},
{
"id": "resource-ids-streaming",
"version": "0.3",
"handlers": [
{
"methods": [ "GET" ],
"pathPattern": "/search/resources/jobs/{jobId}/ids",
"permissionsRequired": [ "search.resources.ids.collection.get" ]
},
{
"methods": [ "GET" ],
"pathPattern": "/search/resources/jobs/{jobId}",
"permissionsRequired": [ "search.resources.ids.jobs.get" ]
},
{
"methods": [ "POST" ],
"pathPattern": "/search/resources/jobs",
"permissionsRequired": [ "search.resources.ids.jobs.post" ]
}
]
},
{
"id": "browse",
"version": "0.6",
"handlers": [
{
"methods": [ "GET" ],
"pathPattern": "/browse/call-numbers/instances",
"permissionsRequired": [ "browse.call-numbers.instances.collection.get" ]
},
{
"methods": [ "GET" ],
"pathPattern": "/browse/subjects/instances",
"permissionsRequired": [ "browse.subjects.instances.collection.get" ]
},
{
"methods": [ "GET" ],
"pathPattern": "/browse/contributors/instances",
"permissionsRequired": [ "browse.contributors.instances.collection.get" ]
},
{
"methods": [ "GET" ],
"pathPattern": "/browse/authorities",
"permissionsRequired": [ "browse.authorities.collection.get" ]
}
]
},
{
"id": "search-config",
"version": "0.2",
"handlers": [
{
"methods": [ "POST" ],
"pathPattern": "/search/config/languages",
"permissionsRequired": [ "search.config.languages.item.post" ]
},
{
"methods": [ "GET" ],
"pathPattern": "/search/config/languages",
"permissionsRequired": [ "search.config.languages.collection.get" ]
},
{
"methods": [ "PUT" ],
"pathPattern": "/search/config/languages/{id}",
"permissionsRequired": [ "search.config.languages.item.put" ]
},
{
"methods": [ "DELETE" ],
"pathPattern": "/search/config/languages/{id}",
"permissionsRequired": [ "search.config.languages.item.delete" ]
},
{
"methods": [ "GET" ],
"pathPattern": "/search/config/features",
"permissionsRequired": [ "search.config.features.collection.get" ]
},
{
"methods": [ "POST" ],
"pathPattern": "/search/config/features",
"permissionsRequired": [ "search.config.features.item.post" ]
},
{
"methods": [ "PUT" ],
"pathPattern": "/search/config/features/{id}",
"permissionsRequired": [ "search.config.features.item.put" ]
},
{
"methods": [ "DELETE" ],
"pathPattern": "/search/config/features/{id}",
"permissionsRequired": [ "search.config.features.item.delete" ]
}
]
},
{
"id": "_tenant",
"version": "2.0",
"interfaceType": "system",
"handlers": [
{
"methods": [ "POST" ],
"pathPattern": "/_/tenant",
"modulePermissions": [
"users.collection.get",
"users.item.post",
"login.item.post",
"perms.users.get",
"perms.users.item.post",
"perms.users.assign.immutable",
"perms.users.assign.mutable",
"inventory-storage.instance.reindex.post",
"authority-storage.authority.reindex.post",
"inventory-storage.inventory-view.instances.collection.get",
"inventory-storage.identifier-types.collection.get",
"inventory-storage.alternative-title-types.collection.get"
]
},
{
"methods": [ "DELETE", "GET" ],
"pathPattern": "/_/tenant/{id}"
}
]
}
],
"requires": [
{
"id": "instance-storage",
"version": "7.5 8.0 9.0"
},
{
"id": "login",
"version": "7.0"
},
{
"id": "permissions",
"version": "5.3"
},
{
"id": "users",
"version": "15.3 16.0"
},
{
"id": "inventory-view",
"version": "1.0"
},
{
"id": "instance-reindex",
"version": "0.1"
}
],
"permissionSets": [
{
"permissionName": "search.index.indices.item.post",
"displayName": "Search - creates an index",
"description": "Creates an index"
},
{
"permissionName": "search.index.mappings.item.post",
"displayName": "Search - updates mappings for the index",
"description": "Updates mappings for the index"
},
{
"permissionName": "search.index.records.collection.post",
"displayName": "Search - saves resource to the search engine",
"description": "Saves resource to the search engine"
},
{
"permissionName": "search.instances.collection.get",
"displayName": "Search - searches instances by given query",
"description": "Searches instances by given query"
},
{
"permissionName": "search.authorities.collection.get",
"displayName": "Search - searches authorities by given query",
"description": "Searches authorities by given query"
},
{
"permissionName": "browse.call-numbers.instances.collection.get",
"displayName": "Browse - provides collections of browse items for instance by call number",
"description": "Browse instances by given query"
},
{
"permissionName": "browse.subjects.instances.collection.get",
"displayName": "Browse - provides collections of browse items for instance by subjects",
"description": "Browse instances by given query"
},
{
"permissionName": "browse.contributors.instances.collection.get",
"displayName": "Browse - provides collections of browse items for instance by contributors",
"description": "Browse instances by given query"
},
{
"permissionName": "browse.authorities.collection.get",
"displayName": "Browse - provides collections of browse items for authorities",
"description": "Browse authorities by given query"
},
{
"permissionName": "search.config.languages.item.post",
"displayName": "Search - adds a language support for multi-lang indexes",
"description": "Adds a language support for multi-lang indexes"
},
{
"permissionName": "search.config.languages.collection.get",
"displayName": "Search - returns list of all supported languages for multi-lang indexes",
"description": "Returns list of all supported languages for multi-lang indexes"
},
{
"permissionName": "search.config.languages.item.put",
"displayName": "Search - updates a supported language by id",
"description": "Updates a supported language by id"
},
{
"permissionName": "search.config.languages.item.delete",
"displayName": "Search - removes a supported language by id",
"description": "Removes a supported language by id"
},
{
"permissionName": "search.index.inventory.reindex.post",
"displayName": "Search - starts inventory reindex operation",
"description": "Starts inventory reindex operation"
},
{
"permissionName": "search.facets.collection.get",
"displayName": "Search - returns facets for a query for given filter options by record type",
"description": "Returns facets for a query for given filter options by record type",
"replaces": ["search.instances.facets.collection.get"]
},
{
"permissionName": "search.instances.ids.collection.get",
"displayName": "Search - returns list of resource ids for a cql query",
"description": "Returns list of resource ids for a cql query"
},
{
"permissionName": "search.holdings.ids.collection.get",
"displayName": "Search - returns a list of holding ids found for the CQL query by instances",
"description": "Returns list of resource ids for a cql query"
},
{
"permissionName": "search.resources.ids.collection.get",
"displayName": "Search - returns a list of authority ids found for the CQL query",
"description": "Returns list of resource ids for a cql query"
},
{
"permissionName": "search.resources.ids.jobs.get",
"displayName": "Job for streaming authority ids",
"description": "Returns a job for streaming authority ids by the the CQL query"
},
{
"permissionName": "search.resources.ids.jobs.post",
"displayName": "Creates a job for streaming authority ids",
"description": "Creates a job for streaming authority ids by the the CQL query"
},
{
"permissionName": "search.config.features.collection.get",
"displayName": "Search - returns list of tenant features configuration",
"description": "Returns list of all specified features"
},
{
"permissionName": "search.config.features.item.post",
"displayName": "Search - adds a feature configuration",
"description": "Adds feature configuration"
},
{
"permissionName": "search.config.features.item.put",
"displayName": "Search - updates a feature configuration",
"description": "Updates feature configuration"
},
{
"permissionName": "search.config.features.item.delete",
"displayName": "Search - removes feature configuration",
"description": "Removes feature configuration"
}
],
"launchDescriptor": {
"dockerImage": "@artifactId@:@version@",
"dockerPull": false,
"dockerArgs": {
"HostConfig": {
"Memory": 1073741824,
"PortBindings": { "8081/tcp": [ { "HostPort": "%p" } ] }
}
},
"env": [
{ "name": "ENV", "value": "folio" },
{ "name": "JAVA_OPTIONS", "value": "-XX:MaxRAMPercentage=85.0" },
{ "name": "KAFKA_HOST", "value": "kafka" },
{ "name": "KAFKA_PORT", "value": "9092" },
{ "name": "KAFKA_SECURITY_PROTOCOL", "value": "PLAINTEXT" },
{ "name": "KAFKA_SSL_KEYSTORE_LOCATION", "value": "" },
{ "name": "KAFKA_SSL_KEYSTORE_PASSWORD", "value": "" },
{ "name": "KAFKA_SSL_TRUSTSTORE_LOCATION", "value": "" },
{ "name": "KAFKA_SSL_TRUSTSTORE_PASSWORD", "value": "" },
{ "name": "ELASTICSEARCH_URL", "value": "http://elasticsearch:9200" },
{ "name": "ELASTICSEARCH_USERNAME", "value": "elastic" },
{ "name": "ELASTICSEARCH_PASSWORD", "value": "s3cret" },
{ "name": "DB_HOST", "value": "postgres" },
{ "name": "DB_PORT", "value": "5432" },
{ "name": "DB_USERNAME", "value": "folio_admin" },
{ "name": "DB_PASSWORD", "value": "folio_admin" },
{ "name": "DB_DATABASE", "value": "okapi_modules" },
{ "name": "DB_QUERYTIMEOUT", "value": "60000" },
{ "name": "DB_CHARSET", "value": "UTF-8" },
{ "name": "DB_MAXPOOLSIZE", "value": "5" },
{ "name": "INITIAL_LANGUAGES", "value": "eng" },
{ "name": "SYSTEM_USER_PASSWORD", "value": "Mod-search-1-0-0" }
]
}
}