basic openapi docu

This commit is contained in:
Cubicroot 2021-09-30 18:55:50 +02:00
parent 9c22816495
commit db9eaa796a
2 changed files with 23 additions and 1 deletions

View file

@ -26,6 +26,19 @@ func setupCleanup(db *database.Database, dp *dispatcher.Dispatcher) {
}()
}
// @title PushBits Server API Documentation
// @version 1.0
// @description Documentation for the PushBits server API.
// TODO add inprint and contact?
// @contact.name API Support
// @contact.url http://www.swagger.io/support
// @host your-domain.net
// @BasePath /
// @query.collection.format multi
// @securityDefinitions.basic BasicAuth
func main() {
log.Println("Starting PushBits.")