Skip to content

New syntax for forms

Compare
Choose a tag to compare
@quii quii released this 07 Aug 15:08
· 250 commits to master since this release

This addresses #46 which is a usability issue. If you wanted to send form data you would have to put in your config a URL encoded string as the body. Which is super flaky, hard to read and generally awful.

Now there is syntax for forms!

 - name: Posting forms
   cdcdisabled: false
   request:
     uri: /cats
     method: POST
     form:
      age: 10
      name: Hudson
   response:
     code: 201
     body: Created

The caller will need to send the data with the content type of application/x-www-form-urlencoded