Skip to content

Commit

Permalink
fix swagger document (#478)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhenghaoz authored Jun 11, 2022
1 parent 0419171 commit e3eb6d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/rest.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func (s *RestServer) StartHttpServer(container *restful.Container) {
container.Add(s.WebService)
// register swagger UI
specConfig := restfulspec.Config{
WebServices: restful.RegisteredWebServices(),
WebServices: []*restful.WebService{s.WebService},
APIPath: "/apidocs.json",
}
container.Add(restfulspec.NewOpenAPIService(specConfig))
Expand Down

0 comments on commit e3eb6d6

Please sign in to comment.