Response Block
Response block sends response when request is sent to API endpoint. It consists of status code like 200, 404 etc and data if you want to send any data with the response. Data is sent in the form of JSON.
NOTE: Every endpoint must end with a response block.
# How to create a response block
- Drag "Response" block under “Control Blocks” in block picker.
- Select appropriate status code
- To add data press "Add data" and enter name of the key and value
- To use variable, put variable name in double curly braces. Eg:
{{variable_name}}