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

Generate controller functions based on the API specification. #93

@dryewo

Description

@dryewo
$ 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"}))

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions