An open API service indexing awesome lists of open source software.

https://github.com/sake92/sharaf-api-starter

API starter project for Sharaf
https://github.com/sake92/sharaf-api-starter

api-first generator openapi scala

Last synced: 8 days ago
JSON representation

API starter project for Sharaf

Awesome Lists containing this project

README

          

# sharaf-api-starter

This is an api starter project for [Sharaf](https://github.com/sake92/sharaf) that leverages:
- [openapi4s](https://github.com/sake92/openapi4s) for spec-first autogenerated API dev
- [squery](https://github.com/sake92/squery) for db access, with autogenerated db models+DAOs

Openapi and db schema are taken from https://github.com/spring-petclinic/spring-petclinic-rest .

```shell

# creates db and populates it with some data
./mill api.flywayMigrate

# generate db boilerplate source code
./mill api.squeryGenerate

# generate api boilerplate source code
./mill api.openApi4sGenerate

# format source code
./mill mill.scalalib.scalafmt/

```