Using OpenAPI in Scala
Modern software development is for a large part integrating with other software. To integrate with other software you use the API software you want to integrate with. An API can be a Java-interface, a function, a programming language, DSL, Graphql endpoint, SOAP-Webservice or OpenAPIt. Not to wander off, in this post I describe a few steps I had to take to use existing OpenAPI in Scala.As described in the previous post, I managed to create a openapi document describing the Woocommerce api. Generating a client based on Openapi-document A openapi yml document can be used to generate client code using the openapi-generator . After installing, the command below, using a few additional properties, would generate a scala client using the akka library in the directory out: Shaving a yak, sbt-openapi-generator Now it would be nice to integrate the generation of the client into the sbt. I found a sbt-openapi-generator which…