update API descriptions

This commit is contained in:
Sebastian Thiel
2020-07-10 09:11:32 +08:00
parent b6ee34dcff
commit 69fb05c4e1
271 changed files with 82506 additions and 23249 deletions

View File

@@ -1,33 +1,61 @@
{
"basePath": "/webfonts/v1/",
"baseUrl": "https://www.googleapis.com/webfonts/v1/",
"basePath": "",
"baseUrl": "https://www.googleapis.com/",
"batchPath": "batch/webfonts/v1",
"description": "Accesses the metadata for all families served by Google Fonts, providing a list of families currently available (including available styles and a list of supported script subsets).",
"canonicalName": "Webfonts",
"description": "The Google Web Fonts Developer API lets you retrieve information about web fonts served\n by Google.",
"discoveryVersion": "v1",
"documentationLink": "https://developers.google.com/fonts/docs/developer_api",
"etag": "\"u9GIe6H63LSGq-9_t39K2Zx_EAc/5_fiJZHCPuxNkgUtCVK8tszhsbo\"",
"icons": {
"x16": "https://www.google.com/images/icons/feature/font_api-16.png",
"x32": "https://www.google.com/images/icons/feature/font_api-32.gif"
"x16": "http://www.google.com/images/icons/product/search-16.gif",
"x32": "http://www.google.com/images/icons/product/search-32.gif"
},
"id": "webfonts:v1",
"kind": "discovery#restDescription",
"mtlsRootUrl": "https://www.mtls.googleapis.com/",
"name": "webfonts",
"ownerDomain": "google.com",
"ownerName": "Google",
"parameters": {
"alt": {
"default": "json",
"description": "Data format for the response.",
"$.xgafv": {
"description": "V1 error format.",
"enum": [
"json"
"1",
"2"
],
"enumDescriptions": [
"Responses with Content-Type of application/json"
"v1 error format",
"v2 error format"
],
"location": "query",
"type": "string"
},
"access_token": {
"description": "OAuth access token.",
"location": "query",
"type": "string"
},
"alt": {
"default": "json",
"description": "Data format for response.",
"enum": [
"json",
"media",
"proto"
],
"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",
"type": "string"
},
"callback": {
"description": "JSONP",
"location": "query",
"type": "string"
},
"fields": {
"description": "Selector specifying which fields to include in a partial response.",
"location": "query",
@@ -50,12 +78,17 @@
"type": "boolean"
},
"quotaUser": {
"description": "An opaque string that represents a user for quota purposes. Must not exceed 40 characters.",
"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.",
"location": "query",
"type": "string"
},
"userIp": {
"description": "Deprecated. Please use quotaUser instead.",
"uploadType": {
"description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
"location": "query",
"type": "string"
},
"upload_protocol": {
"description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
"location": "query",
"type": "string"
}
@@ -65,31 +98,27 @@
"webfonts": {
"methods": {
"list": {
"description": "Retrieves the list of fonts currently served by the Google Fonts Developer API",
"description": "Retrieves the list of fonts currently served by the Google Fonts Developer\nAPI.",
"flatPath": "v1/webfonts",
"httpMethod": "GET",
"id": "webfonts.webfonts.list",
"parameterOrder": [],
"parameters": {
"sort": {
"description": "Enables sorting of the list",
"description": "Enables sorting of the list.",
"enum": [
"alpha",
"date",
"popularity",
"style",
"trending"
],
"enumDescriptions": [
"Sort alphabetically",
"Sort by date added",
"Sort by popularity",
"Sort by number of styles",
"Sort by trending"
"SORT_UNDEFINED",
"ALPHA",
"DATE",
"POPULARITY",
"STYLE",
"TRENDING"
],
"location": "query",
"type": "string"
}
},
"path": "webfonts",
"path": "v1/webfonts",
"response": {
"$ref": "WebfontList"
}
@@ -97,10 +126,11 @@
}
}
},
"revision": "20200302",
"revision": "20200706",
"rootUrl": "https://www.googleapis.com/",
"schemas": {
"Webfont": {
"description": "Metadata describing a family of fonts.",
"id": "Webfont",
"properties": {
"category": {
@@ -113,20 +143,17 @@
},
"files": {
"additionalProperties": {
"description": "The font file URL (value) for an specific variant (key).",
"type": "string"
},
"description": "The font files (with all supported scripts) for each one of the available variants, as a key : value map.",
"description": "The font files (with all supported scripts) for each one of the available\nvariants, as a key : value map.",
"type": "object"
},
"kind": {
"default": "webfonts#webfont",
"description": "This kind represents a webfont object in the webfonts service.",
"type": "string"
},
"lastModified": {
"description": "The date (format \"yyyy-MM-dd\") the font was modified for the last time.",
"format": "date",
"type": "string"
},
"subsets": {
@@ -151,6 +178,7 @@
"type": "object"
},
"WebfontList": {
"description": "Response containing the list of fonts currently served by the\nGoogle Fonts API.",
"id": "WebfontList",
"properties": {
"items": {
@@ -161,7 +189,6 @@
"type": "array"
},
"kind": {
"default": "webfonts#webfontList",
"description": "This kind represents a list of webfont objects in the webfonts service.",
"type": "string"
}
@@ -169,7 +196,7 @@
"type": "object"
}
},
"servicePath": "webfonts/v1/",
"title": "Google Fonts Developer API",
"servicePath": "",
"title": "Web Fonts Developer API",
"version": "v1"
}