forked from folio-org/okapi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathModuleDescriptorTimer-template.json
77 lines (76 loc) · 1.59 KB
/
ModuleDescriptorTimer-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
{
"id": "test-timer-1.0.0",
"name": "Okapi timer module",
"provides": [
{
"id": "test-timer",
"version": "2.2",
"handlers": [
{
"methods": [ "GET", "POST" ],
"pathPattern": "/testb/timer",
"permissionsRequired": []
}
]
},
{
"id": "_tenant",
"version": "1.0",
"interfaceType": "system",
"handlers": [
{
"methods": ["POST"],
"pathPattern": "/_/tenant",
"permissionsRequired": []
},
{
"methods": ["DELETE"],
"pathPattern": "/_/tenant",
"permissionsRequired": []
}
]
},
{
"id": "_timer",
"version": "1.0",
"interfaceType": "system",
"handlers": [
{
"methods": [ "POST" ],
"pathPattern": "/testb/timer/20",
"unit": "second",
"delay": "20"
},
{
"methods": [ "POST" ],
"pathPattern": "/testb/timer/1",
"schedule": {
"cron":"*/1 * * * *"
}
},
{
"methods": [ "POST" ],
"pathPattern": "/testb/timer/3",
"schedule": {
"cron":"*/3 * * * *"
}
}
]
},
{
"id": "recurse",
"version": "1.0",
"handlers": [
{
"methods": [ "GET" ],
"pathPattern": "/recurse",
"permissionsRequired": []
}
]
}
],
"requires": [],
"launchDescriptor": {
"exec": "java -Dport=%p -jar ${basedir}/target/okapi-test-module-fat.jar"
}
}