Skip to content

Commit 517e2b5

Browse files
Update WebAPI methods. Added support for latest Zend Server 2021.0
1 parent 9e6995c commit 517e2b5

File tree

3 files changed

+43
-18
lines changed

3 files changed

+43
-18
lines changed

config/api/version-1.06.config.php

+24
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,30 @@
44
'console' => array (
55
'router' => array (
66
'routes' => array (
7+
// Job Queue
8+
'jobqueueAddJob' => array (
9+
'options' => array (
10+
'route' => 'jobqueueAddJob --url= [--vars=] [--options=]',
11+
'defaults' => array (
12+
'controller' => 'webapi-api-controller',
13+
'action' => 'jobqueueAddJob',
14+
'apiMethod' => 'post'
15+
),
16+
'arrays' => array(
17+
'vars',
18+
'options'
19+
),
20+
'group' => 'jobqueue',
21+
'info' => array(
22+
'Create a new job.',
23+
array('--url', 'A URL for the job.'),
24+
array('--vars','Variables for the rule, passed to the ZendJobQueue API.'),
25+
array('--options','Rule options, passed to the ZendJobQueue API.'),
26+
)
27+
)
28+
),
29+
30+
// VHosts
731
'vhostGetStatus' => array (
832
'options' => array (
933
'route' => 'vhostGetStatus [--vhosts=] [--limit=] [--offset=] [--order=] [--direction=] [--filters=]',

config/api/version-1.10.config.php

+16-16
Original file line numberDiff line numberDiff line change
@@ -97,21 +97,6 @@
9797
)
9898
)
9999
),
100-
'jobqueueSuspendQueue' => array(
101-
'options' => array(
102-
'route' => 'jobqueueSuspendQueue --id=',
103-
'defaults' => array(
104-
'controller' => 'webapi-api-controller',
105-
'action' => 'jobqueueSuspendQueue',
106-
'apiMethod' => 'post'
107-
),
108-
'group' => 'jobqueue',
109-
'info' => array(
110-
'Reactivate queue. "Unpause” queue\'s jobs.',
111-
array('--id', 'The ID of the queue.'),
112-
)
113-
)
114-
),
115100
'jobqueueImportQueues' => array(
116101
'options' => array(
117102
'route' => 'jobqueueImportQueues --delete_current= --file=',
@@ -160,7 +145,22 @@
160145
)
161146
)
162147
),
163-
148+
'jobqueueActivateQueue' => array(
149+
'options' => array(
150+
'route' => 'jobqueueActivateQueue [--id=]',
151+
'defaults' => array(
152+
'controller' => 'webapi-api-controller',
153+
'action' => 'jobqueueActivateQueue',
154+
'apiMethod' => 'post'
155+
),
156+
'group' => 'jobqueue',
157+
'info' => array(
158+
'Reactivates a queue. Un-pauses queue jobs.',
159+
array('--id', 'The ID of the queue.'),
160+
)
161+
)
162+
),
163+
164164
// IDE integration
165165
'debuggerSettings' => array(
166166
'options' => array(

src/ZendServerWebApi/Model/ZendServer.php

+3-2
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,9 @@ class ZendServer
4848
'9.0' => '1.12',
4949
'9.1' => '1.14',
5050
'2018.0' => '1.15',
51-
'2019.0' => '1.16',
52-
);
51+
'2019.0' => '1.16',
52+
'2021.0' => '1.17',
53+
);
5354

5455
/**
5556
* Api Version / zs version converter

0 commit comments

Comments
 (0)