There are several tools like
Azure AutoRest
,
Swagger Codegen
,
Swagger.io
which can be used to generate API client library from swagger.json file in your preferred programming language. Now, we will look into generating API client library in R using the
httr
package.
Using the below R code snippet, data scientists/application developers can quickly generate API Client Library in over 40 different languages immediately after publishing the web service in their R session
. This method requires no extra setup, no software download/installation.

After running the above code snippet, you will find the client library in a zip file in current working directory. Unzip the file, add nuget package dependencies, add authentication workflow, add client code and begin consuming the APIs. Here is a
detailed article
.