Home » Android » sqlite – Using swagger with an android database

sqlite – Using swagger with an android database

Posted by: admin May 14, 2020 Leave a comment


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!

How to&Answers: