Releases: sergeyglazyrindev/go-monolith
Releases · sergeyglazyrindev/go-monolith
Minor fixes for swagger initialization
Now developer has to configure swagger general information manually. It's more explicit and provides more flexibility.
Added way to override service definitions for swagger docs
Now we are able to support multiple microservices in one monolith.
You can override Basic microservice definitions by specifying it in the microservice instance, like below:
microservice := &MicroserviceExample{Microservice: core.Microservice{
Port: 8089, AuthBackend: "token", Name: "Example microservice",
Prefix: "ExampleMicroservice", SwaggerPort: 8090, ServiceSwaggerDefinition: &core.ServiceSwaggerDefinition{
BasePath: "/v3",
},
}}
Here we override basePath for swagger spec by specifying it here:
ServiceSwaggerDefinition: &core.ServiceSwaggerDefinition{
BasePath: "/v3",
},
Moved original code from uadmin repository.
0.0.1 removed go-monolith-docs