Skip to content

Instantly share code, notes, and snippets.

@fuzzyalej
Created April 24, 2014 15:29
Show Gist options
  • Save fuzzyalej/11258873 to your computer and use it in GitHub Desktop.
Save fuzzyalej/11258873 to your computer and use it in GitHub Desktop.
CL DSL for generation API documentation
(generate-api-documentation
:base "http://api.test.com"
:title "API Documentaition for TEST"
:author "fuzzyalej"
(with-endpoint "/book"
:method "GET"
:description "This will fetch a book from the database"
(parameters
(id
:type "String"
:required t
:format "5")
(name
:type "String"
:required nil
:format "Book Name"))
(returns
:200 "All went ok"
:400 "Something went wrong")
(example
:title "Normal example"
:status 200
:format "json"
:data "{'name':'Book Title'}")))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment