TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: Generate Scala Play server stub using OpenAPI Generator in 3 steps

1 pointsby wing328hkabout 6 years ago
We&#x27;ve just added a Scala Play server stub generator (beta) to the OpenAPI Generator project (<a href="https:&#x2F;&#x2F;github.com&#x2F;OpenAPITools&#x2F;openapi-generator" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;OpenAPITools&#x2F;openapi-generator</a>) and would appreciate if you can try it out and let us know if you&#x27;ve any feedback or question for us. To try it out, just follow 3 steps below:<p>1. Download the Java JAR (<a href="https:&#x2F;&#x2F;oss.sonatype.org&#x2F;content&#x2F;repositories&#x2F;snapshots&#x2F;org&#x2F;openapitools&#x2F;openapi-generator-cli&#x2F;4.0.0-SNAPSHOT&#x2F;openapi-generator-cli-4.0.0-20190325.135215-449.jar" rel="nofollow">https:&#x2F;&#x2F;oss.sonatype.org&#x2F;content&#x2F;repositories&#x2F;snapshots&#x2F;org&#x2F;...</a>)<p>2. Rename the JAR as &quot;openapi-generator-cli.jar&quot;<p>3. Run the following command to generate a Scala Play server stub for Petstore API (<a href="https:&#x2F;&#x2F;raw.githubusercontent.com&#x2F;OpenAPITools&#x2F;openapi-generator&#x2F;master&#x2F;modules&#x2F;openapi-generator&#x2F;src&#x2F;test&#x2F;resources&#x2F;2_0&#x2F;petstore.yaml" rel="nofollow">https:&#x2F;&#x2F;raw.githubusercontent.com&#x2F;OpenAPITools&#x2F;openapi-gener...</a>):<p>Mac&#x2F;Linux: - java -jar openapi-generator-cli.jar generate -g scala-play-server -i <a href="https:&#x2F;&#x2F;raw.githubusercontent.com&#x2F;OpenAPITools&#x2F;openapi-generator&#x2F;master&#x2F;modules&#x2F;openapi-generator&#x2F;src&#x2F;test&#x2F;resources&#x2F;2_0&#x2F;petstore.yaml" rel="nofollow">https:&#x2F;&#x2F;raw.githubusercontent.com&#x2F;OpenAPITools&#x2F;openapi-gener...</a> -o &#x2F;var&#x2F;tmp&#x2F;scala-play-petstore&#x2F;<p>Windows: - java -jar openapi-generator-cli.jar generate -g scala-play-server -i <a href="https:&#x2F;&#x2F;raw.githubusercontent.com&#x2F;OpenAPITools&#x2F;openapi-generator&#x2F;master&#x2F;modules&#x2F;openapi-generator&#x2F;src&#x2F;test&#x2F;resources&#x2F;2_0&#x2F;petstore.yaml" rel="nofollow">https:&#x2F;&#x2F;raw.githubusercontent.com&#x2F;OpenAPITools&#x2F;openapi-gener...</a> -o C:\tmp\scala-play-petstore<p>Look forward to hearing feedback from you.<p>Thanks, William

no comments

no comments