graphql-engine/cli/commands/testdata/config-v3-test-project/metadata/actions.yaml
Aravind K P bea2855b88 cli: support request_transforms in actions metadata
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/2738
GitOrigin-RevId: b125043dbb9321aa8319a6dcd6e1cd6a21f4dfe1
2021-11-03 06:38:48 +00:00

32 lines
710 B
YAML

actions:
- name: actionName
definition:
kind: synchronous
handler: http://localhost:3000
headers:
- value: test
name: test
timeout: 1
request_transform:
body: |-
{
"users": {
"test": {{$body.input.arg1.username}},
"v": {{$body.input.arg1.password}}
}
}
content_type: application/json
method: POST
query_params:
test: test
template_engine: Kriti
url: https://httpbin.org/post
comment: actions_test_comment
custom_types:
enums: []
input_objects:
- name: SampleInput
objects:
- name: SampleOutput
scalars: []