Skip to content

Commit

Permalink
doc(executor/http): example for a post using a raw body (#677)
Browse files Browse the repository at this point in the history
Signed-off-by: Quentin MOUTY <[email protected]>
  • Loading branch information
moutyque authored Jun 5, 2023
1 parent 9470a6c commit 7fc47aa
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions executors/http/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,22 @@ testcases:
statuscode:
from: result.statuscode

- name: post http with body
steps:
- type: http
method: POST
url: https://httpbin.org/post
body: |
{"key": "value"}
headers:
Content-Type: application/json
assertions:
- result.statuscode ShouldEqual 200
- result.bodyjson.url ShouldEqual https://httpbin.org/post
vars:
statuscode:
from: result.statuscode

- name: post http enhanced assertions
steps:
- type: http
Expand Down

0 comments on commit 7fc47aa

Please sign in to comment.