-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #224 from blagerweij/chore/update-formdata-docs
chore: update multipart syntax
- Loading branch information
Showing
2 changed files
with
18 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -174,9 +174,15 @@ Steps are the instructions to be executed by the runner. Steps contain the reque | |
url: https://httpbin.org/post | ||
method: POST | ||
formData: | ||
email: [email protected] | ||
email: [email protected] # simple field value | ||
example: | ||
file: file.txt | ||
file: file.txt # file attachment | ||
idDocument: | ||
file: password.pdf # file attachment with specific content-type | ||
type: application/pdf | ||
personInfo: | ||
value: '{ "name": "john" }' # form field with specific content-type | ||
type: application/json | ||
``` | ||
|
||
### File uploads | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -712,11 +712,19 @@ Fields can include a file | |
|
||
```yaml | ||
formData: | ||
email: [email protected] | ||
email: [email protected] # simple field value | ||
readme: | ||
file: README.md | ||
file: README.md # file attachment | ||
idDocument: | ||
file: password.pdf # file attachment with specific content-type | ||
type: application/pdf | ||
personInfo: | ||
value: '{ "name": "john" }' # form field with specific content-type | ||
type: application/json | ||
``` | ||
|
||
|
||
|
||
### `tests.<test>.steps.[step].http.graphql` | ||
|
||
Optional. GraphQL Data | ||
|