49 lines
No EOL
4.7 KiB
XML
49 lines
No EOL
4.7 KiB
XML
<templateSet group="HTTP Request">
|
|
<template name="gtr" value="GET http://$HOST$/$PATH$ $HEADER$: $HEADER_VALUE$ ###" description="GET http://example.com/get" toReformat="true" toShortenFQNames="false">
|
|
<variable name="HOST" expression="" defaultValue=""localhost:80"" alwaysStopAt="true" />
|
|
<variable name="PATH" expression="" defaultValue=""api/item"" alwaysStopAt="true" />
|
|
<variable name="HEADER" expression="" defaultValue=""Accept"" alwaysStopAt="true" />
|
|
<variable name="HEADER_VALUE" expression="" defaultValue=""application/json"" alwaysStopAt="true" />
|
|
<context />
|
|
</template>
|
|
<template name="gtrp" value="GET http://$HOST$/$PATH$?$PARAM$=$VALUE$ $HEADER$: $HEADER_VALUE$ ###" description="GET http://example.com/get?id=99" toReformat="true" toShortenFQNames="false">
|
|
<variable name="HOST" expression="" defaultValue=""localhost:80"" alwaysStopAt="true" />
|
|
<variable name="PATH" expression="" defaultValue=""api/item"" alwaysStopAt="true" />
|
|
<variable name="PARAM" expression="" defaultValue=""id"" alwaysStopAt="true" />
|
|
<variable name="VALUE" expression="" defaultValue=""99"" alwaysStopAt="true" />
|
|
<variable name="HEADER" expression="" defaultValue=""Accept"" alwaysStopAt="true" />
|
|
<variable name="HEADER_VALUE" expression="" defaultValue=""application/json"" alwaysStopAt="true" />
|
|
<context />
|
|
</template>
|
|
<template name="ptr" value="POST http://$HOST$/$PATH$ Content-Type: $HEADER_VALUE$ $BODY$ ###" description="POST http://example.com/add..." toReformat="true" toShortenFQNames="false">
|
|
<variable name="HOST" expression="" defaultValue=""localhost:80"" alwaysStopAt="true" />
|
|
<variable name="PATH" expression="" defaultValue=""api/item"" alwaysStopAt="true" />
|
|
<variable name="HEADER_VALUE" expression="" defaultValue=""application/json"" alwaysStopAt="true" />
|
|
<variable name="BODY" expression="" defaultValue=""{}"" alwaysStopAt="true" />
|
|
<context />
|
|
</template>
|
|
<template name="ptrp" value="POST http://$HOST$/$PATH$ Content-Type: application/x-www-form-urlencoded $PARAM1$=$VALUE1$&$PARAM2$=$VALUE2$ ###" description="POST application/x-www-form-urlencoded" toReformat="true" toShortenFQNames="false">
|
|
<variable name="HOST" expression="" defaultValue=""localhost:80"" alwaysStopAt="true" />
|
|
<variable name="PATH" expression="" defaultValue=""api/item"" alwaysStopAt="true" />
|
|
<variable name="PARAM1" expression="" defaultValue=""id"" alwaysStopAt="true" />
|
|
<variable name="VALUE1" expression="" defaultValue=""99"" alwaysStopAt="true" />
|
|
<variable name="PARAM2" expression="" defaultValue=""content"" alwaysStopAt="true" />
|
|
<variable name="VALUE2" expression="" defaultValue=""new-element"" alwaysStopAt="true" />
|
|
<context />
|
|
</template>
|
|
<template name="mptr" value="POST http://$HOST$/$PATH$ Content-Type: multipart/form-data; boundary=WebAppBoundary --WebAppBoundary Content-Disposition: form-data; name="$FIELD_NAME$" $BODY$ --WebAppBoundary-- ###" description="POST multipart/form-data" toReformat="true" toShortenFQNames="false">
|
|
<variable name="HOST" expression="" defaultValue=""localhost:80"" alwaysStopAt="true" />
|
|
<variable name="PATH" expression="" defaultValue=""api/item"" alwaysStopAt="true" />
|
|
<variable name="FIELD_NAME" expression="" defaultValue=""field-name"" alwaysStopAt="true" />
|
|
<variable name="BODY" expression="" defaultValue=""field-value"" alwaysStopAt="true" />
|
|
<context />
|
|
</template>
|
|
<template name="fptr" value="POST http://$HOST$/$PATH$ Content-Type: multipart/form-data; boundary=WebAppBoundary --WebAppBoundary Content-Disposition: form-data; name="$FIELD_NAME$" filename="$FILE_NAME$" < $FILE_PATH$ --WebAppBoundary-- ###" description="POST file by multipart/form-data" toReformat="true" toShortenFQNames="false">
|
|
<variable name="HOST" expression="" defaultValue=""localhost:80"" alwaysStopAt="true" />
|
|
<variable name="PATH" expression="" defaultValue=""api/item"" alwaysStopAt="true" />
|
|
<variable name="FIELD_NAME" expression="" defaultValue=""field-name"" alwaysStopAt="true" />
|
|
<variable name="FILE_NAME" expression="" defaultValue=""file.txt"" alwaysStopAt="true" />
|
|
<variable name="FILE_PATH" expression="" defaultValue=""./relative/path/to/local_file.txt"" alwaysStopAt="true" />
|
|
<context />
|
|
</template>
|
|
</templateSet> |