| OLD | NEW |
| 1 { | 1 { |
| 2 "basePath": "", | 2 "basePath": "", |
| 3 "baseUrl": "https://kgsearch.googleapis.com/", | 3 "baseUrl": "https://kgsearch.googleapis.com/", |
| 4 "batchPath": "batch", | 4 "batchPath": "batch", |
| 5 "description": "Knowledge Graph Search API allows developers to search the G
oogle Knowledge Graph for entities.", | 5 "description": "Searches the Google Knowledge Graph for entities.", |
| 6 "discoveryVersion": "v1", | 6 "discoveryVersion": "v1", |
| 7 "documentationLink": "https://developers.google.com/knowledge-graph/", | 7 "documentationLink": "https://developers.google.com/knowledge-graph/", |
| 8 "etag": "\"tbys6C40o18GZwyMen5GMkdK-3s/MyGIPHuwU0Ku04gaZJZTvYYLLEQ\"", | |
| 9 "icons": { | 8 "icons": { |
| 10 "x16": "http://www.google.com/images/icons/product/search-16.gif", | 9 "x16": "http://www.google.com/images/icons/product/search-16.gif", |
| 11 "x32": "http://www.google.com/images/icons/product/search-32.gif" | 10 "x32": "http://www.google.com/images/icons/product/search-32.gif" |
| 12 }, | 11 }, |
| 13 "id": "kgsearch:v1", | 12 "id": "kgsearch:v1", |
| 14 "kind": "discovery#restDescription", | 13 "kind": "discovery#restDescription", |
| 15 "name": "kgsearch", | 14 "name": "kgsearch", |
| 16 "ownerDomain": "google.com", | 15 "ownerDomain": "google.com", |
| 17 "ownerName": "Google", | 16 "ownerName": "Google", |
| 18 "parameters": { | 17 "parameters": { |
| 19 "access_token": { | 18 "access_token": { |
| 20 "description": "OAuth access token.", | 19 "description": "OAuth access token.", |
| 21 "location": "query", | 20 "location": "query", |
| 22 "type": "string" | 21 "type": "string" |
| 23 }, | 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 }, |
| 24 "alt": { | 50 "alt": { |
| 25 "default": "json", | 51 "default": "json", |
| 26 "description": "Data format for response.", | 52 "description": "Data format for response.", |
| 53 "enum": [ |
| 54 "json", |
| 55 "media", |
| 56 "proto" |
| 57 ], |
| 27 "enumDescriptions": [ | 58 "enumDescriptions": [ |
| 28 "Responses with Content-Type of application/json", | 59 "Responses with Content-Type of application/json", |
| 29 "Media download with context-dependent Content-Type", | 60 "Media download with context-dependent Content-Type", |
| 30 "Responses with Content-Type of application/x-protobuf" | 61 "Responses with Content-Type of application/x-protobuf" |
| 31 ], | 62 ], |
| 32 "location": "query", | 63 "location": "query", |
| 33 "type": "string" | 64 "type": "string" |
| 34 }, | 65 }, |
| 35 "bearer_token": { | 66 "$.xgafv": { |
| 36 "description": "OAuth bearer token.", | 67 "description": "V1 error format.", |
| 68 "enum": [ |
| 69 "1", |
| 70 "2" |
| 71 ], |
| 72 "enumDescriptions": [ |
| 73 "v1 error format", |
| 74 "v2 error format" |
| 75 ], |
| 37 "location": "query", | 76 "location": "query", |
| 38 "type": "string" | 77 "type": "string" |
| 39 }, | 78 }, |
| 40 "callback": { | 79 "callback": { |
| 41 "description": "JSONP", | 80 "description": "JSONP", |
| 42 "location": "query", | 81 "location": "query", |
| 43 "type": "string" | 82 "type": "string" |
| 44 }, | 83 }, |
| 45 "fields": { | |
| 46 "description": "Selector specifying which fields to include in a par
tial response.", | |
| 47 "location": "query", | |
| 48 "type": "string" | |
| 49 }, | |
| 50 "key": { | |
| 51 "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.", | |
| 52 "location": "query", | |
| 53 "type": "string" | |
| 54 }, | |
| 55 "oauth_token": { | 84 "oauth_token": { |
| 56 "description": "OAuth 2.0 token for the current user.", | 85 "description": "OAuth 2.0 token for the current user.", |
| 57 "location": "query", | 86 "location": "query", |
| 58 "type": "string" | 87 "type": "string" |
| 59 }, | 88 }, |
| 60 "pp": { | 89 "uploadType": { |
| 61 "default": "true", | 90 "description": "Legacy upload protocol for media (e.g. \"media\", \"
multipart\").", |
| 62 "description": "Pretty-print response.", | |
| 63 "location": "query", | |
| 64 "type": "boolean" | |
| 65 }, | |
| 66 "prettyPrint": { | |
| 67 "default": "true", | |
| 68 "description": "Returns response with indentations and line breaks."
, | |
| 69 "location": "query", | |
| 70 "type": "boolean" | |
| 71 }, | |
| 72 "quotaUser": { | |
| 73 "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.", | |
| 74 "location": "query", | 91 "location": "query", |
| 75 "type": "string" | 92 "type": "string" |
| 76 }, | 93 }, |
| 94 "bearer_token": { |
| 95 "description": "OAuth bearer token.", |
| 96 "location": "query", |
| 97 "type": "string" |
| 98 }, |
| 77 "upload_protocol": { | 99 "upload_protocol": { |
| 78 "description": "Upload protocol for media (e.g. \"raw\", \"multipart
\").", | 100 "description": "Upload protocol for media (e.g. \"raw\", \"multipart
\").", |
| 79 "location": "query", | 101 "location": "query", |
| 80 "type": "string" | 102 "type": "string" |
| 81 }, | |
| 82 "uploadType": { | |
| 83 "description": "Legacy upload protocol for media (e.g. \"media\", \"
multipart\").", | |
| 84 "location": "query", | |
| 85 "type": "string" | |
| 86 }, | |
| 87 "$.xgafv": { | |
| 88 "description": "V1 error format.", | |
| 89 "enumDescriptions": [ | |
| 90 "v1 error format", | |
| 91 "v2 error format" | |
| 92 ], | |
| 93 "location": "query", | |
| 94 "type": "string" | |
| 95 } | 103 } |
| 96 }, | 104 }, |
| 97 "protocol": "rest", | 105 "protocol": "rest", |
| 98 "resources": { | 106 "resources": { |
| 99 "entities": { | 107 "entities": { |
| 100 "methods": { | 108 "methods": { |
| 101 "search": { | 109 "search": { |
| 102 "description": "Searches Knowledge Graph for entities that m
atch the constraints. A list of matched entities will be returned in response, w
hich will be in JSON-LD format and compatible with http://schema.org", | 110 "description": "Searches Knowledge Graph for entities that m
atch the constraints.\nA list of matched entities will be returned in response,
which will be in\nJSON-LD format and compatible with http://schema.org", |
| 103 "httpMethod": "GET", | 111 "httpMethod": "GET", |
| 104 "id": "kgsearch.entities.search", | 112 "id": "kgsearch.entities.search", |
| 113 "parameterOrder": [], |
| 105 "parameters": { | 114 "parameters": { |
| 115 "limit": { |
| 116 "description": "Limits the number of entities to be
returned.", |
| 117 "format": "int32", |
| 118 "location": "query", |
| 119 "type": "integer" |
| 120 }, |
| 121 "ids": { |
| 122 "description": "The list of entity id to be used for
search instead of query string.\nTo specify multiple ids in the HTTP request, r
epeat the parameter in the\nURL as in ...?ids=A&ids=B", |
| 123 "location": "query", |
| 124 "repeated": true, |
| 125 "type": "string" |
| 126 }, |
| 127 "prefix": { |
| 128 "description": "Enables prefix match against names a
nd aliases of entities", |
| 129 "location": "query", |
| 130 "type": "boolean" |
| 131 }, |
| 106 "query": { | 132 "query": { |
| 107 "description": "The literal query string for search.
", | 133 "description": "The literal query string for search.
", |
| 108 "location": "query", | 134 "location": "query", |
| 109 "type": "string" | 135 "type": "string" |
| 110 }, | 136 }, |
| 111 "ids": { | |
| 112 "description": "The list of entity id to be used for
search instead of query string.", | |
| 113 "location": "query", | |
| 114 "repeated": true, | |
| 115 "type": "string" | |
| 116 }, | |
| 117 "languages": { | |
| 118 "description": "The list of language codes (defined
in ISO 693) to run the query with, e.g. 'en'.", | |
| 119 "location": "query", | |
| 120 "repeated": true, | |
| 121 "type": "string" | |
| 122 }, | |
| 123 "types": { | |
| 124 "description": "Restricts returned entities with the
se types, e.g. Person (as defined in http://schema.org/Person).", | |
| 125 "location": "query", | |
| 126 "repeated": true, | |
| 127 "type": "string" | |
| 128 }, | |
| 129 "indent": { | 137 "indent": { |
| 130 "description": "Enables indenting of json results.", | 138 "description": "Enables indenting of json results.", |
| 131 "location": "query", | 139 "location": "query", |
| 132 "type": "boolean" | 140 "type": "boolean" |
| 133 }, | 141 }, |
| 134 "prefix": { | 142 "types": { |
| 135 "description": "Enables prefix match against names a
nd aliases of entities", | 143 "description": "Restricts returned entities with the
se types, e.g. Person\n(as defined in http://schema.org/Person). If multiple typ
es are specified,\nreturned entities will contain one or more of these types.", |
| 136 "location": "query", | 144 "location": "query", |
| 137 "type": "boolean" | 145 "repeated": true, |
| 146 "type": "string" |
| 138 }, | 147 }, |
| 139 "limit": { | 148 "languages": { |
| 140 "description": "Limits the number of entities to be
returned.", | 149 "description": "The list of language codes (defined
in ISO 693) to run the query with,\ne.g. 'en'.", |
| 141 "format": "int32", | |
| 142 "location": "query", | 150 "location": "query", |
| 143 "type": "integer" | 151 "repeated": true, |
| 152 "type": "string" |
| 144 } | 153 } |
| 145 }, | 154 }, |
| 146 "path": "v1/entities:search", | 155 "path": "v1/entities:search", |
| 147 "response": { | 156 "response": { |
| 148 "$ref": "SearchResponse" | 157 "$ref": "SearchResponse" |
| 149 } | 158 } |
| 150 } | 159 } |
| 151 } | 160 } |
| 152 } | 161 } |
| 153 }, | 162 }, |
| 154 "revision": "20151215", | 163 "revision": "20170109", |
| 155 "rootUrl": "https://kgsearch.googleapis.com/", | 164 "rootUrl": "https://kgsearch.googleapis.com/", |
| 156 "schemas": { | 165 "schemas": { |
| 157 "SearchResponse": { | 166 "SearchResponse": { |
| 158 "description": "Response message includes the context and a list of
matching results which contain the detail of associated entities.", | 167 "description": "Response message includes the context and a list of
matching results\nwhich contain the detail of associated entities.", |
| 159 "id": "SearchResponse", | 168 "id": "SearchResponse", |
| 160 "properties": { | 169 "properties": { |
| 161 "context": { | 170 "@context": { |
| 162 "description": "The local context applicable for the respons
e. See more details at http://www.w3.org/TR/json-ld/#context-definitions.", | 171 "description": "The local context applicable for the respons
e. See more details at\nhttp://www.w3.org/TR/json-ld/#context-definitions.", |
| 163 "type": "any" | 172 "type": "any" |
| 164 }, | 173 }, |
| 165 "type": { | 174 "@type": { |
| 166 "description": "The schema type of top-level JSON-LD object,
e.g. ItemList.", | 175 "description": "The schema type of top-level JSON-LD object,
e.g. ItemList.", |
| 167 "type": "any" | 176 "type": "any" |
| 168 }, | 177 }, |
| 169 "itemListElement": { | 178 "itemListElement": { |
| 170 "description": "The item list of search results.", | 179 "description": "The item list of search results.", |
| 171 "items": { | 180 "items": { |
| 172 "type": "any" | 181 "type": "any" |
| 173 }, | 182 }, |
| 174 "type": "array" | 183 "type": "array" |
| 175 } | 184 } |
| 176 }, | 185 }, |
| 177 "type": "object" | 186 "type": "object" |
| 178 } | 187 } |
| 179 }, | 188 }, |
| 180 "servicePath": "", | 189 "servicePath": "", |
| 181 "title": "Knowledge Graph Search API", | 190 "title": "Knowledge Graph Search API", |
| 182 "version": "v1" | 191 "version": "v1" |
| 183 } | 192 } |
| OLD | NEW |