{"id":15040,"date":"2024-05-11T15:42:22","date_gmt":"2024-05-11T07:42:22","guid":{"rendered":"https:\/\/www.aisharenet.com\/?p=15040"},"modified":"2025-01-07T17:45:49","modified_gmt":"2025-01-07T09:45:49","slug":"difyzidingyigongjuai","status":"publish","type":"post","link":"https:\/\/www.kdjingpai.com\/en\/difyzidingyigongjuai\/","title":{"rendered":"Dify\u81ea\u5b9a\u4e49\u5de5\u5177\u4f8b\u5b50"},"content":{"rendered":"<h2>1.\u5929\u6c14\uff08JSON\uff09<\/h2>\n<pre><code>{\r\n\"openapi\": \"3.1.0\",\r\n\"info\": {\r\n\"title\": \"Get weather data\",\r\n\"description\": \"Retrieves current weather data for a location.\",\r\n\"version\": \"v1.0.0\"\r\n},\r\n\"servers\": [\r\n{\r\n\"url\": \"https:\/\/weather.example.com\"\r\n}\r\n],\r\n\"paths\": {\r\n\"\/location\": {\r\n\"get\": {\r\n\"description\": \"Get temperature for a specific location\",\r\n\"operationId\": \"GetCurrentWeather\",\r\n\"parameters\": [\r\n{\r\n\"name\": \"location\",\r\n\"in\": \"query\",\r\n\"description\": \"The city and state to retrieve the weather for\",\r\n\"required\": true,\r\n\"schema\": {\r\n\"type\": \"string\"\r\n}\r\n}\r\n],\r\n\"deprecated\": false\r\n}\r\n}\r\n},\r\n\"components\": {\r\n\"schemas\": {}\r\n}\r\n}\r\n<\/code><\/pre>\n<p>\u8fd9\u6bb5\u4ee3\u7801\u662f\u4e00\u4e2aOpenAPI\u89c4\u8303\u7684JSON\u6587\u4ef6\uff0c\u7528\u4e8e\u63cf\u8ff0\u4e00\u4e2a\u83b7\u53d6\u5929\u6c14\u6570\u636e\u7684API\u3002\u603b\u7684\u6765\u8bf4\uff0c\u8fd9\u4e2aAPI\u5141\u8bb8\u7528\u6237\u67e5\u8be2\u7279\u5b9a\u4f4d\u7f6e\u7684\u5929\u6c14\u6570\u636e\u3002<\/p>\n<ul>\n<li><code>\"openapi\": \"3.1.0\"<\/code>\uff1a\u8fd9\u8868\u793a\u4f7f\u7528\u7684OpenAPI\u89c4\u8303\u7684\u7248\u672c\u662f3.1.0\u3002<\/li>\n<li><code>\"info\"<\/code>\uff1a\u8fd9\u90e8\u5206\u63d0\u4f9b\u4e86API\u7684\u57fa\u672c\u4fe1\u606f\uff0c\u5305\u62ec\u6807\u9898\u3001\u63cf\u8ff0\u548c\u7248\u672c\u3002<\/li>\n<li><code>\"servers\"<\/code>\uff1a\u8fd9\u90e8\u5206\u5217\u51fa\u4e86API\u7684\u670d\u52a1\u5668URL\u3002<\/li>\n<li><code>\"paths\"<\/code>\uff1a\u8fd9\u90e8\u5206\u5b9a\u4e49\u4e86API\u7684\u8def\u5f84\u548c\u64cd\u4f5c\u3002\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u6709\u4e00\u4e2aGET\u64cd\u4f5c\uff0c\u8def\u5f84\u662f<code>\/location<\/code>\uff0c\u7528\u4e8e\u83b7\u53d6\u7279\u5b9a\u4f4d\u7f6e\u7684\u5929\u6c14\u3002\u8fd9\u4e2a\u64cd\u4f5c\u9700\u8981\u4e00\u4e2a\u540d\u4e3a<code>location<\/code>\u7684\u67e5\u8be2\u53c2\u6570\uff0c\u8fd9\u4e2a\u53c2\u6570\u662f\u5fc5\u9700\u7684\uff0c\u7c7b\u578b\u662f\u5b57\u7b26\u4e32\u3002<\/li>\n<li><code>\"components\"<\/code>\uff1a\u8fd9\u90e8\u5206\u7528\u4e8e\u5b9a\u4e49API\u4e2d\u4f7f\u7528\u7684\u6a21\u5f0f\uff0c\u4f46\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u5b83\u662f\u7a7a\u7684\u3002<\/li>\n<\/ul>\n<p>\u5728OpenAPI\u89c4\u8303\u4e2d\uff0c<code>parameters<\/code>\u662f\u4e00\u4e2a\u6570\u7ec4\uff0c\u7528\u4e8e\u5b9a\u4e49API\u64cd\u4f5c\u7684\u8f93\u5165\u53c2\u6570\u3002<code>parameters<\/code>\u5b9a\u4e49\u4e86\u4e00\u4e2a\u540d\u4e3a<code>location<\/code>\u7684\u67e5\u8be2\u53c2\u6570\uff0c\u8fd9\u4e2a\u53c2\u6570\u662f\u5fc5\u9700\u7684\uff0c\u7c7b\u578b\u662f\u5b57\u7b26\u4e32\u3002\u6bcf\u4e2a\u53c2\u6570\u90fd\u662f\u4e00\u4e2a\u5bf9\u8c61\uff0c\u5305\u542b\u4ee5\u4e0b\u5c5e\u6027\uff1a<\/p>\n<ul>\n<li><code>\"name\"<\/code>\uff1a\u53c2\u6570\u7684\u540d\u79f0\u3002<\/li>\n<li><code>\"in\"<\/code>\uff1a\u53c2\u6570\u7684\u4f4d\u7f6e\u3002\u53ef\u4ee5\u662f<code>\"query\"<\/code>,\u00a0<code>\"header\"<\/code>,\u00a0<code>\"path\"<\/code>\u6216<code>\"cookie\"<\/code>\u3002<\/li>\n<li><code>\"description\"<\/code>\uff1a\u53c2\u6570\u7684\u63cf\u8ff0\u3002<\/li>\n<li><code>\"required\"<\/code>\uff1a\u5982\u679c\u4e3a<code>true<\/code>\uff0c\u5219\u6b64\u53c2\u6570\u662f\u5fc5\u9700\u7684\u3002<\/li>\n<li><code>\"schema\"<\/code>\uff1a\u53c2\u6570\u7684\u6570\u636e\u7c7b\u578b\u3002<\/li>\n<\/ul>\n<p>\u91cd\u70b9\u4ecb\u7ecd\u4e0b\u53c2\u6570\u7684\u4f4d\u7f6e\uff0c4\u79cd\u60c5\u51b5\u5982\u4e0b\u6240\u793a\uff1a<\/p>\n<ul>\n<li>header\u53c2\u6570\uff0c\u7528\u4e8e\u5728\u8bf7\u6c42\u5934\u4e2d\u4f20\u9012API\u5bc6\u94a5\u3002<\/li>\n<li>path\u53c2\u6570\uff0c\u7528\u4e8e\u5728URL\u8def\u5f84\u4e2d\u6307\u5b9a\u8981\u68c0\u7d22\u7684\u5bf9\u8c61\u7684ID\u3002<\/li>\n<li>cookie\u53c2\u6570\uff0c\u7528\u4e8e\u5728cookie\u4e2d\u4f20\u9012\u7528\u6237\u7684\u4f1a\u8bddID\u3002<\/li>\n<li>query\u53c2\u6570\uff0c\u9644\u52a0\u5728URL\u540e\u9762\u7684\u53c2\u6570\uff0c\u901a\u5e38\u7528\u4e8e\u63d0\u4f9b\u4fe1\u606f\u8fc7\u6ee4\u3002<\/li>\n<\/ul>\n<p>\u521b\u5efa\u81ea\u5b9a\u4e49\u5de5\u5177\u754c\u9762\uff1a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-15043\" title=\"Dify\u81ea\u5b9a\u4e49\u5de5\u5177\u4f8b\u5b50-1\" src=\"https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2024\/12\/17c531b9e30738d-7.jpg\" alt=\"Dify\u81ea\u5b9a\u4e49\u5de5\u5177\u4f8b\u5b50-1\" width=\"1920\" height=\"919\" srcset=\"https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2024\/12\/17c531b9e30738d-7.jpg 1920w, https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2024\/12\/17c531b9e30738d-7-300x144.jpg 300w, https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2024\/12\/17c531b9e30738d-7-1024x490.jpg 1024w, https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2024\/12\/17c531b9e30738d-7-768x368.jpg 768w, https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2024\/12\/17c531b9e30738d-7-1536x735.jpg 1536w, https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2024\/12\/17c531b9e30738d-7-18x9.jpg 18w\" sizes=\"auto, (max-width: 1920px) 100vw, 1920px\" \/><\/p>\n<p>\u6d4b\u8bd5\u5de5\u5177\u63a5\u53e3\u754c\u9762\uff1a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-15042\" title=\"Dify\u81ea\u5b9a\u4e49\u5de5\u5177\u4f8b\u5b50-2\" src=\"https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2024\/12\/17c531b9e30738d-6.jpg\" alt=\"Dify\u81ea\u5b9a\u4e49\u5de5\u5177\u4f8b\u5b50-2\" width=\"1920\" height=\"919\" srcset=\"https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2024\/12\/17c531b9e30738d-6.jpg 1920w, https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2024\/12\/17c531b9e30738d-6-300x144.jpg 300w, https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2024\/12\/17c531b9e30738d-6-1024x490.jpg 1024w, https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2024\/12\/17c531b9e30738d-6-768x368.jpg 768w, https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2024\/12\/17c531b9e30738d-6-1536x735.jpg 1536w, https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2024\/12\/17c531b9e30738d-6-18x9.jpg 18w\" sizes=\"auto, (max-width: 1920px) 100vw, 1920px\" \/><\/p>\n<p>&nbsp;<\/p>\n<h2>2.\u5ba0\u7269\u5546\u5e97\uff08YAML\uff09<\/h2>\n<pre><code># Taken from https:\/\/github.com\/OAI\/OpenAPI-Specification\/blob\/main\/examples\/v3.0\/petstore.yaml\r\nopenapi: \"3.0.0\"\r\ninfo:\r\nversion: 1.0.0\r\ntitle: Swagger Petstore\r\nlicense:\r\nname: MIT\r\nservers:\r\n- url: https:\/\/petstore.swagger.io\/v1\r\npaths:\r\n\/pets:\r\nget:\r\nsummary: List all pets\r\noperationId: listPets\r\ntags:\r\n- pets\r\nparameters:\r\n- name: limit\r\nin: query\r\ndescription: How many items to return at one time (max 100)\r\nrequired: false\r\nschema:\r\ntype: integer\r\nmaximum: 100\r\nformat: int32\r\nresponses:\r\n'200':\r\ndescription: A paged array of pets\r\nheaders:\r\nx-next:\r\ndescription: A link to the next page of responses\r\nschema:\r\ntype: string\r\ncontent:\r\napplication\/json:    \r\nschema:\r\n$ref: \"#\/components\/schemas\/Pets\"\r\ndefault:\r\ndescription: unexpected error\r\ncontent:\r\napplication\/json:\r\nschema:\r\n$ref: \"#\/components\/schemas\/Error\"\r\npost:\r\nsummary: Create a pet\r\noperationId: createPets\r\ntags:\r\n- pets\r\nresponses:\r\n'201':\r\ndescription: Null response\r\ndefault:\r\ndescription: unexpected error\r\ncontent:\r\napplication\/json:\r\nschema:\r\n$ref: \"#\/components\/schemas\/Error\"\r\n\/pets\/{petId}:\r\nget:\r\nsummary: Info for a specific pet\r\noperationId: showPetById\r\ntags:\r\n- pets\r\nparameters:\r\n- name: petId\r\nin: path\r\nrequired: true\r\ndescription: The id of the pet to retrieve\r\nschema:\r\ntype: string\r\nresponses:\r\n'200':\r\ndescription: Expected response to a valid request\r\ncontent:\r\napplication\/json:\r\nschema:\r\n$ref: \"#\/components\/schemas\/Pet\"\r\ndefault:\r\ndescription: unexpected error\r\ncontent:\r\napplication\/json:\r\nschema:\r\n$ref: \"#\/components\/schemas\/Error\"\r\ncomponents:\r\nschemas:\r\nPet:\r\ntype: object\r\nrequired:\r\n- id\r\n- name\r\nproperties:\r\nid:\r\ntype: integer\r\nformat: int64\r\nname:\r\ntype: string\r\ntag:\r\ntype: string\r\nPets:\r\ntype: array\r\nmaxItems: 100\r\nitems:\r\n$ref: \"#\/components\/schemas\/Pet\"\r\nError:\r\ntype: object\r\nrequired:\r\n- code\r\n- message\r\nproperties:\r\ncode:\r\ntype: integer\r\nformat: int32\r\nmessage:\r\ntype: string\r\n<\/code><\/pre>\n<p><code>pet.yaml<\/code>\u00a0\u662f\u4e00\u4e2a OpenAPI \u89c4\u8303\u6587\u4ef6\uff0c\u7528\u4e8e\u63cf\u8ff0\u548c\u5b9a\u4e49\u4e00\u4e2a\u540d\u4e3a &#8220;Swagger Petstore&#8221; \u7684 API \u7684\u63a5\u53e3\u3002\u8fd9\u4e2a\u6587\u4ef6\u4f7f\u7528\u4e86 YAML \u683c\u5f0f\uff0c\u5b83\u662f\u4e00\u79cd\u7528\u4e8e\u7f16\u5199\u914d\u7f6e\u6587\u4ef6\u7684\u4eba\u7c7b\u53ef\u8bfb\u7684\u6570\u636e\u5e8f\u5217\u5316\u6807\u51c6\u3002\u8fd9\u4e2a\u6587\u4ef6\u4e3a\u5f00\u53d1\u8005\u63d0\u4f9b\u4e86\u4e00\u4e2a\u6e05\u6670\u7684 API \u63a5\u53e3\u5b9a\u4e49\uff0c\u4f7f\u5f97\u5f00\u53d1\u8005\u53ef\u4ee5\u77e5\u9053\u5982\u4f55\u4e0e &#8220;Swagger Petstore&#8221; API \u8fdb\u884c\u4ea4\u4e92\u3002\u6587\u4ef6\u4e2d\u7684\u4e3b\u8981\u90e8\u5206\u5305\u62ec\uff1a<\/p>\n<ul>\n<li><code>openapi<\/code>: \u8fd9\u4e2a\u5b57\u6bb5\u6307\u5b9a\u4e86\u4f7f\u7528\u7684 OpenAPI \u89c4\u8303\u7684\u7248\u672c\uff0c\u8fd9\u91cc\u662f &#8220;3.0.0&#8221;\u3002<\/li>\n<li><code>info<\/code>: \u8fd9\u4e2a\u90e8\u5206\u63d0\u4f9b\u4e86 API \u7684\u57fa\u672c\u4fe1\u606f\uff0c\u5305\u62ec\u7248\u672c\u3001\u6807\u9898\u548c\u8bb8\u53ef\u8bc1\u3002<\/li>\n<li><code>servers<\/code>: \u8fd9\u4e2a\u90e8\u5206\u5b9a\u4e49\u4e86 API \u7684\u670d\u52a1\u5668 URL\u3002<\/li>\n<li><code>paths<\/code>: \u8fd9\u4e2a\u90e8\u5206\u5b9a\u4e49\u4e86 API \u7684\u6240\u6709\u8def\u5f84\u548c\u64cd\u4f5c\u3002\u4f8b\u5982\uff0c<code>\/pets<\/code>\u00a0\u8def\u5f84\u6709\u4e24\u4e2a\u64cd\u4f5c\uff1a<code>get<\/code>\u00a0\u548c\u00a0<code>post<\/code>\u3002<code>get<\/code>\u00a0\u64cd\u4f5c\u7528\u4e8e\u5217\u51fa\u6240\u6709\u5ba0\u7269\uff0c<code>post<\/code>\u00a0\u64cd\u4f5c\u7528\u4e8e\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u5ba0\u7269\u3002\u6bcf\u4e2a\u64cd\u4f5c\u90fd\u6709\u81ea\u5df1\u7684\u53c2\u6570\u3001\u54cd\u5e94\u548c\u5176\u4ed6\u8be6\u7ec6\u4fe1\u606f\u3002<\/li>\n<li><code>components<\/code>: \u8fd9\u4e2a\u90e8\u5206\u5b9a\u4e49\u4e86\u53ef\u91cd\u7528\u7684\u6a21\u5f0f\uff08schemas\uff09\uff0c\u8fd9\u4e9b\u6a21\u5f0f\u53ef\u4ee5\u5728\u00a0<code>paths<\/code>\u00a0\u90e8\u5206\u4e2d\u5f15\u7528\u3002\u4f8b\u5982\uff0c<code>Pet<\/code>\u3001<code>Pets<\/code>\u00a0\u548c\u00a0<code>Error<\/code>\u00a0\u6a21\u5f0f\u3002<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-15044\" title=\"Dify\u81ea\u5b9a\u4e49\u5de5\u5177\u4f8b\u5b50-3\" src=\"https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2024\/12\/17c531b9e30738d-8.jpg\" alt=\"Dify\u81ea\u5b9a\u4e49\u5de5\u5177\u4f8b\u5b50-3\" width=\"1920\" height=\"919\" srcset=\"https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2024\/12\/17c531b9e30738d-8.jpg 1920w, https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2024\/12\/17c531b9e30738d-8-300x144.jpg 300w, https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2024\/12\/17c531b9e30738d-8-1024x490.jpg 1024w, https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2024\/12\/17c531b9e30738d-8-768x368.jpg 768w, https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2024\/12\/17c531b9e30738d-8-1536x735.jpg 1536w, https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2024\/12\/17c531b9e30738d-8-18x9.jpg 18w\" sizes=\"auto, (max-width: 1920px) 100vw, 1920px\" \/><\/p>\n<p>\u5c06\u4e0a\u8ff0YAML\u6587\u4ef6\u8f6c\u6362\u4e3aJSON\u683c\u5f0f\uff1a<\/p>\n<pre><code>{\r\n\"openapi\": \"3.0.0\",\r\n\"info\": {\r\n\"version\": \"1.0.0\",\r\n\"title\": \"Swagger Petstore\",\r\n\"license\": {\r\n\"name\": \"MIT\"\r\n}\r\n},\r\n\"servers\": [\r\n{\r\n\"url\": \"https:\/\/petstore.swagger.io\/v1\"\r\n}\r\n],\r\n\"paths\": {\r\n\"\/pets\": {\r\n\"get\": {\r\n\"summary\": \"List all pets\",\r\n\"operationId\": \"listPets\",\r\n\"tags\": [\"pets\"],\r\n\"parameters\": [\r\n{\r\n\"name\": \"limit\",\r\n\"in\": \"query\",\r\n\"description\": \"How many items to return at one time (max 100)\",\r\n\"required\": false,\r\n\"schema\": {\r\n\"type\": \"integer\",\r\n\"maximum\": 100,\r\n\"format\": \"int32\"\r\n}\r\n}\r\n],\r\n\"responses\": {\r\n\"200\": {\r\n\"description\": \"A paged array of pets\",\r\n\"headers\": {\r\n\"x-next\": {\r\n\"description\": \"A link to the next page of responses\",\r\n\"schema\": {\r\n\"type\": \"string\"\r\n}\r\n}\r\n},\r\n\"content\": {\r\n\"application\/json\": {\r\n\"schema\": {\r\n\"$ref\": \"#\/components\/schemas\/Pets\"\r\n}\r\n}\r\n}\r\n},\r\n\"default\": {\r\n\"description\": \"unexpected error\",\r\n\"content\": {\r\n\"application\/json\": {\r\n\"schema\": {\r\n\"$ref\": \"#\/components\/schemas\/Error\"\r\n}\r\n}\r\n}\r\n}\r\n}\r\n},\r\n\"post\": {\r\n\"summary\": \"Create a pet\",\r\n\"operationId\": \"createPets\",\r\n\"tags\": [\"pets\"],\r\n\"responses\": {\r\n\"201\": {\r\n\"description\": \"Null response\"\r\n},\r\n\"default\": {\r\n\"description\": \"unexpected error\",\r\n\"content\": {\r\n\"application\/json\": {\r\n\"schema\": {\r\n\"$ref\": \"#\/components\/schemas\/Error\"\r\n}\r\n}\r\n}\r\n}\r\n}\r\n}\r\n},\r\n\"\/pets\/{petId}\": {\r\n\"get\": {\r\n\"summary\": \"Info for a specific pet\",\r\n\"operationId\": \"showPetById\",\r\n\"tags\": [\"pets\"],\r\n\"parameters\": [\r\n{\r\n\"name\": \"petId\",\r\n\"in\": \"path\",\r\n\"required\": true,\r\n\"description\": \"The id of the pet to retrieve\",\r\n\"schema\": {\r\n\"type\": \"string\"\r\n}\r\n}\r\n],\r\n\"responses\": {\r\n\"200\": {\r\n\"description\": \"Expected response to a valid request\",\r\n\"content\": {\r\n\"application\/json\": {\r\n\"schema\": {\r\n\"$ref\": \"#\/components\/schemas\/Pet\"\r\n}\r\n}\r\n}\r\n},\r\n\"default\": {\r\n\"description\": \"unexpected error\",\r\n\"content\": {\r\n\"application\/json\": {\r\n\"schema\": {\r\n\"$ref\": \"#\/components\/schemas\/Error\"\r\n}\r\n}\r\n}\r\n}\r\n}\r\n}\r\n}\r\n},\r\n\"components\": {\r\n\"schemas\": {\r\n\"Pet\": {\r\n\"type\": \"object\",\r\n\"required\": [\"id\", \"name\"],\r\n\"properties\": {\r\n\"id\": {\r\n\"type\": \"integer\",\r\n\"format\": \"int64\"\r\n},\r\n\"name\": {\r\n\"type\": \"string\"\r\n},\r\n\"tag\": {\r\n\"type\": \"string\"\r\n}\r\n}\r\n},\r\n\"Pets\": {\r\n\"type\": \"array\",\r\n\"maxItems\": 100,\r\n\"items\": {\r\n\"$ref\": \"#\/components\/schemas\/Pet\"\r\n}\r\n},\r\n\"Error\": {\r\n\"type\": \"object\",\r\n\"required\": [\"code\", \"message\"],\r\n\"properties\": {\r\n\"code\": {\r\n\"type\": \"integer\",\r\n\"format\": \"int32\"\r\n},\r\n\"message\": {\r\n\"type\": \"string\"\r\n}\r\n}\r\n}\r\n}\r\n}\r\n}\r\n<\/code><\/pre>\n<p>&nbsp;<\/p>\n<h2>3.\u7a7a\u767d\u6a21\u677f<\/h2>\n<pre><code>{\r\n\"openapi\": \"3.1.0\",\r\n\"info\": {\r\n\"title\": \"Untitled\",\r\n\"description\": \"Your OpenAPI specification\",\r\n\"version\": \"v1.0.0\"\r\n},\r\n\"servers\": [\r\n{\r\n\"url\": \"\"\r\n}\r\n],\r\n\"paths\": {},\r\n\"components\": {\r\n\"schemas\": {}\r\n}\r\n}\r\n<\/code><\/pre>\n<p>\u6ce8\u89e3\uff1a\u8c8c\u4f3cJSON\u683c\u5f0f\u770b\u4e0a\u53bb\u66f4\u52a0\u76f4\u89c2\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-15041\" title=\"Dify\u81ea\u5b9a\u4e49\u5de5\u5177\u4f8b\u5b50-4\" src=\"https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2024\/12\/17c531b9e30738d-5.jpg\" alt=\"Dify\u81ea\u5b9a\u4e49\u5de5\u5177\u4f8b\u5b50-4\" width=\"1920\" height=\"919\" srcset=\"https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2024\/12\/17c531b9e30738d-5.jpg 1920w, https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2024\/12\/17c531b9e30738d-5-300x144.jpg 300w, https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2024\/12\/17c531b9e30738d-5-1024x490.jpg 1024w, https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2024\/12\/17c531b9e30738d-5-768x368.jpg 768w, https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2024\/12\/17c531b9e30738d-5-1536x735.jpg 1536w, https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2024\/12\/17c531b9e30738d-5-18x9.jpg 18w\" sizes=\"auto, (max-width: 1920px) 100vw, 1920px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>\u7ed3\u6784\u5316\u8f93\u51fa\u6559\u7a0b\uff1a<a href=\"https:\/\/www.kdjingpai.com\/dify-zhongde-jsonarra\/\">Dify \u4e2d\u7684 jsonarray object \u600e\u4e48\u7528<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>1.\u5929\u6c14\uff08JSON\uff09 { &#8220;openapi&#8221;: &#8220;3.1.0&#8221;, &#8220;info&#8221;: { &#8220;title&#8221;: &#8220;Get weather data&#8221;, &#8220;description&#8221;: &#8220;Retrieves current weather data f&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[182],"tags":[],"class_list":["post-15040","post","type-post","status-publish","format-standard","hentry","category-shicao"],"_links":{"self":[{"href":"https:\/\/www.kdjingpai.com\/en\/wp-json\/wp\/v2\/posts\/15040","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kdjingpai.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kdjingpai.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kdjingpai.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kdjingpai.com\/en\/wp-json\/wp\/v2\/comments?post=15040"}],"version-history":[{"count":0,"href":"https:\/\/www.kdjingpai.com\/en\/wp-json\/wp\/v2\/posts\/15040\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.kdjingpai.com\/en\/wp-json\/wp\/v2\/media?parent=15040"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kdjingpai.com\/en\/wp-json\/wp\/v2\/categories?post=15040"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kdjingpai.com\/en\/wp-json\/wp\/v2\/tags?post=15040"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}