Add swagger base

This commit is contained in:
cameronts
2022-09-02 13:42:51 -07:00
parent a7ff340692
commit 459e7956cd
5 changed files with 395 additions and 12 deletions

View File

@@ -39,7 +39,16 @@ func networkHandlers(r *mux.Router) {
r.HandleFunc("/api/networks/{networkname}/acls", securityCheck(true, http.HandlerFunc(getNetworkACL))).Methods("GET")
}
// swagger:route GET /api/networks networks getNetworks
//
// Lists all networks
//
// simple get all networks function
//
// Schemes: https
//
// Security:
// oauth
func getNetworks(w http.ResponseWriter, r *http.Request) {
headerNetworks := r.Header.Get("networks")