11

I'm looking for away to use Swagger with an on-device database on android, ideally with GreenDAO and retrofit but I'm willing to use what works.

The app will need to have a persistent database and also sync/communicate with a server that uses swagger. I'm looking for ways to use the code generation of swagger with an on-device database rather than defining the model manually.

Is there a swagger codegen library or project that will work with an android ORM (preferably greendao)? I haven't found anything yet, but haven't been looking too long.

Otherwise, I'm going to try making/modifying .mustache files for the model which work with DaoGenerator. It will likely require a two step process to update the model, but that's easier than recreating the model manually.

Open to other ideas and suggestions as well!

GetSwifty
  • 7,568
  • 1
  • 29
  • 46

0 Answers0