HTTPie: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 4: | Line 4: | ||
==Playground== | ==Playground== | ||
{| | |||
| valign="top" | | |||
<source lang="bash"> | |||
# post request body | |||
https academia.chorke.org/v1/collections\ | |||
x-auth-key:afda11fd-14da-44e0-aff6-e94bf6b78d1a\ | |||
Content-Type:application/json\ | |||
<<< '{ | |||
"code": "M", | |||
"name": "Male", | |||
"group": "gender", | |||
"properties": {}, | |||
"extendedProperties": {} | |||
}' | |||
</source> | |||
| valign="top" | | |||
<source lang="bash"> | |||
# post request body | |||
https academia.chorke.org/v1/collections\ | |||
x-auth-key:afda11fd-14da-44e0-aff6-e94bf6b78d1a\ | |||
Content-Type:application/json\ | |||
--raw '{ | |||
"code": "M", | |||
"name": "Male", | |||
"group": "gender", | |||
"properties": {}, | |||
"extendedProperties": {} | |||
}' | |||
</source> | |||
|- | |||
| colspan="3" | | |||
---- | |||
|- | |||
| valign="top" | | |||
<source lang="bash"> | |||
# put request body | |||
https PUT academia.chorke.org/v1/collections/1000\ | |||
x-auth-key:afda11fd-14da-44e0-aff6-e94bf6b78d1a\ | |||
Content-Type:application/json\ | |||
<<< '{ | |||
"code": "M", | |||
"name": "Male", | |||
"group": "gender", | |||
"properties": {}, | |||
"extendedProperties": {} | |||
}' | |||
</source> | |||
| valign="top" | | |||
<source lang="bash"> | |||
# put request body | |||
https PUT academia.chorke.org/v1/collections/1000\ | |||
x-auth-key:afda11fd-14da-44e0-aff6-e94bf6b78d1a\ | |||
Content-Type:application/json\ | |||
--raw '{ | |||
"code": "M", | |||
"name": "Male", | |||
"group": "gender", | |||
"properties": {}, | |||
"extendedProperties": {} | |||
}' | |||
</source> | |||
|- | |||
| colspan="3" | | |||
---- | |||
|- | |||
| valign="top" | | |||
<source lang="bash"> | |||
# show response body | |||
https academia.chorke.org/v1/collections\ | |||
x-auth-key:afda11fd-14da-44e0-aff6-e94bf6b78d1a\ | |||
Content-Type:application/json\ | |||
-b\ | |||
<<< '{ | |||
"code": "M", | |||
"name": "Male", | |||
"group": "gender", | |||
"properties": {}, | |||
"extendedProperties": {} | |||
}' | |||
</source> | |||
| valign="top" | | |||
<source lang="bash"> | |||
# show response body | |||
https academia.chorke.org/v1/collections\ | |||
x-auth-key:afda11fd-14da-44e0-aff6-e94bf6b78d1a\ | |||
Content-Type:application/json\ | |||
-b\ | |||
--raw '{ | |||
"code": "M", | |||
"name": "Male", | |||
"group": "gender", | |||
"properties": {}, | |||
"extendedProperties": {} | |||
}' | |||
</source> | |||
|- | |||
| colspan="3" | | |||
---- | |||
|- | |||
| valign="top" | | |||
http https://cdn.chorke.org/bash/java/pull | http https://cdn.chorke.org/bash/java/pull | ||
http https://cdn.chorke.org/exec/cli/ | http https://cdn.chorke.org/exec/cli/ | ||
http --version | http --version | ||
http --help | http --help | ||
| valign="top" | | |||
|} | |||
==References== | ==References== |
Revision as of 10:54, 22 January 2024
choco install httpie brew install httpie snap install httpie
Playground
# post request body
https academia.chorke.org/v1/collections\
x-auth-key:afda11fd-14da-44e0-aff6-e94bf6b78d1a\
Content-Type:application/json\
<<< '{
"code": "M",
"name": "Male",
"group": "gender",
"properties": {},
"extendedProperties": {}
}'
|
# post request body
https academia.chorke.org/v1/collections\
x-auth-key:afda11fd-14da-44e0-aff6-e94bf6b78d1a\
Content-Type:application/json\
--raw '{
"code": "M",
"name": "Male",
"group": "gender",
"properties": {},
"extendedProperties": {}
}'
| |
| ||
# put request body
https PUT academia.chorke.org/v1/collections/1000\
x-auth-key:afda11fd-14da-44e0-aff6-e94bf6b78d1a\
Content-Type:application/json\
<<< '{
"code": "M",
"name": "Male",
"group": "gender",
"properties": {},
"extendedProperties": {}
}'
|
# put request body
https PUT academia.chorke.org/v1/collections/1000\
x-auth-key:afda11fd-14da-44e0-aff6-e94bf6b78d1a\
Content-Type:application/json\
--raw '{
"code": "M",
"name": "Male",
"group": "gender",
"properties": {},
"extendedProperties": {}
}'
| |
| ||
# show response body
https academia.chorke.org/v1/collections\
x-auth-key:afda11fd-14da-44e0-aff6-e94bf6b78d1a\
Content-Type:application/json\
-b\
<<< '{
"code": "M",
"name": "Male",
"group": "gender",
"properties": {},
"extendedProperties": {}
}'
|
# show response body
https academia.chorke.org/v1/collections\
x-auth-key:afda11fd-14da-44e0-aff6-e94bf6b78d1a\
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
| ||