Requests are broken after request with body #242
-
Not sure why but after the "Create template" request the rest are broken. I imagine something of this file breaks the parsing. Not sure if it's my fault or something it's wrong with the library. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Hi, please add a ### line after the variables set, before the first request, that could fix it personally I would add an empty line after ### lines and an additional after comment and before request line. |
Beta Was this translation helpful? Give feedback.
-
This here should work: @host = http://localhost:3000
@authorization = Bearer xxxxxxxxxxxxxxxxxxxxxxxxx
@domain_id = 1834991192461910016
@template_id = 1835007224123596800
@email_id = 1832899994003808256
# Get domains endpoint
GET {{host}}/domain
Authorization: {{authorization}}
###
# Get single domain
GET {{host}}/domain/{{domain_id}}
Authorization: {{authorization}}
###
# Create new domain
POST {{host}}/domain
Authorization: {{authorization}}
Content-Type: application/json
{
"name": "domain.tld",
"region": "eu-west-1"
}
###
# Delete domain
DELETE {{host}}/domain/{{domain_id}}?full=true
Authorization: {{authorization}}
###
# Create a template
POST {{host}}/template
Authorization: {{authorization}}
Content-Type: application/json
{
"html": "<div>Hello [[FIRST_NAME]]</div>",
"text": "Hello [[FIRST_NAME]]",
"subject": "Salutations from [[COMPANY_NAME]]"
}
###
# Get template
GET {{host}}/template/{{template_id}}
Authorization: {{authorization}}
###
# Get all templates
GET {{host}}/template
Authorization: {{authorization}}
###
# Get email
GET {{host}}/email/{{email_id}}
Authorization: {{authorization}} Removed additional new lines. Could probaly also have been fixed by using kulala-fmt |
Beta Was this translation helpful? Give feedback.
This here should work: