Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(100)

Side by Side Diff: discovery/googleapis/acceleratedmobilepageurl__v1.json

Issue 2039113004: Api-roll 37: 2016-06-06 (Closed) Base URL: git@github.com:dart-lang/googleapis.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « config.yaml ('k') | discovery/googleapis/adsense__v1.4.json » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 {
2 "basePath": "",
3 "baseUrl": "https://acceleratedmobilepageurl.googleapis.com/",
4 "batchPath": "batch",
5 "description": "This API contains a single method, batchGet. Call this metho d to retrieve the AMP URL (and equivalent AMP Cache URL) for given public URL(s) .\n",
6 "discoveryVersion": "v1",
7 "documentationLink": "https://developers.google.com/amp/cache/",
8 "icons": {
9 "x16": "http://www.google.com/images/icons/product/search-16.gif",
10 "x32": "http://www.google.com/images/icons/product/search-32.gif"
11 },
12 "id": "acceleratedmobilepageurl:v1",
13 "kind": "discovery#restDescription",
14 "name": "acceleratedmobilepageurl",
15 "ownerDomain": "google.com",
16 "ownerName": "Google",
17 "parameters": {
18 "access_token": {
19 "description": "OAuth access token.",
20 "location": "query",
21 "type": "string"
22 },
23 "prettyPrint": {
24 "default": "true",
25 "description": "Returns response with indentations and line breaks." ,
26 "location": "query",
27 "type": "boolean"
28 },
29 "key": {
30 "description": "API key. Your API key identifies your project and pr ovides you with API access, quota, and reports. Required unless you provide an O Auth 2.0 token.",
31 "location": "query",
32 "type": "string"
33 },
34 "quotaUser": {
35 "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exc eed 40 characters.",
36 "location": "query",
37 "type": "string"
38 },
39 "pp": {
40 "default": "true",
41 "description": "Pretty-print response.",
42 "location": "query",
43 "type": "boolean"
44 },
45 "fields": {
46 "description": "Selector specifying which fields to include in a par tial response.",
47 "location": "query",
48 "type": "string"
49 },
50 "alt": {
51 "default": "json",
52 "description": "Data format for response.",
53 "enum": [
54 "json",
55 "media",
56 "proto"
57 ],
58 "enumDescriptions": [
59 "Responses with Content-Type of application/json",
60 "Media download with context-dependent Content-Type",
61 "Responses with Content-Type of application/x-protobuf"
62 ],
63 "location": "query",
64 "type": "string"
65 },
66 "$.xgafv": {
67 "description": "V1 error format.",
68 "enum": [
69 "1",
70 "2"
71 ],
72 "enumDescriptions": [
73 "v1 error format",
74 "v2 error format"
75 ],
76 "location": "query",
77 "type": "string"
78 },
79 "callback": {
80 "description": "JSONP",
81 "location": "query",
82 "type": "string"
83 },
84 "oauth_token": {
85 "description": "OAuth 2.0 token for the current user.",
86 "location": "query",
87 "type": "string"
88 },
89 "uploadType": {
90 "description": "Legacy upload protocol for media (e.g. \"media\", \" multipart\").",
91 "location": "query",
92 "type": "string"
93 },
94 "bearer_token": {
95 "description": "OAuth bearer token.",
96 "location": "query",
97 "type": "string"
98 },
99 "upload_protocol": {
100 "description": "Upload protocol for media (e.g. \"raw\", \"multipart \").",
101 "location": "query",
102 "type": "string"
103 }
104 },
105 "protocol": "rest",
106 "resources": {
107 "ampUrls": {
108 "methods": {
109 "batchGet": {
110 "description": "Returns AMP URL(s) and equivalent\n[AMP Cach e URL(s)](/amp/cache/overview#amp-cache-url-format).",
111 "httpMethod": "POST",
112 "id": "acceleratedmobilepageurl.ampUrls.batchGet",
113 "parameterOrder": [],
114 "parameters": {},
115 "path": "v1/ampUrls:batchGet",
116 "request": {
117 "$ref": "BatchGetAmpUrlsRequest"
118 },
119 "response": {
120 "$ref": "BatchGetAmpUrlsResponse"
121 }
122 }
123 }
124 }
125 },
126 "revision": "20160524",
127 "rootUrl": "https://acceleratedmobilepageurl.googleapis.com/",
128 "schemas": {
129 "AmpUrl": {
130 "description": "AMP URL response for a requested URL.",
131 "id": "AmpUrl",
132 "properties": {
133 "ampUrl": {
134 "description": "The AMP URL pointing to the publisher's web server.",
135 "type": "string"
136 },
137 "originalUrl": {
138 "description": "The original non-AMP URL.",
139 "type": "string"
140 },
141 "cdnAmpUrl": {
142 "description": "The [AMP Cache URL](/amp/cache/overview#amp- cache-url-format) pointing to the cached document in the Google AMP Cache.",
143 "type": "string"
144 }
145 },
146 "type": "object"
147 },
148 "AmpUrlError": {
149 "description": "AMP URL Error resource for a requested URL that coul dn't be found.",
150 "id": "AmpUrlError",
151 "properties": {
152 "originalUrl": {
153 "description": "The original non-AMP URL.",
154 "type": "string"
155 },
156 "errorCode": {
157 "description": "The error code of an API call.",
158 "enum": [
159 "ERROR_CODE_UNSPECIFIED",
160 "INPUT_URL_NOT_FOUND",
161 "NO_AMP_URL",
162 "APPLICATION_ERROR",
163 "URL_IS_VALID_AMP",
164 "URL_IS_INVALID_AMP"
165 ],
166 "enumDescriptions": [
167 "Not specified error.",
168 "Indicates the requested URL is not found for some reaso n -- for example,\nwe receive an HTTP error code 404 when it is crawled.",
169 "Indicates no AMP URL has been found in the HTML of the requested URL.",
170 "Indicates some kind of application error occurred at th e server.\nClient advised to retry.",
171 "Indicates the requested URL is a valid AMP URL.",
172 "Indicates that the requested URL is an invalid AMP URL. "
173 ],
174 "type": "string"
175 },
176 "errorMessage": {
177 "description": "An optional descriptive error message.",
178 "type": "string"
179 }
180 },
181 "type": "object"
182 },
183 "BatchGetAmpUrlsRequest": {
184 "description": "AMP URL request for a batch of URLs.",
185 "id": "BatchGetAmpUrlsRequest",
186 "properties": {
187 "urls": {
188 "description": "List of URLs to look up for the paired AMP U RLs.\nThe URLs are case-sensitive. Up to 10 URLs per lookup\n(see [Usage Limits] (/amp/cache/reference/limits)).",
189 "items": {
190 "type": "string"
191 },
192 "type": "array"
193 }
194 },
195 "type": "object"
196 },
197 "BatchGetAmpUrlsResponse": {
198 "description": "Batch AMP URL response.",
199 "id": "BatchGetAmpUrlsResponse",
200 "properties": {
201 "urlErrors": {
202 "description": "The errors for requested URLs that have no A MP URL.",
203 "items": {
204 "$ref": "AmpUrlError"
205 },
206 "type": "array"
207 },
208 "ampUrls": {
209 "description": "For each URL in BatchAmpUrlsRequest, the URL response. The response might\nnot be in the same order as URLs in the batch req uest.\nIf BatchAmpUrlsRequest contains duplicate URLs, AmpUrl is generated\nonly once.",
210 "items": {
211 "$ref": "AmpUrl"
212 },
213 "type": "array"
214 }
215 },
216 "type": "object"
217 }
218 },
219 "servicePath": "",
220 "title": "Accelerated Mobile Pages (AMP) URL API",
221 "version": "v1"
222 }
OLDNEW
« no previous file with comments | « config.yaml ('k') | discovery/googleapis/adsense__v1.4.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698