cdanielm58 / google-api-dotnet-client

Automatically exported from code.google.com/p/google-api-dotnet-client
Apache License 2.0
0 stars 0 forks source link

Discovery method which doesn't return a response #348

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
The C# code generator generates a ClientServiceRequest with string for "void" 
method.
We should support ClientRequests without responses.

look at discovery doc and code as an example:
https://www.googleapis.com/discovery/v1/apis/drive/v2/rest

 "children": {
   "methods": {
    "delete": {
     "id": "drive.children.delete",
     "path": "files/{folderId}/children/{childId}",
     "httpMethod": "DELETE",
     "description": "Removes a child from a folder.",
     "parameters": {
      "childId": {
       "type": "string",
       "description": "The ID of the child.",
       "required": true,
       "location": "path"
      },
      "folderId": {
       "type": "string",
       "description": "The ID of the folder.",
       "required": true,
       "location": "path"
      }
     },
     "parameterOrder": [
      "folderId",
      "childId"
     ],
     "scopes": [
      "https://www.googleapis.com/auth/drive",
      "https://www.googleapis.com/auth/drive.file"
     ]
    },

We generate a DeleteRequest which inherits from  
Google.Apis.Requests.ClientServiceRequest<string>,
although there is no response type.

Original issue reported on code.google.com by pele...@google.com on 1 Jul 2013 at 6:53

GoogleCodeExporter commented 9 years ago

Original comment by ngmic...@google.com on 1 Jul 2013 at 7:20

GoogleCodeExporter commented 9 years ago

Original comment by pele...@google.com on 14 Aug 2013 at 3:25

GoogleCodeExporter commented 9 years ago

Original comment by pele...@google.com on 1 Oct 2013 at 5:18