blob: 05a3c7e76f900caa970ebc3185d033f53b257c16 [file] [log] [blame]
Matthias Andreas Benkard832a54e2019-01-29 09:27:38 +01001package swagger
2
3type SwaggerBuilder struct {
4 SwaggerService
5}
6
7func NewSwaggerBuilder(config Config) *SwaggerBuilder {
8 return &SwaggerBuilder{*newSwaggerService(config)}
9}
10
11func (sb SwaggerBuilder) ProduceListing() ResourceListing {
12 return sb.SwaggerService.produceListing()
13}
14
15func (sb SwaggerBuilder) ProduceAllDeclarations() map[string]ApiDeclaration {
16 return sb.SwaggerService.produceAllDeclarations()
17}
18
19func (sb SwaggerBuilder) ProduceDeclarations(route string) (*ApiDeclaration, bool) {
20 return sb.SwaggerService.produceDeclarations(route)
21}