Request configuration
#
Available configuration optionsmethod
: HTTP method for the requestendpoint
: The path without the domain, for example/posts
body
: The request payloadheaders
: Request headers, formatted as a YAML objectparams
: Parameters for the request
#
HTTP methodsThe following HTTP methods are currently available:
- GET
- POST
- PUT
- PATCH
- DELETE
#
Using environment variablesEnvironment variables can be used in request configuration files as well as the .sendex.yml
configuration file. Anything in your local .env
file is accessible in require YAML by using the following syntax:
${YOUR_ENV_VAR}
Where YOUR_ENV_VAR matches the name of the environment variable in .env
.
This can be useful for secrets such as bearer tokens or passwords.