-
Notifications
You must be signed in to change notification settings - Fork 249
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use HTTP verbs for config api instead of separate urls
``` // Get all the configs since empty property passed $ curl -X GET --unix-socket ~/.crc/crc-http.sock http:/c/api/config // Get cpus property $ curl -X GET --unix-socket ~/.crc/crc-http.sock http:/c/api/config?cpus {"Success":true,"Error":"","Configs":{"cpus":5}} // Delete cpu property $ curl -X DELETE -d '{"properties":["cpus"]}' --unix-socket ~/.crc/crc-http.sock http:/c/api/config {"Success":true,"Error":"","Properties":["cpus"]} $ curl -X GET --unix-socket ~/.crc/crc-http.sock http:/c/api/config?cpus {"Success":true,"Error":"","Configs":{"cpus":4}} // Update cpu propery $ curl -X POST -d '{"properties":{"cpus":10}}' --unix-socket ~/.crc/crc-http.sock http:/c/api/config {"Success":true,"Error":"","Properties":["cpus"]} $ curl -X GET --unix-socket ~/.crc/crc-http.sock http:/c/api/config?cpus {"Success":true,"Error":"","Configs":{"cpus":10}} ```
- Loading branch information
1 parent
bf06a2a
commit 3c9be4a
Showing
5 changed files
with
117 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters