Adding API resource operation
diff --git a/openstack/networking/v2/networks/urls.go b/openstack/networking/v2/networks/urls.go
index 012e486..3f49261 100644
--- a/openstack/networking/v2/networks/urls.go
+++ b/openstack/networking/v2/networks/urls.go
@@ -1,9 +1,15 @@
package networks
import (
+ "strings"
+
"github.com/rackspace/gophercloud"
)
func APIVersionsURL(c *gophercloud.ServiceClient) string {
return c.ServiceURL("")
}
+
+func APIInfoURL(c *gophercloud.ServiceClient, version string) string {
+ return c.ServiceURL(strings.TrimRight(version, "/") + "/")
+}