-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrequest.flow.yaml
More file actions
61 lines (61 loc) · 1.92 KB
/
request.flow.yaml
File metadata and controls
61 lines (61 loc) · 1.92 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# yaml-language-server: $schema=https://flowexec.io/schemas/flowfile_schema.json
# DO NOT EDIT - this file was generated by the example builder tool
description: |
Request executables send HTTP requests with the specified request and response settings.
executables:
- description: |-
The `url` field is required and must be a valid URL. The `method` field is optional and defaults to `GET`.
The `headers` field is optional and can be used to set request headers.
name: request
request:
headers:
Authorization: Bearer token
User-Agent: flow
method: GET
url: https://httpbin.org/get
tags:
- request
verb: send
visibility: private
- description: The `validStatusCodes` field is optional and can be used to specify the valid status codes. If the response
status code is not in the list, the executable will fail.
name: request-with-validated-status
request:
url: https://httpbin.org/status/400
validStatusCodes:
- 200
tags:
- request
verb: send
visibility: private
- description: The `timeout` field is optional and can be used to set the request timeout.
name: request-with-timeout
request:
timeout: 1ns
url: https://httpbin.org/delay/3
tags:
- request
verb: send
visibility: private
- description: The `body` field is optional and can be used to send a request body.
name: request-with-body
request:
body: '{"key": "value"}'
method: POST
url: https://httpbin.org/post
tags:
- request
verb: send
visibility: private
- description: The `transformResponse` field is optional and can be used to transform the response using an Expr expression.
name: request-with-transform
request:
transformResponse: status
url: https://httpbin.org/get
tags:
- request
verb: send
visibility: private
namespace: request
tags:
- request