HTTPie: Difference between revisions
Jump to navigation
Jump to search
Line 159: | Line 159: | ||
| valign="top" | | | valign="top" | | ||
* [[Locale]] | |||
* [[CURL]] | * [[CURL]] | ||
* [[Flask]] | * [[Flask]] |
Revision as of 19:26, 20 April 2024
choco install httpie brew install httpie snap install httpie
Playground
# post request body
time https academia.chorke.org/v1/collections\
x-auth-key:aeda11fd-14ea-44d0-aff6-e94bf6b78c1b\
Content-Type:application/json\
<<< '{
"code": "M",
"name": "Male",
"group": "gender",
"properties": {},
"extendedProperties": {}
}'
|
# post request body
time https academia.chorke.org/v1/collections\
x-auth-key:aeda11fd-14ea-44d0-aff6-e94bf6b78c1b\
Content-Type:application/json\
--raw '{
"code": "M",
"name": "Male",
"group": "gender",
"properties": {},
"extendedProperties": {}
}'
| |
| ||
# put request body
time https PUT academia.chorke.org/v1/collections/1000\
x-auth-key:aeda11fd-14ea-44d0-aff6-e94bf6b78c1b\
Content-Type:application/json\
<<< '{
"code": "M",
"name": "Male",
"group": "gender",
"properties": {},
"extendedProperties": {}
}'
|
# put request body
time https PUT academia.chorke.org/v1/collections/1000\
x-auth-key:aeda11fd-14ea-44d0-aff6-e94bf6b78c1b\
Content-Type:application/json\
--raw '{
"code": "M",
"name": "Male",
"group": "gender",
"properties": {},
"extendedProperties": {}
}'
| |
| ||
# show response body
time https academia.chorke.org/v1/collections\
x-auth-key:aeda11fd-14ea-44d0-aff6-e94bf6b78c1b\
Content-Type:application/json\
-b\
<<< '{
"code": "M",
"name": "Male",
"group": "gender",
"properties": {},
"extendedProperties": {}
}'
|
# show response body
time https academia.chorke.org/v1/collections\
x-auth-key:aeda11fd-14ea-44d0-aff6-e94bf6b78c1b\
Content-Type:application/json\
-b\
--raw '{
"code": "M",
"name": "Male",
"group": "gender",
"properties": {},
"extendedProperties": {}
}'
| |
| ||
http https://cdn.chorke.org/bash/java/pull http https://cdn.chorke.org/exec/cli/ http --version http --help |
References
| ||