Wednesday, March 4, 2020

New Capital Entrepreneur LLC Consultants: Show HN: Auto-Generate Scala API Clients for REST APIs https://news.ycombinator.com/item?id=22483904

Show HN: Auto-Generate Scala API Clients for REST APIs We've added a new generator to OpenAPI Generator (https://github.com/OpenAPITools/openapi-generator) to generate Scala (sttp - https://github.com/softwaremill/sttp) API clients. To generate the client given an [OpenAPI/Swagger specification file](https://github.com/OAI/OpenAPI-Specification), please follow 3 simple steps below: 1. Download the Java JAR: https://oss.sonatype.org/content/repositories/snapshots/org/openapitools/openapi-generator-cli/4.3.0-SNAPSHOT/openapi-generator-cli-4.3.0-20200304.092413-177.jar 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://raw.githubusercontent.com/OpenAPITools/openapi-generator/master/modules/openapi-generator/src/test/resources/2_0/petstore.yaml Mac/Linux: $ java -jar openapi-generator-cli.jar generate -g scala-sttp -i https://raw.githubusercontent.com/OpenAPITools/openapi-generator/master/modules/openapi-generator/src/test/resources/2_0/petstore.yaml -o /var/tmp/scala-sttp/ Windows: $ java -jar openapi-generator-cli.jar generate -g scala-sttp -i https://raw.githubusercontent.com/OpenAPITools/o
from bitly http://bit.ly/2IkOwUs
via IFTTT

No comments:

Post a Comment