abc
Review Request #11523 — Created March 14, 2021 and discarded — Latest diff uploaded
[WIP]Add a new command called "api". Add option commands called "--get", "--post", "--delete". "api --get" option can substitute original "api-get" option now. [WIP]Add api.py file, forget to stage this file in the last commit. [WIP]Add "--put" option but still need to find out how to send post/put data. Add "--header" option, still need to find a way to combine our customized header with original data. Refactor methods in api class. Now support use --header option to add customized header in a request. [WIP]Allow basic HTTP GET, DELETE. Allow POST and PUT key value pairs. Still need further testings Remove redundant print statements from api-get.py Fix coding style problems. Fix more coding style problems. Add a newline character. Change create create_cookie_jar function. Edit test_create_cookie_jar. Fix coding style problems. Change improper variable names. Api testing
12312312312kkk3
Diff Revision 1 (Latest)
Commits
Files
.DS_Store |
---|
setup.py |
---|
contrib/tools/git-hook-check-approval |
---|
rbtools/.DS_Store |
---|
rbtools/api/client.py |
---|
rbtools/api/request.py |
---|
rbtools/api/tests/test_http_request.py |
---|
rbtools/api/transport/sync.py |
---|
rbtools/commands/.DS_Store |
---|
rbtools/commands/__init__.py |
---|
rbtools/commands/api.py |
---|
rbtools/commands/api_get.py |
---|
rbtools/commands/main.py |
---|
rbtools/commands/setup_repo.py |
---|
rbtools/commands/tests/test_setup_repo.py |
---|
rbtools/utils/filesystem.py |
---|