             [qbits.jet.server :as jet]
             [clojure.tools.logging :as l]))
 
-#_ (defn- swagger-data [options & ns-specs]
-  (let [[_ routing-table] (d/construct-namespace-handler options ns-specs)]
-    (rs/construct-swagger routing-table)))
+(defn- swagger-object
+  [rook-options swagger-options & ns-specs]
+  (let [[_ routing-table] (d/construct-namespace-handler rook-options ns-specs)]
+    (rs/construct-swagger-object swagger-options routing-table)))
 
 (defn get*
   [path]

                          rook/wrap-with-standard-middleware))

    (with-all server (jet/run-jetty {:ring-handler @handler
                                     :join? false
                                     :port 8192}))

    (it "can start the server"
        (should-not-be-nil @server))

(ns rook.swagger-spec
  (:use io.aviso.rook
        speclj.core
        clojure.repl
        clojure.template
        clojure.pprint)
  (:require [io.aviso.rook.dispatcher :as d]
