mirror of
https://github.com/OMGeeky/google-apis-rs.git
synced 2026-02-23 15:49:49 +01:00
Update to latest versions of API declarations
This commit is contained in:
@@ -1,12 +1,20 @@
|
||||
{
|
||||
"discoveryVersion": "v1",
|
||||
"rootUrl": "https://kgsearch.googleapis.com/",
|
||||
"basePath": "",
|
||||
"ownerDomain": "google.com",
|
||||
"name": "kgsearch",
|
||||
"batchPath": "batch",
|
||||
"id": "kgsearch:v1",
|
||||
"documentationLink": "https://developers.google.com/knowledge-graph/",
|
||||
"revision": "20180809",
|
||||
"title": "Knowledge Graph Search API",
|
||||
"ownerName": "Google",
|
||||
"discoveryVersion": "v1",
|
||||
"version_module": true,
|
||||
"resources": {
|
||||
"entities": {
|
||||
"methods": {
|
||||
"search": {
|
||||
"description": "Searches Knowledge Graph for entities that match 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",
|
||||
"response": {
|
||||
"$ref": "SearchResponse"
|
||||
},
|
||||
@@ -14,10 +22,10 @@
|
||||
"httpMethod": "GET",
|
||||
"parameters": {
|
||||
"types": {
|
||||
"repeated": true,
|
||||
"location": "query",
|
||||
"description": "Restricts returned entities with these types, e.g. Person\n(as defined in http://schema.org/Person). If multiple types are specified,\nreturned entities will contain one or more of these types.",
|
||||
"type": "string",
|
||||
"repeated": true
|
||||
"type": "string"
|
||||
},
|
||||
"indent": {
|
||||
"description": "Enables indenting of json results.",
|
||||
@@ -37,10 +45,10 @@
|
||||
"location": "query"
|
||||
},
|
||||
"limit": {
|
||||
"location": "query",
|
||||
"description": "Limits the number of entities to be returned.",
|
||||
"format": "int32",
|
||||
"type": "integer"
|
||||
"type": "integer",
|
||||
"location": "query"
|
||||
},
|
||||
"prefix": {
|
||||
"location": "query",
|
||||
@@ -55,61 +63,56 @@
|
||||
},
|
||||
"flatPath": "v1/entities:search",
|
||||
"path": "v1/entities:search",
|
||||
"id": "kgsearch.entities.search"
|
||||
"id": "kgsearch.entities.search",
|
||||
"description": "Searches Knowledge Graph for entities that match 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"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"parameters": {
|
||||
"pp": {
|
||||
"location": "query",
|
||||
"description": "Pretty-print response.",
|
||||
"type": "boolean",
|
||||
"default": "true"
|
||||
},
|
||||
"oauth_token": {
|
||||
"location": "query",
|
||||
"description": "OAuth 2.0 token for the current user.",
|
||||
"type": "string"
|
||||
},
|
||||
"bearer_token": {
|
||||
"description": "OAuth bearer token.",
|
||||
"upload_protocol": {
|
||||
"description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
},
|
||||
"upload_protocol": {
|
||||
"location": "query",
|
||||
"description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
|
||||
"type": "string"
|
||||
},
|
||||
"prettyPrint": {
|
||||
"location": "query",
|
||||
"description": "Returns response with indentations and line breaks.",
|
||||
"type": "boolean",
|
||||
"default": "true"
|
||||
"default": "true",
|
||||
"location": "query"
|
||||
},
|
||||
"quotaUser": {
|
||||
"description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.",
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
},
|
||||
"uploadType": {
|
||||
"description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
},
|
||||
"fields": {
|
||||
"description": "Selector specifying which fields to include in a partial response.",
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
},
|
||||
"uploadType": {
|
||||
"location": "query",
|
||||
"description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
|
||||
"type": "string"
|
||||
},
|
||||
"$.xgafv": {
|
||||
"enum": [
|
||||
"1",
|
||||
"2"
|
||||
],
|
||||
"description": "V1 error format.",
|
||||
"type": "string",
|
||||
"enumDescriptions": [
|
||||
"v1 error format",
|
||||
"v2 error format"
|
||||
],
|
||||
"location": "query",
|
||||
"enum": [
|
||||
"1",
|
||||
"2"
|
||||
]
|
||||
"location": "query"
|
||||
},
|
||||
"oauth_token": {
|
||||
"description": "OAuth 2.0 token for the current user.",
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
},
|
||||
"callback": {
|
||||
"location": "query",
|
||||
@@ -117,6 +120,11 @@
|
||||
"type": "string"
|
||||
},
|
||||
"alt": {
|
||||
"enum": [
|
||||
"json",
|
||||
"media",
|
||||
"proto"
|
||||
],
|
||||
"type": "string",
|
||||
"enumDescriptions": [
|
||||
"Responses with Content-Type of application/json",
|
||||
@@ -125,26 +133,16 @@
|
||||
],
|
||||
"location": "query",
|
||||
"description": "Data format for response.",
|
||||
"default": "json",
|
||||
"enum": [
|
||||
"json",
|
||||
"media",
|
||||
"proto"
|
||||
]
|
||||
},
|
||||
"access_token": {
|
||||
"description": "OAuth access token.",
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
"default": "json"
|
||||
},
|
||||
"key": {
|
||||
"description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
},
|
||||
"quotaUser": {
|
||||
"access_token": {
|
||||
"location": "query",
|
||||
"description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.",
|
||||
"description": "OAuth access token.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
@@ -153,6 +151,10 @@
|
||||
"description": "Response message includes the context and a list of matching results\nwhich contain the detail of associated entities.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"@type": {
|
||||
"description": "The schema type of top-level JSON-LD object, e.g. ItemList.",
|
||||
"type": "any"
|
||||
},
|
||||
"@context": {
|
||||
"description": "The local context applicable for the response. See more details at\nhttp://www.w3.org/TR/json-ld/#context-definitions.",
|
||||
"type": "any"
|
||||
@@ -163,10 +165,6 @@
|
||||
"items": {
|
||||
"type": "any"
|
||||
}
|
||||
},
|
||||
"@type": {
|
||||
"description": "The schema type of top-level JSON-LD object, e.g. ItemList.",
|
||||
"type": "any"
|
||||
}
|
||||
},
|
||||
"id": "SearchResponse"
|
||||
@@ -179,16 +177,7 @@
|
||||
},
|
||||
"version": "v1",
|
||||
"baseUrl": "https://kgsearch.googleapis.com/",
|
||||
"servicePath": "",
|
||||
"description": "Searches the Google Knowledge Graph for entities.",
|
||||
"kind": "discovery#restDescription",
|
||||
"rootUrl": "https://kgsearch.googleapis.com/",
|
||||
"basePath": "",
|
||||
"ownerDomain": "google.com",
|
||||
"name": "kgsearch",
|
||||
"batchPath": "batch",
|
||||
"revision": "20171103",
|
||||
"documentationLink": "https://developers.google.com/knowledge-graph/",
|
||||
"id": "kgsearch:v1",
|
||||
"title": "Knowledge Graph Search API"
|
||||
"description": "Searches the Google Knowledge Graph for entities.",
|
||||
"servicePath": ""
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user