forked from qwc-services/qwc-document-service
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathqwc-document-service.json
107 lines (107 loc) · 3.07 KB
/
qwc-document-service.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
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://raw.githubusercontent.com/qwc-services/qwc-document-service/master/schemas/qwc-document-service.json",
"title": "QWC Document Service",
"type": "object",
"properties": {
"$schema": {
"title": "JSON Schema",
"description": "Reference to JSON schema of this config",
"type": "string",
"format": "uri",
"default": "https://raw.githubusercontent.com/qwc-services/qwc-document-service/master/schemas/qwc-document-service.json"
},
"service": {
"title": "Service name",
"type": "string",
"const": "document"
},
"config": {
"title": "Config options",
"type": "object",
"properties": {
"basic_auth_login_url": {
"description": "Login verification URL for requests with basic auth. Example: http://qwc-auth-service:9090/verify_login",
"type": "array",
"items": {
"type": "string"
}
},
"report_dir": {
"description": "Directory which contains reports.",
"type": "string",
"default": "/reports"
},
"max_memory": {
"description": "Maximum Java heap size for compiling like 1024M or 2G.",
"type": "string",
"default": "1024M"
},
"virtualizer": {
"title": "JRSwapFileVirtualizer",
"description": "If configuration is set, a JRSwapFileVirtualizer is used for report generation.",
"type": "object",
"properties": {
"swapfile_blocksize": {
"description": "The size of the blocks allocated by the swap file.",
"type": "integer",
"default": 4096
},
"swapfile_mingrowcount": {
"description": "The minimum number of blocks by which the swap file grows when full.",
"type": "integer",
"default": 100
},
"virtualizer_maxsize": {
"description": "The maximum size (in JRVirtualizable objects) of the paged in cache.",
"type": "integer",
"default": 5
}
}
}
},
"required": [
]
},
"resources": {
"title": "Resources",
"type": "object",
"properties": {
"document_templates": {
"type": "array",
"items": {
"type": "object",
"properties": {
"template": {
"type": "string"
},
"datasource": {
"type": "string"
},
"table": {
"type": "string"
},
"primary_key": {
"type": "string"
},
"parameter_name": {
"type": "string"
}
},
"required": [
"template"
]
}
}
},
"required": [
"document_templates"
]
}
},
"required": [
"service",
"config",
"resources"
]
}