You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

175 line
5.3 KiB

  1. {
  2. "basePath": "/webfonts/v1/",
  3. "baseUrl": "https://www.googleapis.com/webfonts/v1/",
  4. "batchPath": "batch/webfonts/v1",
  5. "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).",
  6. "discoveryVersion": "v1",
  7. "documentationLink": "https://developers.google.com/fonts/docs/developer_api",
  8. "etag": "\"Zkyw9ACJZUvcYmlFaKGChzhmtnE/DHQjC9wxAX4S-TGftTxSDlwB9vA\"",
  9. "icons": {
  10. "x16": "https://www.google.com/images/icons/feature/font_api-16.png",
  11. "x32": "https://www.google.com/images/icons/feature/font_api-32.gif"
  12. },
  13. "id": "webfonts:v1",
  14. "kind": "discovery#restDescription",
  15. "name": "webfonts",
  16. "ownerDomain": "google.com",
  17. "ownerName": "Google",
  18. "parameters": {
  19. "alt": {
  20. "default": "json",
  21. "description": "Data format for the response.",
  22. "enum": [
  23. "json"
  24. ],
  25. "enumDescriptions": [
  26. "Responses with Content-Type of application/json"
  27. ],
  28. "location": "query",
  29. "type": "string"
  30. },
  31. "fields": {
  32. "description": "Selector specifying which fields to include in a partial response.",
  33. "location": "query",
  34. "type": "string"
  35. },
  36. "key": {
  37. "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.",
  38. "location": "query",
  39. "type": "string"
  40. },
  41. "oauth_token": {
  42. "description": "OAuth 2.0 token for the current user.",
  43. "location": "query",
  44. "type": "string"
  45. },
  46. "prettyPrint": {
  47. "default": "true",
  48. "description": "Returns response with indentations and line breaks.",
  49. "location": "query",
  50. "type": "boolean"
  51. },
  52. "quotaUser": {
  53. "description": "An opaque string that represents a user for quota purposes. Must not exceed 40 characters.",
  54. "location": "query",
  55. "type": "string"
  56. },
  57. "userIp": {
  58. "description": "Deprecated. Please use quotaUser instead.",
  59. "location": "query",
  60. "type": "string"
  61. }
  62. },
  63. "protocol": "rest",
  64. "resources": {
  65. "webfonts": {
  66. "methods": {
  67. "list": {
  68. "description": "Retrieves the list of fonts currently served by the Google Fonts Developer API",
  69. "httpMethod": "GET",
  70. "id": "webfonts.webfonts.list",
  71. "parameters": {
  72. "sort": {
  73. "description": "Enables sorting of the list",
  74. "enum": [
  75. "alpha",
  76. "date",
  77. "popularity",
  78. "style",
  79. "trending"
  80. ],
  81. "enumDescriptions": [
  82. "Sort alphabetically",
  83. "Sort by date added",
  84. "Sort by popularity",
  85. "Sort by number of styles",
  86. "Sort by trending"
  87. ],
  88. "location": "query",
  89. "type": "string"
  90. }
  91. },
  92. "path": "webfonts",
  93. "response": {
  94. "$ref": "WebfontList"
  95. }
  96. }
  97. }
  98. }
  99. },
  100. "revision": "20160302",
  101. "rootUrl": "https://www.googleapis.com/",
  102. "schemas": {
  103. "Webfont": {
  104. "id": "Webfont",
  105. "properties": {
  106. "category": {
  107. "description": "The category of the font.",
  108. "type": "string"
  109. },
  110. "family": {
  111. "description": "The name of the font.",
  112. "type": "string"
  113. },
  114. "files": {
  115. "additionalProperties": {
  116. "description": "The font file URL (value) for an specific variant (key).",
  117. "type": "string"
  118. },
  119. "description": "The font files (with all supported scripts) for each one of the available variants, as a key : value map.",
  120. "type": "object"
  121. },
  122. "kind": {
  123. "default": "webfonts#webfont",
  124. "description": "This kind represents a webfont object in the webfonts service.",
  125. "type": "string"
  126. },
  127. "lastModified": {
  128. "description": "The date (format \"yyyy-MM-dd\") the font was modified for the last time.",
  129. "format": "date",
  130. "type": "string"
  131. },
  132. "subsets": {
  133. "description": "The scripts supported by the font.",
  134. "items": {
  135. "type": "string"
  136. },
  137. "type": "array"
  138. },
  139. "variants": {
  140. "description": "The available variants for the font.",
  141. "items": {
  142. "type": "string"
  143. },
  144. "type": "array"
  145. },
  146. "version": {
  147. "description": "The font version.",
  148. "type": "string"
  149. }
  150. },
  151. "type": "object"
  152. },
  153. "WebfontList": {
  154. "id": "WebfontList",
  155. "properties": {
  156. "items": {
  157. "description": "The list of fonts currently served by the Google Fonts API.",
  158. "items": {
  159. "$ref": "Webfont"
  160. },
  161. "type": "array"
  162. },
  163. "kind": {
  164. "default": "webfonts#webfontList",
  165. "description": "This kind represents a list of webfont objects in the webfonts service.",
  166. "type": "string"
  167. }
  168. },
  169. "type": "object"
  170. }
  171. },
  172. "servicePath": "webfonts/v1/",
  173. "title": "Google Fonts Developer API",
  174. "version": "v1"
  175. }