GoogleCloudPlatform / go-endpoints

Cloud Endpoints for Go
https://go-endpoints.appspot.com
Apache License 2.0
255 stars 56 forks source link

Query Parameters #105

Open Simple-Complexity opened 9 years ago

Simple-Complexity commented 9 years ago

If I wanted my url to look something like "http://myapi.com/list?count={count}", go-endpoints will reform the url to something like "http://myapi.com/{count}" from the api explorer. Is this a bug or am I doing something wrong?

My method registration looks something like this:

registerInfo := api.MethodByName("List").Info() registerInfo.Name, registerInfo.HTTPMethod, registerInfo.Path, registerInfo.Desc = "list", "GET", "list?count={count}", "List my things!"