1 | <?php |
||
23 | class PluginNode extends AbstractNode |
||
24 | { |
||
25 | /** |
||
26 | * add plugin |
||
27 | * |
||
28 | * @param string $nameOrId |
||
29 | * @param \Unikorp\KongAdminApi\Document\PluginDocument $document |
||
30 | * |
||
31 | * @return \Psr\Http\Message\ResponseInterface |
||
32 | */ |
||
33 | 2 | public function addPlugin(string $nameOrId, Document $document): ResponseInterface |
|
37 | |||
38 | /** |
||
39 | * retrieve plugin |
||
40 | * |
||
41 | * @param string $id |
||
42 | * |
||
43 | * @return \Psr\Http\Message\ResponseInterface |
||
44 | */ |
||
45 | 1 | public function retrievePlugin(string $id): ResponseInterface |
|
49 | |||
50 | /** |
||
51 | * list all plugins |
||
52 | * |
||
53 | * @param \Unikorp\KongAdminApi\Document\PluginDocument $document |
||
54 | * |
||
55 | * @return \Psr\Http\Message\ResponseInterface |
||
56 | */ |
||
57 | 1 | public function listAllPlugins(Document $document = null): ResponseInterface |
|
61 | |||
62 | /** |
||
63 | * list plugins per api |
||
64 | * |
||
65 | * @param string $apiNameOrId |
||
66 | * |
||
67 | * @return \Psr\Http\Message\ResponseInterface |
||
68 | */ |
||
69 | 2 | public function listPluginsPerApi(string $apiNameOrId): ResponseInterface |
|
73 | |||
74 | /** |
||
75 | * update plugin |
||
76 | * |
||
77 | * @param string $apiNameOrId |
||
78 | * @param string $id |
||
79 | * @param \Unikorp\KongAdminApi\Document\PluginDocument $document |
||
80 | * |
||
81 | * @return \Psr\Http\Message\ResponseInterface |
||
82 | */ |
||
83 | 1 | public function updatePlugin(string $apiNameOrId, string $id, Document $document): ResponseInterface |
|
87 | |||
88 | /** |
||
89 | * update or add plugin |
||
90 | * |
||
91 | * @param string $apiNameOrId |
||
92 | * @param \Unikorp\KongAdminApi\Document\PluginDocument $document |
||
93 | * |
||
94 | * @return \Psr\Http\Message\ResponseInterface |
||
95 | */ |
||
96 | 2 | public function updateOrAddPlugin(string $apiNameOrId, Document $document): ResponseInterface |
|
100 | |||
101 | /** |
||
102 | * delete plugin |
||
103 | * |
||
104 | * @param string $apiNameOrId |
||
105 | * @param string $id |
||
106 | * |
||
107 | * @return \Psr\Http\Message\ResponseInterface |
||
108 | */ |
||
109 | 2 | public function deletePlugin(string $apiNameOrId, string $id): ResponseInterface |
|
113 | |||
114 | /** |
||
115 | * retrieve enabled plugin |
||
116 | * |
||
117 | * @return \Psr\Http\Message\ResponseInterface |
||
118 | */ |
||
119 | 2 | public function retrieveEnabledPlugin(): ResponseInterface |
|
123 | |||
124 | /** |
||
125 | * retrieve plugin schema |
||
126 | * |
||
127 | * @param string $pluginName |
||
128 | * |
||
129 | * @return \Psr\Http\Message\ResponseInterface |
||
130 | */ |
||
131 | 2 | public function retrievePluginSchema(string $pluginName): ResponseInterface |
|
135 | } |
||
136 |