Closed dpakach closed 3 years ago
Add new endpoint '/apps/testing/api/v1/occ/bulkset' to run a list of occ commands at once
'/apps/testing/api/v1/occ/bulkset'
POST /ocs/v2.php/apps/testing/api/v1/occ/bulkset HTTP/1.1 [ { "command": "config:system:set --type=string --value=\"test\" testconfig" }, { "command": "config:system:set --type=json --value=\"test2\" testconfig2" } ]
Response:
<?xml version="1.0"?> <ocs> <meta> <status>ok</status> <statuscode>200</statuscode> <message/> </meta> <data> <element> <code>0</code> <stdOut>System config value testconfig set to string "test" </stdOut> <stdErr></stdErr> </element> <element> <code>0</code> <stdOut>System config value testconfig2 set to json "test2" </stdOut> <stdErr></stdErr> </element> </data> </ocs>
Kudos, SonarCloud Quality Gate passed!
0 Bugs 0 Vulnerabilities 0 Security Hotspots 0 Code Smells
No Coverage information No Duplication information
Description
Add new endpoint
'/apps/testing/api/v1/occ/bulkset'
to run a list of occ commands at onceResponse:
Checklist: