खोज से जुड़ा दस्तावेज़: सूची
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
इस एंडपॉइंट पर काम करने वाले एपीआई की सूची फिर से पाएं.
इसे अभी आज़माएं.
डिस्कवरी.apis.list तरीके से, Google API डिस्कवरी सर्विस पर काम करने वाले सभी एपीआई की सूची मिलती है. हर एंट्री का डेटा, उस एपीआई के डिस्कवरी दस्तावेज़ का सबसेट होता है. सूची में, काम करने वाले एपीआई की डायरेक्ट्री होती है. अगर किसी खास एपीआई के कई वर्शन हैं, तो हर वर्शन की सूची में अलग एंट्री होती है.
अनुरोध करें
एचटीटीपी अनुरोध
GET https://discovery.googleapis.com/discovery/v1/apis
पैरामीटर
पैरामीटर का नाम |
वैल्यू |
ब्यौरा |
ज़रूरी पैरामीटर |
name |
string |
सिर्फ़ दिए गए नाम के साथ एपीआई शामिल करें.
|
preferred |
boolean |
एपीआई का सिर्फ़ पसंदीदा वर्शन दिखाएं. "false " डिफ़ॉल्ट रूप से.
|
अनुरोध का मुख्य भाग
इस तरीके से अनुरोध का मुख्य हिस्सा न दें.
रिस्पॉन्स
अगर इस तरीके का इस्तेमाल किया जाता है, तो जवाब के मुख्य हिस्से में यह स्ट्रक्चर मौजूद होता है:
{
"kind": "discovery#directoryList",
"discoveryVersion": "v1",
"items": [
{
"kind": "discovery#directoryItem",
"id": string,
"name": string,
"version": string,
"title": string,
"description": string,
"discoveryRestUrl": string,
"discoveryLink": string,
"icons": {
"x16": string,
"x32": string
},
"documentationLink": string,
"labels": [
string
],
"preferred": boolean
}
]
}
प्रॉपर्टी का नाम |
वैल्यू |
ब्यौरा |
नोट |
kind |
string |
तय की गई स्ट्रिंग की खोज#directoryList |
|
discoveryVersion |
string |
इस दस्तावेज़ को जनरेट करने के लिए इस्तेमाल किए गए डिस्कवरी एपीआई के वर्शन के बारे में बताएं. |
|
items[] |
list |
हर डायरेक्ट्री की एंट्री. हर एपीआई/वर्शन जोड़े के लिए एक एंट्री. |
|
items[].kind |
string |
यह जवाब किस तरह का है. |
|
items[].id |
string |
इस एपीआई का आईडी. |
|
items[].name |
string |
एपीआई का नाम. |
|
items[].version |
string |
एपीआई का वर्शन. |
|
items[].title |
string |
इस एपीआई का शीर्षक. |
|
items[].description |
string |
इस एपीआई की जानकारी. |
|
items[].discoveryRestUrl |
string |
खोज का REST दस्तावेज़. |
|
items[].discoveryLink |
string |
डिस्कवरी दस्तावेज़ का लिंक. |
|
items[].icons |
object |
एपीआई का प्रतिनिधित्व करने वाले 16x16 और 32x32 आइकॉन के लिंक. |
|
items[].icons.x16 |
string |
16x16 आइकॉन का यूआरएल. |
|
items[].icons.x32 |
string |
32x32 आइकॉन का यूआरएल. |
|
items[].documentationLink |
string |
एपीआई का मानवीय दस्तावेज़ पढ़ने के लिए लिंक. |
|
items[].labels[] |
list |
इस एपीआई की स्थिति के लिए लेबल, जैसे कि limited_availability या deprecated . |
|
items[].preferred |
boolean |
true को अगर वर्शन के तौर पर इस्तेमाल किया जाना है, तो उसे सबसे ज़्यादा इस्तेमाल करें. |
|
इसे आज़माएं!
इस तरीके को लाइव डेटा पर कॉल करने और जवाब देखने के लिए, नीचे दिए गए एक्सप्लोरर का इस्तेमाल करें.
वैकल्पिक रूप से, स्टैंडअलोन एक्सप्लोरर आज़माएं.
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2022-07-27 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2022-07-27 (UTC) को अपडेट किया गया."],[[["\u003cp\u003eThe \u003ccode\u003ediscovery.apis.list\u003c/code\u003e endpoint retrieves a list of all APIs supported by the Google APIs Discovery Service.\u003c/p\u003e\n"],["\u003cp\u003eEach API and its versions are represented as individual entries in the response.\u003c/p\u003e\n"],["\u003cp\u003eYou can filter results using optional parameters like \u003ccode\u003ename\u003c/code\u003e to include specific APIs or \u003ccode\u003epreferred\u003c/code\u003e to return only preferred versions.\u003c/p\u003e\n"],["\u003cp\u003eThe response provides comprehensive information about each API, including its ID, name, version, description, documentation link, and icons.\u003c/p\u003e\n"]]],[],null,["# Discovery Document: list\n\nRetrieve the list of APIs supported at this endpoint.\n\n\nThe `discovery.apis.list` method returns the list of all APIs supported by the\nGoogle APIs Discovery Service. The data for each entry is a subset of the Discovery Document\nfor that API, and the list provides a directory of supported APIs. If a specific API\nhas multiple versions, each of the versions has its own entry in the list.\n\nRequest\n-------\n\n### HTTP Request\n\n```\nGET https://discovery.googleapis.com/discovery/v1/apis\n```\n\n### Parameters\n\n| Parameter Name | Value | Description |\n|----------------|-----------|--------------------------------------------------------------------|\n| **Optional Parameters** |||\n| `name` | `string` | Only include APIs with the given name. |\n| `preferred` | `boolean` | Return only the preferred version of an API. \"`false`\" by default. |\n\n### Request Body\n\nDo not supply a request body with this method.\n\nResponse\n--------\n\nIf successful, this method returns a response body with the following structure:\n\n```text\n{\n \"kind\": \"discovery#directoryList\",\n \"discoveryVersion\": \"v1\",\n \"items\": [\n {\n \"kind\": \"discovery#directoryItem\",\n \"id\": string,\n \"name\": string,\n \"version\": string,\n \"title\": string,\n \"description\": string,\n \"discoveryRestUrl\": string,\n \"discoveryLink\": string,\n \"icons\": {\n \"x16\": string,\n \"x32\": string\n },\n \"documentationLink\": string,\n \"labels\": [\n string\n ],\n \"preferred\": boolean\n }\n ]\n}\n```\n\n| Property Name | Value | Description |\n|-----------------------------|-----------|------------------------------------------------------------------------------------|\n| `kind` | `string` | The fixed string discovery#directoryList |\n| `discoveryVersion` | `string` | Indicate the version of the Discovery API used to generate this doc. |\n| `items[]` | `list` | The individual directory entries. One entry per API/version pair. |\n| items[].`kind` | `string` | The kind for this response. |\n| items[].`id` | `string` | The ID of this API. |\n| items[].`name` | `string` | The name of the API. |\n| items[].`version` | `string` | The version of the API. |\n| items[].`title` | `string` | The title of this API. |\n| items[].`description` | `string` | The description of this API. |\n| items[].`discoveryRestUrl` | `string` | The url for the discovery REST document. |\n| items[].`discoveryLink` | `string` | A link to the discovery document. |\n| items[].`icons` | `object` | Links to 16x16 and 32x32 icons representing the API. |\n| items[].icons.`x16` | `string` | The url of the 16x16 icon. |\n| items[].icons.`x32` | `string` | The url of the 32x32 icon. |\n| items[].`documentationLink` | `string` | A link to human readable documentation for the API. |\n| items[].`labels[]` | `list` | Labels for the status of this API, such as `limited_availability` or `deprecated`. |\n| items[].`preferred` | `boolean` | `true` if this version is the preferred version to use. |"]]