API
Sangria input defaults for value classes
We’re going to explore how we can use a default value for a value class in Sangria.
This builds on the previous blog post about Sangria.
Value class in Sangria
We’ll go through the steps necessary to parse value classes.
Automatically generating your API from a swagger file using gradle
Normally when using swagger, you generate a swagger.yaml file for your API. But what if you already have a swagger.yaml file and you want to generate the API interface and models, like you would also do with a webservice using a WSDL file? To achieve this, swagger has a great tool: swagger-codegen. The tool has a CLI and a maven plugin, but no gradle plugin. So how do we use it with gradle?