Show HN: Auto-Generate Scala API Clients for REST APIs https://ift.tt/2VHntue
Show HN: Auto-Generate Scala API Clients for REST APIs We've added a new generator to OpenAPI Generator (https://ift.tt/2jT806l) to generate Scala (sttp - https://ift.tt/2uGAdno) API clients. To generate the client given an [OpenAPI/Swagger specification file](https://ift.tt/1O4Clot), please follow 3 simple steps below: 1. Download the Java JAR: https://ift.tt/3au86tc 2. Rename the JAR as "openapi-generator-cli.jar" 3. Run the following command to generate a Scala (sttp) API client for the Petstore API: https://ift.tt/2Jljpbk Mac/Linux: $ java -jar openapi-generator-cli.jar generate -g scala-sttp -i https://ift.tt/2Jljpbk -o /var/tmp/scala-sttp/ Windows: $ java -jar openapi-generator-cli.jar generate -g scala-sttp -i https://ift.tt/2Jljpbk -o C:\tmp\scala-sttp If you've any feedback or question, please let us know via https://ift.tt/2Xq3zGf. The new generator will be included in the upcoming v4.3.0 stable release. Thanks for the new generator by Aleksandr Nekrasov (https://ift.tt/39jeTpA) Ref: https://ift.tt/32PIy7n March 4, 2020 at 08:15AM
Labels: Hacker News
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home