Merge pull request #2813 from derekwaynecarr/ns_url

Move namespace from query param to path part
This commit is contained in:
Daniel Smith
2014-12-18 13:31:45 -08:00
20 changed files with 413 additions and 167 deletions

View File

@@ -136,7 +136,7 @@ func (r *Request) Namespace(namespace string) *Request {
return r
}
if len(namespace) > 0 {
return r.setParam("namespace", namespace)
return r.Path("ns").Path(namespace)
}
return r
}