Open dryewo opened 8 years ago
$ lein new friboo my-new-project -- apis/my-new-project.yaml
This call should copy the file into the new project and generate corresponding controller functions:
(defn get-hello [controller params request] (response {:message "OK"}))
Optionally, it's even possible to infer parameter names and generate them too:
(defn get-hello [controller {:keys [name size offset] :as params} request] (response {:message "OK"}))
This call should copy the file into the new project and generate corresponding controller functions:
Optionally, it's even possible to infer parameter names and generate them too: