abujehad139 / google-api-go-client

Automatically exported from code.google.com/p/google-api-go-client
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Support URI Template expansion #65

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago

Currently the client library doesn't handle forms like follows:
"topics/{+topic}"

For example, Cloud Pub/Sub API has such methods and the generated library does 
not work correctly.

FYI, the discovery doc is here:
https://www.googleapis.com/discovery/v1/apis/pubsub/v1beta1/rest

Original issue reported on code.google.com by tmat...@google.com on 23 Jul 2014 at 8:26

GoogleCodeExporter commented 9 years ago
Here is the RFC for URI Template:
http://tools.ietf.org/html/rfc6570

Pub/Sub API has a method topics.delete defined as follows (see "path" which 
expects URI Template expansion):
"delete": {
     "id": "pubsub.topics.delete",
     "path": "topics/{+topic}",
     "httpMethod": "DELETE",
     "description": "Deletes the topic with the given name. All subscriptions to this topic are also deleted. Returns NOT_FOUND if the topic does not exist. After a topic is deleted, a new topic may be created with the same name.",
     "parameters": {
      "topic": {
       "type": "string",
       "description": "Name of the topic to delete.",
       "required": true,
       "location": "path"
      }
     },
     "parameterOrder": [
      "topic"
     ],
     "scopes": [
      "https://www.googleapis.com/auth/cloud-platform",
      "https://www.googleapis.com/auth/pubsub"
     ]
    },

Original comment by tmat...@google.com on 24 Jul 2014 at 12:58

GoogleCodeExporter commented 9 years ago
This issue was closed by revision 11e893087017.

Original comment by bradfitz@google.com on 18 Aug 2014 at 7:14