Skip to content
This repository has been archived by the owner on Dec 5, 2022. It is now read-only.

Generate controller functions based on the API specification. #93

Open
dryewo opened this issue Oct 5, 2016 · 0 comments
Open

Generate controller functions based on the API specification. #93

dryewo opened this issue Oct 5, 2016 · 0 comments

Comments

@dryewo
Copy link
Contributor

dryewo commented Oct 5, 2016

$ 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"}))
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants