1{
2 "kind": "discovery#restDescription",
3 "etag": "\"kEk3sFj6Ef5_yR1-H3bAO6qw9mI/3m5rB86FE5KuW1K3jAl88AxCreg\"",
4 "discoveryVersion": "v1",
5 "id": "paramrename:v1",
6 "name": "paramrename",
7 "version": "v1",
8 "title": "Example API",
9 "description": "The Example API demonstrates parameter renaming.",
10 "ownerDomain": "google.com",
11 "ownerName": "Google",
12 "protocol": "rest",
13 "schemas": {
14 "Event": {
15 "id": "Event",
16 "type": "string"
17 },
18 "ResultTable": {
19 "id": "ResultTable",
20 "type": "string"
21 }
22 },
23 "resources": {
24 "events": {
25 "methods": {
26 "move": {
27 "id": "calendar.events.move",
28 "path": "calendars/{calendarId}/events/{eventId}/move",
29 "httpMethod": "POST",
30 "description": "Moves an event to another calendar, i.e. changes an event's organizer.",
31 "parameters": {
32 "destination": {
33 "type": "string",
34 "description": "Calendar identifier of the target calendar where the event is to be moved to.",
35 "required": true,
36 "location": "query"
37 },
38 "source-param": {
39 "type": "string",
40 "description": "Some parameter.",
41 "required": false,
42 "location": "query"
43 },
44 "right-string": {
45 "type": "string",
46 "description": "Yet another parameter.",
47 "required": true,
48 "location": "path"
49 }
50 },
51 "parameterOrder": [
52 "destination",
53 "right-string"
54 ],
55 "response": {
56 "$ref": "Event"
57 },
58 "scopes": [
59 "https://www.googleapis.com/auth/calendar"
60 ]
61 }
62 }
63 },
64 "reports": {
65 "methods": {
66 "query": {
67 "id": "youtubeAnalytics.reports.query",
68 "path": "reports",
69 "httpMethod": "GET",
70 "description": "Retrieve your YouTube Analytics reports.",
71 "parameters": {
72 "start-date": {
73 "type": "string",
74 "description": "The start date for fetching YouTube Analytics data. The value should be in YYYY-MM-DD format.",
75 "required": true,
76 "pattern": "[0-9]{4}-[0-9]{2}-[0-9]{2}",
77 "location": "query"
78 }
79 },
80 "parameterOrder": [
81 "start-date"
82 ],
83 "response": {
84 "$ref": "ResultTable"
85 },
86 "scopes": [
87 "https://www.googleapis.com/auth/yt-analytics-monetary.readonly",
88 "https://www.googleapis.com/auth/yt-analytics.readonly"
89 ]
90 }
91 }
92 }
93 }
94}
View as plain text