Skip to content

Releases: sergeyglazyrindev/go-monolith

Minor fixes for swagger initialization

19 Dec 19:43
Compare
Choose a tag to compare

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

19 Dec 16:35
Compare
Choose a tag to compare

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.

19 Dec 14:12
Compare
Choose a tag to compare
0.0.1

removed go-monolith-docs