| OLD | NEW |
| 1 { | 1 { |
| 2 "basePath": "", | 2 "basePath": "", |
| 3 "baseUrl": "https://acceleratedmobilepageurl.googleapis.com/", | 3 "baseUrl": "https://acceleratedmobilepageurl.googleapis.com/", |
| 4 "batchPath": "batch", | 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", | 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", | 6 "discoveryVersion": "v1", |
| 7 "documentationLink": "https://developers.google.com/amp/cache/", | 7 "documentationLink": "https://developers.google.com/amp/cache/", |
| 8 "icons": { | 8 "icons": { |
| 9 "x16": "http://www.google.com/images/icons/product/search-16.gif", | 9 "x16": "http://www.google.com/images/icons/product/search-16.gif", |
| 10 "x32": "http://www.google.com/images/icons/product/search-32.gif" | 10 "x32": "http://www.google.com/images/icons/product/search-32.gif" |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 "request": { | 116 "request": { |
| 117 "$ref": "BatchGetAmpUrlsRequest" | 117 "$ref": "BatchGetAmpUrlsRequest" |
| 118 }, | 118 }, |
| 119 "response": { | 119 "response": { |
| 120 "$ref": "BatchGetAmpUrlsResponse" | 120 "$ref": "BatchGetAmpUrlsResponse" |
| 121 } | 121 } |
| 122 } | 122 } |
| 123 } | 123 } |
| 124 } | 124 } |
| 125 }, | 125 }, |
| 126 "revision": "20160621", | 126 "revision": "20160728", |
| 127 "rootUrl": "https://acceleratedmobilepageurl.googleapis.com/", | 127 "rootUrl": "https://acceleratedmobilepageurl.googleapis.com/", |
| 128 "schemas": { | 128 "schemas": { |
| 129 "AmpUrl": { | 129 "AmpUrl": { |
| 130 "description": "AMP URL response for a requested URL.", | 130 "description": "AMP URL response for a requested URL.", |
| 131 "id": "AmpUrl", | 131 "id": "AmpUrl", |
| 132 "properties": { | 132 "properties": { |
| 133 "ampUrl": { | 133 "ampUrl": { |
| 134 "description": "The AMP URL pointing to the publisher's web
server.", | 134 "description": "The AMP URL pointing to the publisher's web
server.", |
| 135 "type": "string" | 135 "type": "string" |
| 136 }, | 136 }, |
| (...skipping 21 matching lines...) Expand all Loading... |
| 158 "enum": [ | 158 "enum": [ |
| 159 "ERROR_CODE_UNSPECIFIED", | 159 "ERROR_CODE_UNSPECIFIED", |
| 160 "INPUT_URL_NOT_FOUND", | 160 "INPUT_URL_NOT_FOUND", |
| 161 "NO_AMP_URL", | 161 "NO_AMP_URL", |
| 162 "APPLICATION_ERROR", | 162 "APPLICATION_ERROR", |
| 163 "URL_IS_VALID_AMP", | 163 "URL_IS_VALID_AMP", |
| 164 "URL_IS_INVALID_AMP" | 164 "URL_IS_INVALID_AMP" |
| 165 ], | 165 ], |
| 166 "enumDescriptions": [ | 166 "enumDescriptions": [ |
| 167 "Not specified error.", | 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.", | 168 "Indicates the requested URL is not found in the index,
possibly because\nit's unable to be found, not able to be accessed by Googlebot,
or some\nother error.", |
| 169 "Indicates no AMP URL has been found in the HTML of the
requested URL.", | 169 "Indicates no AMP URL has been found that corresponds to
the requested\nURL.", |
| 170 "Indicates some kind of application error occurred at th
e server.\nClient advised to retry.", | 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.\nDEPREC
ATED: API no longer returns URL_IS_INVALID_AMP error code and will\nbe removed i
n API version 2. Instead of returning error, the requested\nURL is returned as a
n AMP URL in AmpUrl response.", | 171 "DEPRECATED: Indicates the requested URL is a valid AMP
URL. This is a\nnon-error state, should not be relied upon as a sign of success
or\nfailure. It will be removed in future versions of the API.", |
| 172 "Indicates that the requested URL is an invalid AMP URL.
" | 172 "Indicates that an AMP URL has been found that correspon
ds to the request\nURL, but it is not valid AMP HTML." |
| 173 ], | 173 ], |
| 174 "type": "string" | 174 "type": "string" |
| 175 }, | 175 }, |
| 176 "errorMessage": { | 176 "errorMessage": { |
| 177 "description": "An optional descriptive error message.", | 177 "description": "An optional descriptive error message.", |
| 178 "type": "string" | 178 "type": "string" |
| 179 } | 179 } |
| 180 }, | 180 }, |
| 181 "type": "object" | 181 "type": "object" |
| 182 }, | 182 }, |
| 183 "BatchGetAmpUrlsRequest": { | 183 "BatchGetAmpUrlsRequest": { |
| 184 "description": "AMP URL request for a batch of URLs.", | 184 "description": "AMP URL request for a batch of URLs.", |
| 185 "id": "BatchGetAmpUrlsRequest", | 185 "id": "BatchGetAmpUrlsRequest", |
| 186 "properties": { | 186 "properties": { |
| 187 "lookupStrategy": { | 187 "lookupStrategy": { |
| 188 "description": "The lookup_strategy being requested.", | 188 "description": "The lookup_strategy being requested.", |
| 189 "enum": [ | 189 "enum": [ |
| 190 "FETCH_LIVE_DOC", | 190 "FETCH_LIVE_DOC", |
| 191 "IN_INDEX_DOC" | 191 "IN_INDEX_DOC" |
| 192 ], | 192 ], |
| 193 "enumDescriptions": [ | 193 "enumDescriptions": [ |
| 194 "FETCH_LIVE_DOC strategy involves live document fetch of
URLs not found in\nthe index. Any request URL not found in the index is crawled
in realtime\nto validate if there is a corresponding AMP URL. This strategy has
higher\ncoverage but with extra latency introduced by realtime crawling. This i
s\nthe default strategy. Applications using this strategy should set higher\nHTT
P timeouts of the API calls.", | 194 "FETCH_LIVE_DOC strategy involves live document fetch of
URLs not found in\nthe index. Any request URL not found in the index is crawled
in realtime\nto validate if there is a corresponding AMP URL. This strategy has
higher\ncoverage but with extra latency introduced by realtime crawling. This i
s\nthe default strategy. Applications using this strategy should set higher\nHTT
P timeouts of the API calls.", |
| 195 "IN_INDEX_DOC strategy skips fetching live documents of
URL(s) not found\nin index. For applications which need low latency use of IN_IN
DEX_DOC\nstrategy is recommended." | 195 "IN_INDEX_DOC strategy skips fetching live documents of
URL(s) not found\nin index. For applications which need low latency use of IN_IN
DEX_DOC\nstrategy is recommended." |
| 196 ], | 196 ], |
| 197 "type": "string" | 197 "type": "string" |
| 198 }, | 198 }, |
| 199 "urls": { | 199 "urls": { |
| 200 "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)).", | 200 "description": "List of URLs to look up for the paired AMP U
RLs.\nThe URLs are case-sensitive. Up to 50 URLs per lookup\n(see [Usage Limits]
(/amp/cache/reference/limits)).", |
| 201 "items": { | 201 "items": { |
| 202 "type": "string" | 202 "type": "string" |
| 203 }, | 203 }, |
| 204 "type": "array" | 204 "type": "array" |
| 205 } | 205 } |
| 206 }, | 206 }, |
| 207 "type": "object" | 207 "type": "object" |
| 208 }, | 208 }, |
| 209 "BatchGetAmpUrlsResponse": { | 209 "BatchGetAmpUrlsResponse": { |
| 210 "description": "Batch AMP URL response.", | 210 "description": "Batch AMP URL response.", |
| (...skipping 14 matching lines...) Expand all Loading... |
| 225 "type": "array" | 225 "type": "array" |
| 226 } | 226 } |
| 227 }, | 227 }, |
| 228 "type": "object" | 228 "type": "object" |
| 229 } | 229 } |
| 230 }, | 230 }, |
| 231 "servicePath": "", | 231 "servicePath": "", |
| 232 "title": "Accelerated Mobile Pages (AMP) URL API", | 232 "title": "Accelerated Mobile Pages (AMP) URL API", |
| 233 "version": "v1" | 233 "version": "v1" |
| 234 } | 234 } |
| OLD | NEW |