mirror of
https://github.com/usebruno/bruno.git
synced 2026-07-09 06:55:03 +00:00
36 lines
595 B
YAML
36 lines
595 B
YAML
meta:
|
|
name: Get User GraphQL
|
|
seq: 1
|
|
graphql:
|
|
method: post
|
|
url: https://api.example.com/graphql
|
|
params:
|
|
query: []
|
|
path: []
|
|
headers:
|
|
- name: Content-Type
|
|
value: application/json
|
|
body:
|
|
type: graphql
|
|
query: |-
|
|
query GetUser($id: ID!) {
|
|
user(id: $id) {
|
|
id
|
|
name
|
|
email
|
|
}
|
|
}
|
|
variables: |-
|
|
{
|
|
"id": "123"
|
|
}
|
|
auth:
|
|
type: bearer
|
|
bearer:
|
|
token: jwt-token
|
|
vars:
|
|
pre-request:
|
|
- name: userId
|
|
value: '123'
|
|
scripts:
|
|
pre-request: // Pre-request script for GraphQL |