coatless-rpkg / ghapi3

Work In Progress: GitHub API v3.0 implemented in R using the gh package
http://r-pkg.thecoatlessprofessor.com/ghapi3/
18 stars 3 forks source link

Spin up the GitHub API by using OpenAPI Description #9

Open coatless opened 3 weeks ago

coatless commented 3 weeks ago

Build the spec off of OpenAPI

https://github.com/github/rest-api-description/tree/main/descriptions/api.github.com

coatless commented 3 weeks ago

OpenAPI Packages:

https://github.com/bergant/rapiclient -> Builds an insession client

https://github.com/rstudio/swagger -> Builds web documentation for the OpenAPI specification from R.

https://openapi-generator.tech/docs/generators/r -> R generator via command line app

brew install openapi-generator

mkdir -p ~/api-demo/petstore
openapi-generator generate -g r -i https://raw.githubusercontent.com/OAI/OpenAPI-Specification/master/examples/v3.0/petstore.yaml -o ~/api-demo/petstore