Skip to content

Instantly share code, notes, and snippets.

@MichaelDrogalis
Last active December 10, 2015 06:18
Show Gist options
  • Save MichaelDrogalis/4393850 to your computer and use it in GitHub Desktop.
Save MichaelDrogalis/4393850 to your computer and use it in GitHub Desktop.
Another draft for Pierce
(request
[:post :to "http://localhost:3000/books"]
[:edn {:title "A Tale of Two Cities" :year 1859}])
(request
[:post :to "http://localhost:3000/books"]
{:headers {:X-Api-Version "2"}
:socket-timeout 1000
:conn-timeout 1000
:body [:json {:title "A Tale of Two Cities" :year 1859}]})
(request
[:post :to "http://localhost:3000/books"]
[:json {:title "Generic Book Title"
:year [:randomized :integer :min 1850 :max 2000]
:author [:randomized :string :subtype :full-name}])
(request
[:post :to "http://localhost:3000/books"]
[:xml {:my-book {:title "Generic Book Title"
:year [:randomized :integer :min 1850 :max 2000]
:author [:randomized :string :subtype :full-name}]})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment