Skip to content

Generate R pkg to ingest plumber api from swagger spec / Generate plumber.R from swagger spec #354

Description

@schloerke

@blairj09 suggests to have the ability to automatically create a small R package to ingest all plumber api routes given to the plumber router swagger spec

  • Roxygen comments could be created automatically.
  • Function parameters could be created automatically
    • Parameter validation / coercion? (as.character / stop if not numeric)
  • Function name should corresponds to route path
  • Add comments as details in the roxygen comments
  • Insert #TODO for function body

With the same idea in mind, a function could be made to generate a plumber.R file from a swagger api file spec.


Since it is a clean separation of functionality, these implementations could be done in another R package.

This idea would close the gap from just being able to provide an R api and to being able to ingest external R execution naturally.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions