rstudio / plumber

Turn your R code into a web API.
https://www.rplumber.io
Other
1.39k stars 256 forks source link

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

Open schloerke opened 5 years ago

schloerke commented 5 years ago

@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


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.

nuest commented 5 years ago

AFAIR @richfitz generates an R client using a swagger spec in https://github.com/richfitz/stevedore - maybe he has some pointers about this idea.

schloerke commented 5 years ago

That'd be awesome. Looking to be using openapi spec v3.x down the road.