Skip to content

Instantly share code, notes, and snippets.

@ihcsim
Last active February 4, 2020 06:11
Show Gist options
  • Select an option

  • Save ihcsim/8c9f74d7771084da6f8b3c8968621ee9 to your computer and use it in GitHub Desktop.

Select an option

Save ihcsim/8c9f74d7771084da6f8b3c8968621ee9 to your computer and use it in GitHub Desktop.
if err := s.installAPIResources(apiPrefix, apiGroupInfo, openAPIModels); err != nil {
return err
}
// Install the version handler.
// Add a handler at /<apiPrefix> to enumerate the supported api versions.
s.Handler.GoRestfulContainer.Add(discovery.NewLegacyRootAPIHandler(s.discoveryAddresses, s.Serializer, apiPrefix).WebService())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment