| 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": "Searches the Google 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 "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" |
| 11 }, | 11 }, |
| 12 "id": "kgsearch:v1", | 12 "id": "kgsearch:v1", |
| 13 "kind": "discovery#restDescription", | 13 "kind": "discovery#restDescription", |
| 14 "name": "kgsearch", | 14 "name": "kgsearch", |
| 15 "ownerDomain": "google.com", | 15 "ownerDomain": "google.com", |
| 16 "ownerName": "Google", | 16 "ownerName": "Google", |
| 17 "parameters": { | 17 "parameters": { |
| 18 "pp": { | |
| 19 "default": "true", | |
| 20 "description": "Pretty-print response.", | |
| 21 "location": "query", | |
| 22 "type": "boolean" | |
| 23 }, | |
| 24 "bearer_token": { | |
| 25 "description": "OAuth bearer token.", | |
| 26 "location": "query", | |
| 27 "type": "string" | |
| 28 }, | |
| 29 "oauth_token": { | |
| 30 "description": "OAuth 2.0 token for the current user.", | |
| 31 "location": "query", | |
| 32 "type": "string" | |
| 33 }, | |
| 34 "upload_protocol": { | 18 "upload_protocol": { |
| 35 "description": "Upload protocol for media (e.g. \"raw\", \"multipart
\").", | 19 "description": "Upload protocol for media (e.g. \"raw\", \"multipart
\").", |
| 36 "location": "query", | 20 "location": "query", |
| 37 "type": "string" | 21 "type": "string" |
| 38 }, | 22 }, |
| 39 "prettyPrint": { | 23 "prettyPrint": { |
| 40 "default": "true", | 24 "default": "true", |
| 41 "description": "Returns response with indentations and line breaks."
, | 25 "description": "Returns response with indentations and line breaks."
, |
| 42 "location": "query", | 26 "location": "query", |
| 43 "type": "boolean" | 27 "type": "boolean" |
| 44 }, | 28 }, |
| 29 "fields": { |
| 30 "description": "Selector specifying which fields to include in a par
tial response.", |
| 31 "location": "query", |
| 32 "type": "string" |
| 33 }, |
| 45 "uploadType": { | 34 "uploadType": { |
| 46 "description": "Legacy upload protocol for media (e.g. \"media\", \"
multipart\").", | 35 "description": "Legacy upload protocol for media (e.g. \"media\", \"
multipart\").", |
| 47 "location": "query", | 36 "location": "query", |
| 48 "type": "string" | 37 "type": "string" |
| 49 }, | 38 }, |
| 50 "fields": { | |
| 51 "description": "Selector specifying which fields to include in a par
tial response.", | |
| 52 "location": "query", | |
| 53 "type": "string" | |
| 54 }, | |
| 55 "callback": { | |
| 56 "description": "JSONP", | |
| 57 "location": "query", | |
| 58 "type": "string" | |
| 59 }, | |
| 60 "$.xgafv": { | 39 "$.xgafv": { |
| 61 "description": "V1 error format.", | 40 "description": "V1 error format.", |
| 62 "enum": [ | 41 "enum": [ |
| 63 "1", | 42 "1", |
| 64 "2" | 43 "2" |
| 65 ], | 44 ], |
| 66 "enumDescriptions": [ | 45 "enumDescriptions": [ |
| 67 "v1 error format", | 46 "v1 error format", |
| 68 "v2 error format" | 47 "v2 error format" |
| 69 ], | 48 ], |
| 70 "location": "query", | 49 "location": "query", |
| 71 "type": "string" | 50 "type": "string" |
| 72 }, | 51 }, |
| 52 "callback": { |
| 53 "description": "JSONP", |
| 54 "location": "query", |
| 55 "type": "string" |
| 56 }, |
| 73 "alt": { | 57 "alt": { |
| 74 "default": "json", | 58 "default": "json", |
| 75 "description": "Data format for response.", | 59 "description": "Data format for response.", |
| 76 "enum": [ | 60 "enum": [ |
| 77 "json", | 61 "json", |
| 78 "media", | 62 "media", |
| 79 "proto" | 63 "proto" |
| 80 ], | 64 ], |
| 81 "enumDescriptions": [ | 65 "enumDescriptions": [ |
| 82 "Responses with Content-Type of application/json", | 66 "Responses with Content-Type of application/json", |
| 83 "Media download with context-dependent Content-Type", | 67 "Media download with context-dependent Content-Type", |
| 84 "Responses with Content-Type of application/x-protobuf" | 68 "Responses with Content-Type of application/x-protobuf" |
| 85 ], | 69 ], |
| 86 "location": "query", | 70 "location": "query", |
| 87 "type": "string" | 71 "type": "string" |
| 88 }, | 72 }, |
| 73 "access_token": { |
| 74 "description": "OAuth access token.", |
| 75 "location": "query", |
| 76 "type": "string" |
| 77 }, |
| 89 "key": { | 78 "key": { |
| 90 "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.", | 79 "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.", |
| 91 "location": "query", | 80 "location": "query", |
| 92 "type": "string" | 81 "type": "string" |
| 93 }, | 82 }, |
| 94 "access_token": { | |
| 95 "description": "OAuth access token.", | |
| 96 "location": "query", | |
| 97 "type": "string" | |
| 98 }, | |
| 99 "quotaUser": { | 83 "quotaUser": { |
| 100 "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.", | 84 "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.", |
| 101 "location": "query", | 85 "location": "query", |
| 102 "type": "string" | 86 "type": "string" |
| 87 }, |
| 88 "pp": { |
| 89 "default": "true", |
| 90 "description": "Pretty-print response.", |
| 91 "location": "query", |
| 92 "type": "boolean" |
| 93 }, |
| 94 "oauth_token": { |
| 95 "description": "OAuth 2.0 token for the current user.", |
| 96 "location": "query", |
| 97 "type": "string" |
| 98 }, |
| 99 "bearer_token": { |
| 100 "description": "OAuth bearer token.", |
| 101 "location": "query", |
| 102 "type": "string" |
| 103 } | 103 } |
| 104 }, | 104 }, |
| 105 "protocol": "rest", | 105 "protocol": "rest", |
| 106 "resources": { | 106 "resources": { |
| 107 "entities": { | 107 "entities": { |
| 108 "methods": { | 108 "methods": { |
| 109 "search": { | 109 "search": { |
| 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", | 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", |
| 111 "httpMethod": "GET", | 111 "httpMethod": "GET", |
| 112 "id": "kgsearch.entities.search", | 112 "id": "kgsearch.entities.search", |
| 113 "parameterOrder": [], | 113 "parameterOrder": [], |
| 114 "parameters": { | 114 "parameters": { |
| 115 "ids": { |
| 116 "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", |
| 117 "location": "query", |
| 118 "repeated": true, |
| 119 "type": "string" |
| 120 }, |
| 121 "limit": { |
| 122 "description": "Limits the number of entities to be
returned.", |
| 123 "format": "int32", |
| 124 "location": "query", |
| 125 "type": "integer" |
| 126 }, |
| 115 "prefix": { | 127 "prefix": { |
| 116 "description": "Enables prefix match against names a
nd aliases of entities", | 128 "description": "Enables prefix match against names a
nd aliases of entities", |
| 117 "location": "query", | 129 "location": "query", |
| 118 "type": "boolean" | 130 "type": "boolean" |
| 119 }, | 131 }, |
| 120 "query": { | 132 "query": { |
| 121 "description": "The literal query string for search.
", | 133 "description": "The literal query string for search.
", |
| 122 "location": "query", | 134 "location": "query", |
| 123 "type": "string" | 135 "type": "string" |
| 124 }, | 136 }, |
| 125 "types": { | 137 "types": { |
| 126 "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.", | 138 "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.", |
| 127 "location": "query", | 139 "location": "query", |
| 128 "repeated": true, | 140 "repeated": true, |
| 129 "type": "string" | 141 "type": "string" |
| 130 }, | 142 }, |
| 131 "indent": { | 143 "indent": { |
| 132 "description": "Enables indenting of json results.", | 144 "description": "Enables indenting of json results.", |
| 133 "location": "query", | 145 "location": "query", |
| 134 "type": "boolean" | 146 "type": "boolean" |
| 135 }, | 147 }, |
| 136 "languages": { | 148 "languages": { |
| 137 "description": "The list of language codes (defined
in ISO 693) to run the query with,\ne.g. 'en'.", | 149 "description": "The list of language codes (defined
in ISO 693) to run the query with,\ne.g. 'en'.", |
| 138 "location": "query", | 150 "location": "query", |
| 139 "repeated": true, | 151 "repeated": true, |
| 140 "type": "string" | 152 "type": "string" |
| 141 }, | |
| 142 "ids": { | |
| 143 "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", | |
| 144 "location": "query", | |
| 145 "repeated": true, | |
| 146 "type": "string" | |
| 147 }, | |
| 148 "limit": { | |
| 149 "description": "Limits the number of entities to be
returned.", | |
| 150 "format": "int32", | |
| 151 "location": "query", | |
| 152 "type": "integer" | |
| 153 } | 153 } |
| 154 }, | 154 }, |
| 155 "path": "v1/entities:search", | 155 "path": "v1/entities:search", |
| 156 "response": { | 156 "response": { |
| 157 "$ref": "SearchResponse" | 157 "$ref": "SearchResponse" |
| 158 } | 158 } |
| 159 } | 159 } |
| 160 } | 160 } |
| 161 } | 161 } |
| 162 }, | 162 }, |
| (...skipping 20 matching lines...) Expand all Loading... |
| 183 "type": "any" | 183 "type": "any" |
| 184 } | 184 } |
| 185 }, | 185 }, |
| 186 "type": "object" | 186 "type": "object" |
| 187 } | 187 } |
| 188 }, | 188 }, |
| 189 "servicePath": "", | 189 "servicePath": "", |
| 190 "title": "Knowledge Graph Search API", | 190 "title": "Knowledge Graph Search API", |
| 191 "version": "v1" | 191 "version": "v1" |
| 192 } | 192 } |
| OLD | NEW |