Send data to local server
POST http://localhost:3000/launches
POST request to send past launch data to your running local server.
In this Node.js example, our local server will run using Express.js and body-parser middleware to parse the body of our requests. Under the Headers tab in the request builder, set Content-Type
to application/x-www-form-urlencoded
.
Under the Body tab in the request builder, select the x-www-form-urlencoded
radio button, and then your payload for this POST request can be entered in the key-value editor below.
After the collection is run with the corresponding environment, the data passed from the first request will write to the file entitled spaceReport.json
.
Request Body
[{"name"=>"payload", "value"=>"{{launchData}}", "datatype"=>"string"}]
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string |