mirror of
https://github.com/octoleo/restic.git
synced 2024-11-16 01:57:10 +00:00
2b39f9f4b2
Among others, this updates minio-go, so that the new "eu-west-3" zone for AWS is supported.
195 lines
6.3 KiB
JSON
195 lines
6.3 KiB
JSON
{
|
|
"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"
|
|
},
|
|
"parameterOrder": [],
|
|
"httpMethod": "GET",
|
|
"parameters": {
|
|
"types": {
|
|
"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,
|
|
"location": "query"
|
|
},
|
|
"indent": {
|
|
"location": "query",
|
|
"description": "Enables indenting of json results.",
|
|
"type": "boolean"
|
|
},
|
|
"languages": {
|
|
"location": "query",
|
|
"description": "The list of language codes (defined in ISO 693) to run the query with,\ne.g. 'en'.",
|
|
"type": "string",
|
|
"repeated": true
|
|
},
|
|
"ids": {
|
|
"location": "query",
|
|
"description": "The list of entity id to be used for search instead of query string.\nTo specify multiple ids in the HTTP request, repeat the parameter in the\nURL as in ...?ids=A&ids=B",
|
|
"type": "string",
|
|
"repeated": true
|
|
},
|
|
"limit": {
|
|
"description": "Limits the number of entities to be returned.",
|
|
"format": "int32",
|
|
"type": "integer",
|
|
"location": "query"
|
|
},
|
|
"prefix": {
|
|
"description": "Enables prefix match against names and aliases of entities",
|
|
"type": "boolean",
|
|
"location": "query"
|
|
},
|
|
"query": {
|
|
"description": "The literal query string for search.",
|
|
"type": "string",
|
|
"location": "query"
|
|
}
|
|
},
|
|
"flatPath": "v1/entities:search",
|
|
"path": "v1/entities:search",
|
|
"id": "kgsearch.entities.search"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"parameters": {
|
|
"uploadType": {
|
|
"description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
|
|
"type": "string",
|
|
"location": "query"
|
|
},
|
|
"fields": {
|
|
"location": "query",
|
|
"description": "Selector specifying which fields to include in a partial response.",
|
|
"type": "string"
|
|
},
|
|
"$.xgafv": {
|
|
"enumDescriptions": [
|
|
"v1 error format",
|
|
"v2 error format"
|
|
],
|
|
"location": "query",
|
|
"enum": [
|
|
"1",
|
|
"2"
|
|
],
|
|
"description": "V1 error format.",
|
|
"type": "string"
|
|
},
|
|
"callback": {
|
|
"description": "JSONP",
|
|
"type": "string",
|
|
"location": "query"
|
|
},
|
|
"alt": {
|
|
"enumDescriptions": [
|
|
"Responses with Content-Type of application/json",
|
|
"Media download with context-dependent Content-Type",
|
|
"Responses with Content-Type of application/x-protobuf"
|
|
],
|
|
"location": "query",
|
|
"description": "Data format for response.",
|
|
"default": "json",
|
|
"enum": [
|
|
"json",
|
|
"media",
|
|
"proto"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"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"
|
|
},
|
|
"access_token": {
|
|
"description": "OAuth access token.",
|
|
"type": "string",
|
|
"location": "query"
|
|
},
|
|
"quotaUser": {
|
|
"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.",
|
|
"type": "string"
|
|
},
|
|
"pp": {
|
|
"location": "query",
|
|
"description": "Pretty-print response.",
|
|
"type": "boolean",
|
|
"default": "true"
|
|
},
|
|
"oauth_token": {
|
|
"description": "OAuth 2.0 token for the current user.",
|
|
"type": "string",
|
|
"location": "query"
|
|
},
|
|
"bearer_token": {
|
|
"location": "query",
|
|
"description": "OAuth bearer token.",
|
|
"type": "string"
|
|
},
|
|
"upload_protocol": {
|
|
"location": "query",
|
|
"description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
|
|
"type": "string"
|
|
},
|
|
"prettyPrint": {
|
|
"description": "Returns response with indentations and line breaks.",
|
|
"type": "boolean",
|
|
"default": "true",
|
|
"location": "query"
|
|
}
|
|
},
|
|
"schemas": {
|
|
"SearchResponse": {
|
|
"description": "Response message includes the context and a list of matching results\nwhich contain the detail of associated entities.",
|
|
"type": "object",
|
|
"properties": {
|
|
"@context": {
|
|
"description": "The local context applicable for the response. See more details at\nhttp://www.w3.org/TR/json-ld/#context-definitions.",
|
|
"type": "any"
|
|
},
|
|
"itemListElement": {
|
|
"description": "The item list of search results.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "any"
|
|
}
|
|
},
|
|
"@type": {
|
|
"description": "The schema type of top-level JSON-LD object, e.g. ItemList.",
|
|
"type": "any"
|
|
}
|
|
},
|
|
"id": "SearchResponse"
|
|
}
|
|
},
|
|
"protocol": "rest",
|
|
"icons": {
|
|
"x32": "http://www.google.com/images/icons/product/search-32.gif",
|
|
"x16": "http://www.google.com/images/icons/product/search-16.gif"
|
|
},
|
|
"version": "v1",
|
|
"baseUrl": "https://kgsearch.googleapis.com/",
|
|
"kind": "discovery#restDescription",
|
|
"description": "Searches the Google Knowledge Graph for entities.",
|
|
"servicePath": "",
|
|
"rootUrl": "https://kgsearch.googleapis.com/",
|
|
"basePath": "",
|
|
"ownerDomain": "google.com",
|
|
"name": "kgsearch",
|
|
"batchPath": "batch",
|
|
"revision": "20180104",
|
|
"documentationLink": "https://developers.google.com/knowledge-graph/",
|
|
"id": "kgsearch:v1"
|
|
}
|