What is the HTTP/S Connector?
A connector in PIPEFORCE is one or more commands allowing you to connect to external systems and exchange data with them.
The HTTP/S Connector allows to connect to such external systems using the HTTP/S protocol. For example if you would like to make RESTful calls.
Typically such endpoints are secured with username and password or a token. You should never place such sensitive data into your source code. Instead, create a new https://logabit.atlassian.net/wiki/spaces/PA/pages/2545713210 and refer to it in your pipeline.
Here is an example to access the GitHub API using the command
http.get and a custom secret, created before:
This will return a JSON document like this example, which can be used in the pipeline for further processing:
Also see these connector commands:
In order to set the body for an HTTP request, you can use the
body: "This is the HTTP body of the POST request"
You can also “link” to the body of the pipeline and use this for the POST body:
body parameter is set. Then the value from the
input parameter will be used as body. If this is also null, not body will be set at all.
You can set HTTP headers using the
headers parameter. It expects the headers as name-value pairs.