{"id":79082,"date":"2020-04-28T09:53:07","date_gmt":"2020-04-28T09:53:07","guid":{"rendered":"https:\/\/apieco.ir\/blog\/?p=79082"},"modified":"2020-05-05T19:38:24","modified_gmt":"2020-05-05T19:38:24","slug":"swagger-%da%86%db%8c%d8%b3%d8%aa-%d9%88-%d8%b1%d8%a7%d9%87%d9%86%d9%85%d8%a7%db%8c-%da%a9%d8%a7%d9%85%d9%84-%d8%a7%d8%b3%d8%aa%d9%81%d8%a7%d8%af%d9%87-%d8%a7%d8%b2-%d8%a2%d9%86","status":"publish","type":"post","link":"https:\/\/apieco.ir\/blog\/swagger-%da%86%db%8c%d8%b3%d8%aa-%d9%88-%d8%b1%d8%a7%d9%87%d9%86%d9%85%d8%a7%db%8c-%da%a9%d8%a7%d9%85%d9%84-%d8%a7%d8%b3%d8%aa%d9%81%d8%a7%d8%af%d9%87-%d8%a7%d8%b2-%d8%a2%d9%86\/","title":{"rendered":"Swagger \u0686\u06cc\u0633\u062a \u0648 \u0631\u0627\u0647\u0646\u0645\u0627\u06cc \u06a9\u0627\u0645\u0644 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0622\u0646"},"content":{"rendered":"<h2><span style=\"color: #000000;\"><b>Swagger \u0686\u06cc\u0633\u062a\u061f<\/b><\/span><\/h2>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify;\"><span style=\"font-weight: 400; color: #000000;\">Swagger \u0628\u0632\u0631\u06af\u062a\u0631\u06cc\u0646 \u0641\u0631\u06cc\u0645 \u0648\u0631\u06a9 \u0628\u0631\u0627\u06cc \u0637\u0631\u0627\u062d\u06cc API \u0647\u0627\u0633\u062a \u06a9\u0647 \u0627\u0632 \u0632\u0628\u0627\u0646 \u0645\u0634\u062a\u0631\u06a9 \u0628\u0631\u0627\u06cc \u0627\u06cc\u0646 \u0645\u0646\u0638\u0648\u0631 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc\u00ad\u06a9\u0646\u062f \u0648 \u062a\u0648\u0633\u0639\u0647 \u0631\u0627 \u062f\u0631 \u06a9\u0644 \u0686\u0631\u062e\u0647\u00ad \u06cc API (\u0634\u0627\u0645\u0644 \u0645\u0633\u062a\u0646\u062f \u0633\u0627\u0632\u06cc\u060c \u0637\u0631\u0627\u062d\u06cc\u060c \u0622\u0632\u0645\u0627\u06cc\u0634 \u0648 \u062a\u0648\u0633\u0639\u0647) \u0645\u0645\u06a9\u0646 \u0645\u06cc\u00ad\u0633\u0627\u0632\u062f.<\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"font-weight: 400; color: #000000;\">\u0627\u06cc\u0646 \u0641\u0631\u06cc\u0645 \u0648\u0631\u06a9\u060c \u0627\u0628\u0632\u0627\u0631\u0647\u0627\u06cc \u0631\u0627 \u0627\u0631\u0627\u0626\u0647 \u0645\u06cc \u062f\u0647\u062f \u06a9\u0647 \u0628\u0647 \u0628\u0631\u0646\u0627\u0645\u0647 \u0646\u0648\u06cc\u0633\u0627\u0646 \u06a9\u0645\u06a9 \u0645\u06cc\u00ad\u06a9\u0646\u062f \u062a\u0627 \u06a9\u062f \u0622\u0645\u0627\u062f\u0647 \u062a\u0648\u0644\u06cc\u062f \u06a9\u0631\u062f\u0647 \u0648 \u0645\u0633\u062a\u0646\u062f\u0627\u062a \u0634\u062e\u0635\u06cc \u0633\u0627\u0632\u06cc \u0634\u062f\u0647 \u0631\u0627 \u0628\u0631\u0627\u06cc \u0648\u0628 \u0633\u0631\u0648\u06cc\u0633 \u0647\u0627 \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u0646\u062f.<\/span><\/p>\n<h2><span style=\"color: #000000;\"><b>\u00a0<\/b><\/span><\/h2>\n<h2><span style=\"color: #000000;\"><b>\u0686\u0631\u0627 \u0627\u0632 Swagger \u0628\u0631\u0627\u06cc \u0627\u06cc\u062c\u0627\u062f \u0648 \u0645\u0633\u062a\u0646\u062f\u0633\u0627\u0632\u06cc API \u0647\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u0645\u061f<\/b><\/span><\/h2>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify;\"><span style=\"font-weight: 400; color: #000000;\">API\u0647\u0627 \u0628\u0647\u062a\u0631\u06cc\u0646 \u0631\u0648\u0634 \u0627\u0631\u062a\u0628\u0627\u0637 \u0645\u0647\u0646\u062f\u0633\u0627\u0646 \u0646\u0631\u0645 \u00ad\u0627\u0641\u0632\u0627\u0631 \u0648 \u0627\u0634\u062a\u0631\u0627\u06a9 \u00ad\u06af\u0630\u0627\u0631\u06cc \u062f\u0627\u062f\u0647 \u0647\u0627 \u0648 \u062a\u0648\u0633\u0639\u0647\u00ad \u06cc \u0646\u0631\u0645 \u0627\u0641\u0632\u0627\u0631 \u0647\u0627\u06cc \u0627\u0631\u0632\u0634\u0645\u0646\u062f \u0627\u0633\u062a. \u0627\u0632 \u0637\u0631\u06cc\u0642 API \u060c \u0628\u0631\u0646\u0627\u0645\u0647 \u0646\u0648\u06cc\u0633\u0627\u0646 \u0645\u06cc\u00ad\u062a\u0648\u0627\u0646\u0646\u062f \u0628\u0647 \u0634\u0628\u06a9\u0647 \u0627\u06cc \u0627\u0632 \u062f\u0627\u062f\u0647 \u0647\u0627\u06cc \u0628\u0647 \u0627\u0634\u062a\u0631\u0627\u06a9 \u06af\u0630\u0627\u0634\u062a\u0647 \u0634\u062f\u0647 \u0648 \u062a\u062c\u0631\u0628\u06cc\u0627\u062a \u0645\u0641\u06cc\u062f \u062f\u0633\u062a\u0631\u0633\u06cc \u067e\u06cc\u062f\u0627 \u06a9\u0646\u0646\u062f. \u0628\u0627 \u0627\u06cc\u0646 \u062d\u0627\u0644\u060c \u0628\u0631\u0627\u06cc \u062f\u0633\u062a\u00ad\u06cc\u0627\u0628\u06cc \u0628\u0647 \u0622\u0646\u00ad\u0647\u0627\u060c \u0628\u0631\u0646\u0627\u0645\u0647 \u0646\u0648\u06cc\u0633\u0627\u0646 \u0628\u0647 \u0645\u0633\u062a\u0646\u062f\u0627\u062a \u0648\u0627\u0636\u062d \u0646\u06cc\u0627\u0632 \u062f\u0627\u0631\u0646\u062f.<\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"font-weight: 400; color: #000000;\">\u062c\u0627\u0644\u0628 \u0627\u0633\u062a \u0628\u062f\u0627\u0646\u06cc\u062f \u06a9\u0647 \u062f\u0631 \u06af\u0630\u0634\u062a\u0647 \u0647\u06cc\u0686 \u0627\u0633\u062a\u0627\u0646\u062f\u0627\u0631\u06cc \u0628\u0631\u0627\u06cc \u062a\u0648\u0633\u0639\u0647 \u06cc API \u0647\u0627 \u0648 \u0647\u0645\u0686\u0646\u06cc\u0646 \u0645\u0633\u062a\u0646\u062f\u0633\u0627\u0632\u06cc \u00ad\u0622\u0646\u00ad\u0647\u0627 \u0648\u062c\u0648\u062f \u0646\u062f\u0627\u0634\u062a. Swagger \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u06cc\u06a9 \u0631\u0648\u06cc\u06a9\u0631\u062f\u06cc \u062f\u0631 \u0633\u0627\u062e\u062a API \u0647\u0627 \u0638\u0627\u0647\u0631 \u0634\u062f \u0648 \u062f\u0631 \u06a9\u0645\u062a\u0631\u06cc\u0646 \u0632\u0645\u0627\u0646 \u0628\u0647 \u0645\u062d\u0628\u0648\u0628\u00ad\u062a\u0631\u06cc\u0646 \u0641\u0631\u06cc\u0645\u0648\u0631\u06a9 \u062a\u0628\u062f\u06cc\u0644 \u06af\u0631\u062f\u06cc\u062f.<\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"font-weight: 400; color: #000000;\">\u0646\u06a9\u062a\u0647 \u00ad\u06cc \u0645\u0647\u0645 \u0627\u06cc\u0646 \u0627\u0633\u062a \u06a9\u0647 \u0634\u0631\u06a9\u062a \u0647\u0627\u06cc\u06cc \u0645\u0627\u0646\u0646\u062f \u06af\u0648\u06af\u0644\u060c \u0645\u0627\u06cc\u06a9\u0631\u0648\u0633\u0627\u0641\u062a \u0648 atlassian \u0627\u0632 \u0686\u0627\u0631\u0686\u0648\u0628 Swagger \u067e\u0634\u062a\u06cc\u0628\u0627\u0646\u06cc \u0645\u06cc\u00ad\u06a9\u0646\u0646\u062f. \u0647\u0645\u0686\u0646\u06cc\u0646 \u063a\u0648\u0644 \u0647\u0627\u06cc\u06cc \u0645\u0627\u0646\u0646\u062f Yelp \u0648 Netflix \u062f\u0631 \u06a9\u0627\u0631\u0634\u0627\u0646 \u0627\u0632 \u0622\u0646 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc \u06a9\u0631\u062f\u0647 \u0627\u0646\u062f.<\/span><\/p>\n<h2><span style=\"color: #000000;\"><b>\u00a0<\/b><\/span><\/h2>\n<h2><span style=\"color: #000000;\"><b>\u0627\u0628\u0632\u0627\u0631\u0647\u0627 \u0648 \u0645\u0632\u0627\u06cc\u0627\u06cc \u0686\u0627\u0631\u0686\u0648\u0628 Swagger<\/b><\/span><\/h2>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify;\"><span style=\"font-weight: 400; color: #000000;\">\u0627\u0648\u0644\u06cc\u0646 \u0648 \u0645\u0647\u0645\u00ad\u062a\u0631\u06cc\u0646 \u0645\u0632\u06cc\u062a Swagger \u0627\u06cc\u0646 \u0627\u0633\u062a \u06a9\u0647 \u0627\u06cc\u0646 \u0641\u0631\u06cc\u0645\u0648\u0631\u06a9 \u0627\u0632 \u06cc\u06a9 \u0632\u0628\u0627\u0646 \u0645\u0634\u062a\u0631\u06a9 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc \u00ad\u06a9\u0646\u062f \u06a9\u0647 \u0628\u0631\u0627\u06cc \u0645\u062e\u0627\u0637\u0628\u06cc\u0646 \u0627\u0632 \u062c\u0645\u0644\u0647 \u062a\u0648\u0633\u0639\u0647 \u062f\u0647\u0646\u062f\u0647 \u0648 \u063a\u06cc\u0631 \u062a\u0648\u0633\u0639\u0647 \u062f\u0647\u0646\u062f\u0647 \u0628\u0647 \u0631\u0627\u062d\u062a\u06cc \u0642\u0627\u0628\u0644 \u062f\u0631\u06a9 \u0627\u0633\u062a.<\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"font-weight: 400; color: #000000;\">\u0628\u0646\u0627\u0628\u0631\u0627\u06cc\u0646\u060c \u062a\u0648\u0633\u0639\u0647 \u062f\u0647\u0646\u062f\u06af\u0627\u0646 \u0646\u0631\u0645 \u0627\u0641\u0632\u0627\u0631\u060c \u0645\u062f\u06cc\u0631\u0627\u0646 \u0645\u062d\u0635\u0648\u0644 \u0648 \u067e\u0631\u0648\u0698\u0647\u060c \u062a\u062d\u0644\u06cc\u0644\u00ad\u06af\u0631\u0627\u0646 \u0628\u06cc\u0632\u06cc\u0646\u0633 \u0648 \u062d\u062a\u06cc \u0645\u0634\u062a\u0631\u06cc\u0627\u0646 \u0628\u0627\u0644\u0642\u0648\u0647 \u0645\u06cc\u00ad\u062a\u0648\u0627\u0646\u0646\u062f \u0628\u0627 \u0633\u0627\u062e\u062a\u0627\u0631 API \u0622\u0634\u0646\u0627 \u0634\u0648\u0646\u062f.<\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"font-weight: 400; color: #000000;\">\u0647\u0645\u0686\u0646\u06cc\u0646 \u0627\u06cc\u0646 \u0646\u0631\u0645 \u0627\u0641\u0632\u0627\u0631 \u0628\u0647 \u00ad\u0631\u0627\u062d\u062a\u06cc \u0642\u0627\u0628\u0644 \u062a\u0646\u0638\u06cc\u0645 \u0627\u0633\u062a \u0648 \u0645\u06cc\u00ad\u062a\u0648\u0627\u0646\u062f \u0628\u0631\u0627\u06cc \u062a\u0633\u062a \u0648 \u0631\u0641\u0639 \u0628\u0627\u06af API\u00a0 \u0645\u0648\u0631\u062f \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0642\u0631\u0627\u0631 \u06af\u06cc\u0631\u062f. \u0646\u06a9\u062a\u0647\u00ad \u06cc \u0645\u0647\u0645 \u062f\u06cc\u06af\u0631 \u0627\u06cc\u0646 \u0627\u0633\u062a \u06a9\u0647 \u0627\u0632 \u0647\u0645\u0627\u0646 \u0645\u0633\u062a\u0646\u062f\u0627\u062a \u0645\u06cc\u00ad\u062a\u0648\u0627\u0646 \u0628\u0631\u0627\u06cc \u062a\u0633\u0631\u06cc\u0639 \u062f\u0631 \u0641\u0631\u0622\u06cc\u0646\u062f\u0647\u0627\u06cc \u0645\u062e\u062a\u0644\u0641 \u0648\u0627\u0628\u0633\u062a\u0647 \u0628\u0647 API \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0631\u062f.<\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"font-weight: 400; color: #000000;\">\u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0641\u0631\u06cc\u0645\u0648\u0631\u06a9 Swagger \u0633\u0631\u0648\u0631\u060c \u06a9\u0627\u0631\u0628\u0631 \u0648 \u062a\u06cc\u0645 \u0645\u0633\u062a\u0646\u062f\u0633\u0627\u0632\u06cc \u0645\u06cc \u062a\u0648\u0627\u0646\u0646\u062f \u0628\u0627 \u06cc\u06a9\u062f\u06cc\u06af\u0631 \u0647\u0645\u00ad\u06af\u0627\u0645 \u0634\u0648\u0646\u062f.<\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"font-weight: 400; color: #000000;\">\u0641\u0631\u06cc\u0645\u0648\u0631\u06a9 Swagger UI \u0628\u0647 \u0628\u0631\u0646\u0627\u0645\u0647 \u0646\u0648\u06cc\u0633\u0627\u0646 \u0627\u0645\u06a9\u0627\u0646 \u062a\u0639\u0627\u0645\u0644 \u0628\u0627 API \u0631\u0627 \u0645\u06cc\u00ad\u062f\u0647\u062f. \u0627\u06cc\u0646 \u0645\u062f\u0644\u060c \u0628\u06cc\u0646\u0634 \u0631\u0648\u0634\u0646\u06cc \u0627\u0632 \u0686\u06af\u0648\u0646\u06af\u06cc \u067e\u0627\u0633\u062e API \u0628\u0647 \u067e\u0627\u0631\u0627\u0645\u062a\u0631\u0647\u0627 \u0627\u0631\u0627\u0626\u0647 \u0645\u06cc \u0646\u0645\u0627\u06cc\u062f.<\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"font-weight: 400; color: #000000;\">\u067e\u0627\u0633\u062e\u00ad\u0647\u0627\u06cc swagger \u062f\u0631 \u0641\u0631\u0645\u062a JSON \u0648 XML \u0628\u0647 \u0647\u0645\u0631\u0627\u0647 \u0641\u0631\u0645\u062a\u00ad\u0647\u0627\u06cc \u062f\u06cc\u06af\u0631\u06cc \u062f\u0631 \u0627\u062e\u062a\u06cc\u0627\u0631 \u0628\u0631\u0646\u0627\u0645\u0647 \u0646\u0648\u06cc\u0633\u0627\u0646 \u0642\u0631\u0627\u0631 \u0645\u06cc\u06af\u06cc\u0631\u062f.<\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"font-weight: 400; color: #000000;\">\u067e\u06cc\u0627\u062f\u0647 \u0633\u0627\u0632\u06cc \u0627\u06cc\u0646 \u0646\u0631\u0645 \u0627\u0641\u0632\u0627\u0631 \u0628\u0631\u0627\u06cc \u0632\u0628\u0627\u0646 \u0647\u0627\u06cc \u0628\u0631\u0646\u0627\u0645\u0647 \u0646\u0648\u06cc\u0633\u06cc \u0645\u062e\u062a\u0644\u0641 \u0645\u0627\u0646\u0646\u062f JavaScript \u060c Ruby \u060c PHP Scala \u060c Java \u0648 HTML5 \u062f\u0631 \u062f\u0633\u062a\u0631\u0633 \u0627\u0633\u062a.<\/span><\/p>\n<blockquote>\n<p style=\"text-align: center;\"><span style=\"color: #000000;\">\u062f\u06cc\u06af\u0631 <a style=\"color: #000000;\" href=\"https:\/\/apieco.ir\/blog\/%D8%A7%D8%A8%D8%B2%D8%A7%D8%B1-%D8%AA%D8%B3%D8%AA-api\/\">\u0627\u0628\u0632\u0627\u0631 \u0647\u0627\u06cc \u062a\u0633\u062a Api<\/a> \u0631\u0627 \u0645\u06cc\u062a\u0648\u0627\u0646\u06cc\u062f \u062f\u0631 \u0627\u06cc\u0646 \u0645\u0642\u0627\u0644\u0647 \u0628\u062e\u0648\u0627\u0646\u06cc\u062f.<\/span><\/p>\n<\/blockquote>\n<p><span style=\"font-weight: 400; color: #000000;\">\u00a0<\/span><\/p>\n<p><span style=\"color: #000000;\"><b>Swagger \u0645\u062c\u0645\u0648\u0639\u0647 \u0627\u06cc \u0627\u0632 \u0627\u0628\u0632\u0627\u0631\u0647\u0627\u06cc \u06a9\u0627\u0631\u0628\u0631\u062f\u06cc \u0628\u0631\u0627\u06cc \u0637\u0631\u0627\u062d\u06cc API \u0647\u0627 \u0648 \u0628\u0647\u0628\u0648\u062f \u06a9\u0627\u0631 \u0628\u0627 \u0648\u0628 \u0633\u0631\u0648\u06cc\u0633 \u0647\u0627 \u0631\u0627 \u0641\u0631\u0627\u0647\u0645 \u0645\u06cc\u00ad\u06a9\u0646\u062f:<\/b><\/span><\/p>\n<ul>\n<li style=\"font-weight: 400; text-align: justify;\"><span style=\"color: #000000;\"><b>Swagger Editor &#8211;<\/b><span style=\"font-weight: 400;\"> \u0627\u0648\u0644\u06cc\u0646 \u0648\u06cc\u0631\u0627\u06cc\u0634\u06af\u0631 \u0645\u062a\u0646 \u0628\u0627\u0632 \u0628\u0631\u0627\u06cc \u0648\u06cc\u0631\u0627\u06cc\u0634 API \u0647\u0627\u0633\u062a. \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0627\u06cc\u0646 \u0627\u0628\u0632\u0627\u0631 \u0645\u06cc \u062a\u0648\u0627\u0646 \u0645\u0633\u062a\u0646\u062f\u0627\u062a API \u0631\u0627 \u0648\u06cc\u0631\u0627\u06cc\u0634 \u0648 API \u0647\u0627\u06cc \u062c\u062f\u06cc\u062f \u0631\u0627 \u0637\u0631\u0627\u062d\u06cc \u0648 \u062a\u0648\u0635\u06cc\u0641 \u06a9\u0631\u062f.<\/span><\/span><\/li>\n<li style=\"font-weight: 400; text-align: justify;\"><span style=\"color: #000000;\"><b>Swagger Codegen &#8211;<\/b><span style=\"font-weight: 400;\"> \u0628\u0647 \u062a\u0648\u0633\u0639\u0647 \u062f\u0647\u0646\u062f\u06af\u0627\u0646 \u0627\u062c\u0627\u0632\u0647\u00ad \u06cc \u062a\u0648\u0644\u06cc\u062f \u06a9\u062f \u06a9\u062a\u0627\u0628\u062e\u0627\u0646\u0647 \u0628\u0631\u0627\u06cc \u067e\u0644\u062a\u0641\u0631\u0645 \u0647\u0627\u06cc \u0645\u062e\u062a\u0644\u0641 \u0631\u0627 \u0645\u06cc\u00ad\u062f\u0647\u062f. \u0645\u0647\u0646\u062f\u0633\u0627\u0646 \u0646\u0631\u0645 \u0627\u0641\u0632\u0627\u0631 \u062a\u0648\u0627\u0646\u0627\u06cc\u06cc \u0633\u0627\u062e\u062a \u0633\u0631\u06cc\u0639\u00ad\u062a\u0631 API \u0634\u0645\u0627 \u0631\u0627 \u06a9\u0633\u0628 \u0645\u06cc\u00ad\u06a9\u0646\u0646\u062f \u0648 \u0631\u0648\u06cc \u0641\u0631\u0627\u062e\u0648\u0627\u0646\u06cc \u0622\u0646 \u0628\u0647\u062a\u0631 \u062a\u0645\u0631\u06a9\u0632 \u0645\u06cc \u0646\u0645\u0627\u06cc\u0646\u062f.<\/span><\/span><\/li>\n<li style=\"font-weight: 400; text-align: justify;\"><span style=\"color: #000000;\"><b>Swagger UI \u2013<\/b><span style=\"font-weight: 400;\"> \u0628\u0648\u0633\u06cc\u0644\u0647 \u06cc \u0627\u06cc\u0646 \u0627\u0628\u0632\u0627\u0631 \u0645\u0647\u0646\u062f\u0633\u0627\u0646 \u0646\u0631\u0645 \u00ad\u0627\u0641\u0632\u0627\u0631 \u0645\u06cc\u00ad\u062a\u0648\u0627\u0646\u0646\u062f \u0645\u0633\u062a\u0646\u062f\u0627\u062a \u0634\u062e\u0635\u06cc \u0633\u0627\u0632\u06cc \u0634\u062f\u0647 \u0628\u0631\u0627\u06cc \u067e\u0644\u062a\u0641\u0631\u0645\u00ad \u0647\u0627\u06cc \u0645\u062e\u062a\u0644\u0641 \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u0646\u062f. Swagger UI \u06cc\u06a9 \u0627\u0628\u0632\u0627\u0631 \u06a9\u0627\u0645\u0644\u0627 \u0642\u0627\u0628\u0644 \u0634\u062e\u0635\u06cc \u0633\u0627\u0632\u06cc \u0627\u0633\u062a \u06a9\u0647 \u0645\u06cc\u00ad\u062a\u0648\u0627\u0646\u062f \u062f\u0631 \u0647\u0631 \u0645\u062d\u06cc\u0637\u06cc \u0627\u062c\u0631\u0627 \u0634\u0648\u062f. \u0648\u06cc\u0698\u06af\u06cc \u0639\u0627\u0644\u06cc \u0627\u06cc\u0646 \u0627\u0628\u0632\u0627\u0631 \u0628\u0631\u0627\u06cc \u062a\u0648\u0633\u0639\u0647 \u062f\u0647\u0646\u062f\u06af\u0627\u0646 \u0635\u0631\u0641\u0647 \u062c\u0648\u06cc\u06cc \u062f\u0631 \u0632\u0645\u0627\u0646 \u0628\u0631\u0627\u06cc \u0633\u0627\u062e\u062a \u0645\u0633\u062a\u0646\u062f\u0627\u062a API \u0627\u0633\u062a.<\/span><\/span><\/li>\n<li style=\"font-weight: 400; text-align: justify;\"><span style=\"color: #000000;\"><b>Swagger Inspector \u2013<\/b><span style=\"font-weight: 400;\"> \u0627\u0628\u0632\u0627\u0631\u06cc \u0627\u0633\u062a \u06a9\u0647 \u0645\u06cc\u00ad\u062a\u0648\u0627\u0646 \u0627\u0632 \u0622\u0646 \u062f\u0631 \u0647\u0631 API \u0628\u0631\u0627\u06cc \u062a\u0633\u062a \u0648 \u062a\u0648\u0644\u06cc\u062f \u062e\u0648\u062f\u06a9\u0627\u0631 \u0645\u0633\u062a\u0646\u062f\u0627\u062a Open API \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0631\u062f. Swagger Inspector \u0628\u0647 \u0622\u0633\u0627\u0646\u06cc \u0627\u062c\u0627\u0632\u0647 \u00ad\u06cc \u0627\u0639\u062a\u0628\u0627\u0631\u0633\u0646\u062c\u06cc \u0648 \u062a\u0633\u062a API \u0647\u0627 \u0631\u0627 \u0645\u06cc\u00ad\u062f\u0647\u062f \u0628\u062f\u0648\u0646 \u0627\u06cc\u0646\u06a9\u0647 \u0647\u06cc\u0686 \u0645\u062d\u062f\u0648\u062f\u06cc\u062a\u06cc \u0631\u0648\u06cc \u0622\u0646\u00ad\u0686\u0647 \u06a9\u0647 \u062a\u0633\u062a \u0645\u06cc \u06a9\u0646\u06cc\u062f \u0627\u0639\u0645\u0627\u0644 \u06a9\u0646\u062f. \u062a\u0633\u062a \u00ad\u0647\u0627 \u0628\u0647 \u0635\u0648\u0631\u062a \u062e\u0648\u062f\u06a9\u0627\u0631 \u062f\u0631 \u06cc\u06a9 \u0641\u0636\u0627\u06cc \u0627\u0628\u0631\u06cc \u0630\u062e\u06cc\u0631\u0647 \u0645\u06cc\u00ad\u0634\u0648\u0646\u062f.<\/span><\/span><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h2><span style=\"color: #000000;\"><strong>\u0622\u0645\u0648\u0632\u0634 Swagger UI<\/strong><\/span><\/h2>\n<p><span style=\"color: #000000;\">\u0628\u06cc\u0627\u0628\u06cc\u062f \u0628\u0631\u0627\u06cc \u062f\u0631\u06a9 \u0628\u0647\u062a\u0631 Swagger UI\u060c \u0686\u0646\u062f \u0646\u0645\u0648\u0646\u0647 Swagger Petstore \u0631\u0627 \u0628\u0631\u0631\u0633\u06cc \u06a9\u0646\u06cc\u0645. \u062f\u0631 \u0645\u062b\u0627\u0644 Petstore\u060c \u0627\u06cc\u0646 \u0633\u0627\u06cc\u062a \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 Swagger UI \u0627\u06cc\u062c\u0627\u062f \u0634\u062f\u0647 \u0627\u0633\u062a.<\/span><\/p>\n<p><span style=\"color: #000000;\"><img loading=\"lazy\" class=\"aligncenter wp-image-79189 \" src=\"https:\/\/apieco.ir\/blog\/wp-content\/uploads\/2020\/04\/1-1024x574.png\" alt=\"\" width=\"594\" height=\"333\" srcset=\"https:\/\/apieco.ir\/blog\/wp-content\/uploads\/2020\/04\/1-1024x574.png 1024w, https:\/\/apieco.ir\/blog\/wp-content\/uploads\/2020\/04\/1-300x168.png 300w, https:\/\/apieco.ir\/blog\/wp-content\/uploads\/2020\/04\/1-768x431.png 768w, https:\/\/apieco.ir\/blog\/wp-content\/uploads\/2020\/04\/1.png 1116w\" sizes=\"(max-width: 594px) 100vw, 594px\" \/><\/span><\/p>\n<p><span style=\"color: #000000;\">\u0646\u0642\u0627\u0637 \u067e\u0627\u06cc\u0627\u0646\u06cc \u0628\u0647 \u0627\u06cc\u0646 \u0635\u0648\u0631\u062a \u06af\u0631\u0648\u0647 \u0628\u0646\u062f\u06cc \u0645\u06cc \u0634\u0648\u0646\u062f:<\/span><\/p>\n<ul>\n<li><span style=\"color: #000000;\">Pet<\/span><\/li>\n<li><span style=\"color: #000000;\">Store<\/span><\/li>\n<li><span style=\"color: #000000;\">User<\/span><\/li>\n<\/ul>\n<p><span style=\"color: #000000;\"><strong>\u0645\u062c\u0627\u0632 \u06a9\u0631\u062f\u0646 \u062f\u0631\u062e\u0648\u0627\u0633\u062a<\/strong><\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"color: #000000;\">\u0642\u0628\u0644 \u0627\u0632 \u0627\u06cc\u062c\u0627\u062f \u0647\u0631\u06af\u0648\u0646\u0647 \u062f\u0631\u062e\u0648\u0627\u0633\u062a\u06cc\u060c \u0645\u0639\u0645\u0648\u0644\u0627\u064b session \u062e\u0648\u062f \u0631\u0627 \u0628\u0627 \u06a9\u0644\u06cc\u06a9 \u06a9\u0631\u062f\u0646 \u0631\u0648\u06cc \u062f\u06a9\u0645\u0647 Authorize \u0645\u062c\u0627\u0632 \u0646\u0645\u0648\u062f\u0647 \u0648 \u0628\u0647 \u062a\u06a9\u0645\u06cc\u0644 \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u0645\u0648\u0631\u062f \u0646\u06cc\u0627\u0632 \u062f\u0631 \u0645\u0627\u0698\u0648\u0644 \u0645\u062c\u0648\u0632 \u0628\u067e\u0631\u062f\u0627\u0632\u06cc\u062f:<\/span><\/p>\n<p><span style=\"color: #000000;\"><img loading=\"lazy\" class=\"aligncenter wp-image-79190 \" src=\"https:\/\/apieco.ir\/blog\/wp-content\/uploads\/2020\/04\/2-1024x848.png\" alt=\"\" width=\"592\" height=\"489\" srcset=\"https:\/\/apieco.ir\/blog\/wp-content\/uploads\/2020\/04\/2-1024x848.png 1024w, https:\/\/apieco.ir\/blog\/wp-content\/uploads\/2020\/04\/2-300x248.png 300w, https:\/\/apieco.ir\/blog\/wp-content\/uploads\/2020\/04\/2-768x636.png 768w, https:\/\/apieco.ir\/blog\/wp-content\/uploads\/2020\/04\/2.png 1164w\" sizes=\"(max-width: 592px) 100vw, 592px\" \/><\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"color: #000000;\">\u0646\u0645\u0648\u0646\u0647 Petstore \u062f\u0627\u0631\u0627\u06cc \u06cc\u06a9 \u0645\u062f\u0644 \u0627\u0645\u0646\u06cc\u062a\u06cc OAuth 2.0 \u0627\u0633\u062a. \u0628\u0627 \u0627\u06cc\u0646 \u062d\u0627\u0644 \u060c \u06a9\u062f \u0645\u062c\u0648\u0632 \u0635\u0631\u0641\u0627 \u0628\u0631\u0627\u06cc \u0627\u0647\u062f\u0627\u0641 \u0646\u0645\u0627\u06cc\u0634\u06cc \u0645\u06cc\u0628\u0627\u0634\u062f. \u062f\u0631\u0648\u0627\u0642\u0639 \u0647\u06cc\u0686 \u0645\u0646\u0637\u0642 \u062d\u0642\u06cc\u0642\u06cc \u0627\u06cc \u0648\u062c\u0648\u062f \u0646\u062f\u0627\u0631\u062f \u06a9\u0647 \u0622\u0646 \u062f\u0631\u062e\u0648\u0627\u0633\u062a \u0647\u0627 \u0631\u0627 \u0645\u062c\u0627\u0632 \u06a9\u0646\u062f\u060c \u0628\u0646\u0627\u0628\u0631\u0627\u06cc\u0646 \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u0628\u0647 \u0633\u0627\u062f\u06af\u06cc \u0645\u0627\u0698\u0648\u0644 \u0645\u062c\u0648\u0632 \u0631\u0627 \u0628\u0628\u0646\u062f\u06cc\u062f.<\/span><\/p>\n<p><span style=\"color: #000000;\"><strong>\u0627\u06cc\u062c\u0627\u062f \u062f\u0631\u062e\u0648\u0627\u0633\u062a<\/strong><\/span><\/p>\n<p><span style=\"color: #000000;\">\u0628\u0631\u0627\u06cc \u0627\u06cc\u062c\u0627\u062f \u062f\u0631\u062e\u0648\u0627\u0633\u062a \u0637\u0628\u0642 \u0645\u0631\u0627\u062d\u0644 \u0632\u06cc\u0631 \u0639\u0645\u0644 \u0646\u0645\u0627\u06cc\u06cc\u062f:<\/span><\/p>\n<ol>\n<li><span style=\"color: #000000;\">\u0646\u0642\u0637\u0647 \u06cc \u067e\u0627\u06cc\u0627\u0646\u06cc POST Pet \u0631\u0627 \u062a\u0648\u0633\u0639\u0647 \u062f\u0647\u06cc\u062f.<\/span><\/li>\n<li><span style=\"color: #000000;\">\u0631\u0648\u06cc Tty it out \u06a9\u0644\u06cc\u06a9 \u06a9\u0646\u06cc\u062f.<\/span><\/li>\n<\/ol>\n<p><span style=\"color: #000000;\"><img loading=\"lazy\" class=\"aligncenter wp-image-79191 \" src=\"https:\/\/apieco.ir\/blog\/wp-content\/uploads\/2020\/04\/3-1024x690.png\" alt=\"\" width=\"561\" height=\"378\" srcset=\"https:\/\/apieco.ir\/blog\/wp-content\/uploads\/2020\/04\/3-1024x690.png 1024w, https:\/\/apieco.ir\/blog\/wp-content\/uploads\/2020\/04\/3-300x202.png 300w, https:\/\/apieco.ir\/blog\/wp-content\/uploads\/2020\/04\/3-768x517.png 768w, https:\/\/apieco.ir\/blog\/wp-content\/uploads\/2020\/04\/3-1536x1035.png 1536w, https:\/\/apieco.ir\/blog\/wp-content\/uploads\/2020\/04\/3.png 1624w\" sizes=\"(max-width: 561px) 100vw, 561px\" \/><\/span><\/p>\n<p><span style=\"color: #000000;\">\u0628\u0639\u062f \u0627\u0632 \u06a9\u0644\u06cc\u06a9 \u06a9\u0631\u062f\u0646 \u0631\u0648\u06cc \u0622\u0646 Tty it out\u060c \u0645\u0642\u062f\u0627\u0631 \u0646\u0645\u0648\u0646\u0647 \u062f\u0631 \u0642\u0633\u0645\u062a Request Body \u0642\u0627\u0628\u0644 \u0648\u06cc\u0631\u0627\u06cc\u0634 \u0645\u06cc \u0634\u0648\u062f.<\/span><\/p>\n<ol start=\"3\">\n<li style=\"text-align: justify;\"><span style=\"color: #000000;\">\u062f\u0631 \u0641\u06cc\u0644\u062f Example Value \u060c \u0645\u0642\u062f\u0627\u0631 \u0627\u0648\u0644\u06cc\u0646 \u0634\u0646\u0627\u0633\u0647 \u0631\u0627 \u0628\u0647 \u06cc\u06a9 \u0639\u062f\u062f \u0635\u062d\u06cc\u062d \u062a\u0635\u0627\u062f\u0641\u06cc\u060c \u0645\u0627\u0646\u0646\u062f \u06f1\u06f9\u06f3\u06f8\u06f4\u06f4 \u0648 \u0645\u0642\u062f\u0627\u0631 \u0646\u0627\u0645 \u062f\u0648\u0645 \u0631\u0627 \u0628\u0647 \u0686\u06cc\u0632\u06cc \u06a9\u0647 \u0645\u06cc \u0634\u0646\u0627\u0633\u06cc\u062f \u062a\u063a\u06cc\u06cc\u0631 \u062f\u0647\u06cc\u062f.<\/span><\/li>\n<li><span style=\"color: #000000;\">\u0631\u0648\u06cc Execute \u06a9\u0644\u06cc\u06a9 \u06a9\u0646\u06cc\u062f.<\/span><\/li>\n<\/ol>\n<p><span style=\"color: #000000;\"><img loading=\"lazy\" class=\"aligncenter wp-image-79192 \" src=\"https:\/\/apieco.ir\/blog\/wp-content\/uploads\/2020\/04\/4-1024x659.png\" alt=\"\" width=\"522\" height=\"336\" srcset=\"https:\/\/apieco.ir\/blog\/wp-content\/uploads\/2020\/04\/4-1024x659.png 1024w, https:\/\/apieco.ir\/blog\/wp-content\/uploads\/2020\/04\/4-300x193.png 300w, https:\/\/apieco.ir\/blog\/wp-content\/uploads\/2020\/04\/4-768x494.png 768w, https:\/\/apieco.ir\/blog\/wp-content\/uploads\/2020\/04\/4-1536x989.png 1536w, https:\/\/apieco.ir\/blog\/wp-content\/uploads\/2020\/04\/4-210x136.png 210w, https:\/\/apieco.ir\/blog\/wp-content\/uploads\/2020\/04\/4.png 1616w\" sizes=\"(max-width: 522px) 100vw, 522px\" \/><\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"color: #000000;\">Swagger UI \u062f\u0631\u062e\u0648\u0627\u0633\u062a \u0631\u0627 \u0627\u0631\u0633\u0627\u0644 \u06a9\u0631\u062f\u0647 \u0648 \u0645\u0646\u062d\u0646\u06cc \u0627\u0631\u0627\u0626\u0647 \u0634\u062f\u0647 \u0631\u0627 \u0646\u0634\u0627\u0646 \u0645\u06cc\u062f\u0647\u062f. \u0628\u062e\u0634 Responses \u067e\u0627\u0633\u062e \u0631\u0627 \u0646\u0634\u0627\u0646 \u0645\u06cc \u062f\u0647\u062f. (\u0627\u06af\u0631 JSON \u0631\u0627 \u0628\u0647 \u062c\u0627\u06cc XML \u062f\u0631 \u06a9\u0627\u062f\u0631 \u06a9\u0634\u0648\u06cc\u06cc &#8220;Response content type&#8221; \u0627\u0646\u062a\u062e\u0627\u0628 \u06a9\u0646\u06cc\u062f\u060c \u0642\u0627\u0644\u0628 \u067e\u0627\u0633\u062e \u062f\u0631 JSON \u0646\u0634\u0627\u0646 \u062f\u0627\u062f\u0647 \u062e\u0648\u0627\u0647\u062f \u0634\u062f.)<\/span><\/p>\n<p><span style=\"color: #000000;\"><img loading=\"lazy\" class=\"aligncenter wp-image-79193 \" src=\"https:\/\/apieco.ir\/blog\/wp-content\/uploads\/2020\/04\/5-1024x641.png\" alt=\"\" width=\"508\" height=\"319\" srcset=\"https:\/\/apieco.ir\/blog\/wp-content\/uploads\/2020\/04\/5-1024x641.png 1024w, https:\/\/apieco.ir\/blog\/wp-content\/uploads\/2020\/04\/5-300x188.png 300w, https:\/\/apieco.ir\/blog\/wp-content\/uploads\/2020\/04\/5-768x480.png 768w, https:\/\/apieco.ir\/blog\/wp-content\/uploads\/2020\/04\/5-1536x961.png 1536w, https:\/\/apieco.ir\/blog\/wp-content\/uploads\/2020\/04\/5.png 1592w\" sizes=\"(max-width: 508px) 100vw, 508px\" \/><\/span><\/p>\n<p><span style=\"color: #000000;\"><strong>\u062a\u0623\u06cc\u06cc\u062f \u06a9\u0646\u06cc\u062f \u06a9\u0647 <\/strong><strong>pet<\/strong><strong> \u0634\u0645\u0627 \u0627\u06cc\u062c\u0627\u062f \u0634\u062f\u0647 \u0627\u0633\u062a<\/strong><\/span><\/p>\n<ol>\n<li><span style=\"color: #000000;\">\u0646\u0642\u0637\u0647 \u06cc \u0646\u0647\u0627\u06cc\u06cc GET\/pet\/{petId} \u0631\u0627 \u062a\u0648\u0633\u0639\u0647 \u062f\u0647\u06cc\u062f.<\/span><\/li>\n<li><span style=\"color: #000000;\">\u0631\u0648\u06cc Tty it out \u06a9\u0644\u06cc\u06a9 \u06a9\u0646\u06cc\u062f.<\/span><\/li>\n<li><span style=\"color: #000000;\">\u0634\u0646\u0627\u0633\u0647 pet \u06a9\u0647 \u062f\u0631 \u0639\u0645\u0644\u06cc\u0627\u062a \u0642\u0628\u0644\u06cc \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0631\u062f\u0647 \u0627\u06cc\u062f \u0631\u0627 \u0648\u0627\u0631\u062f \u0646\u0645\u0627\u06cc\u06cc\u062f. (\u0627\u06af\u0631 \u0622\u0646 \u0631\u0627 \u0641\u0631\u0627\u0645\u0648\u0634 \u06a9\u0631\u062f\u0647 \u0627\u06cc\u062f\u060c \u0628\u0647 \u0646\u0642\u0637\u0647 \u067e\u0627\u06cc\u0627\u0646\u06cc POST Pet \u0646\u06af\u0627\u0647 \u06a9\u0631\u062f\u0647 \u0648 \u0645\u0642\u062f\u0627\u0631 \u0622\u0646 \u0631\u0627 \u0628\u0631\u0631\u0633\u06cc \u06a9\u0646\u06cc\u062f.)<\/span><\/li>\n<li><span style=\"color: #000000;\">\u0631\u0648\u06cc Execute \u06a9\u0644\u06cc\u06a9 \u06a9\u0646\u06cc\u062f. \u0628\u0627\u06cc\u062f \u0646\u0627\u0645 pet \u062e\u0648\u062f \u0631\u0627 \u06a9\u0647 \u062f\u0631 \u0628\u062e\u0634 Response \u0628\u0627\u0632\u06af\u0634\u062a \u062f\u0627\u062f\u0647 \u0634\u062f\u0647 \u0627\u0633\u062a \u0631\u0627 \u0628\u0628\u06cc\u0646\u06cc\u062f.<\/span><\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify;\"><span style=\"color: #000000;\"><strong>\u0627\u06cc\u062c\u0627\u062f \u0646\u0645\u0627\u06cc\u0634 <\/strong><strong>UI Swagger<\/strong><strong> \u0628\u0627 \u0633\u0646\u062f \u0645\u0634\u062e\u0635\u0627\u062a <\/strong><strong>OpenAPI<\/strong><\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"color: #000000;\">\u062f\u0631 \u0627\u06cc\u0646 \u0642\u0633\u0645\u062a\u060c \u06cc\u06a9 \u0635\u0641\u062d\u0647 \u0646\u0645\u0627\u06cc\u0634 UI Swagger \u0631\u0627 \u0628\u0631\u0627\u06cc \u06cc\u06a9 \u0633\u0646\u062f \u0645\u0634\u062e\u0635\u0627\u062a OpenAPI \u0627\u06cc\u062c\u0627\u062f \u062e\u0648\u0627\u0647\u06cc\u062f \u06a9\u0631\u062f. \u0627\u06af\u0631 \u0627\u0632 \u06cc\u06a9\u06cc \u0627\u0632 \u0641\u0627\u06cc\u0644\u0647\u0627\u06cc \u0627\u0632 \u067e\u06cc\u0634 \u0633\u0627\u062e\u062a\u0647 OpenAPI \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc \u06a9\u0646\u06cc\u062f \u060c \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u062f\u0645\u0648\u06cc\u06cc \u0627\u0632 \u0622\u0646\u0686\u0647 \u06a9\u0647 \u062f\u0631 \u0627\u06cc\u0646\u062c\u0627 \u062e\u0648\u0627\u0647\u06cc\u0645 \u0633\u0627\u062e\u062a \u0631\u0627 \u0645\u0634\u0627\u0647\u062f\u0647 \u06a9\u0646\u06cc\u062f:<\/span><\/p>\n<p><span style=\"color: #000000;\"><img loading=\"lazy\" class=\"aligncenter wp-image-79194 \" src=\"https:\/\/apieco.ir\/blog\/wp-content\/uploads\/2020\/04\/6-1024x796.png\" alt=\"\" width=\"457\" height=\"355\" srcset=\"https:\/\/apieco.ir\/blog\/wp-content\/uploads\/2020\/04\/6-1024x796.png 1024w, https:\/\/apieco.ir\/blog\/wp-content\/uploads\/2020\/04\/6-300x233.png 300w, https:\/\/apieco.ir\/blog\/wp-content\/uploads\/2020\/04\/6-768x597.png 768w, https:\/\/apieco.ir\/blog\/wp-content\/uploads\/2020\/04\/6-1536x1195.png 1536w, https:\/\/apieco.ir\/blog\/wp-content\/uploads\/2020\/04\/6.png 1692w\" sizes=\"(max-width: 457px) 100vw, 457px\" \/><\/span><\/p>\n<p><span style=\"color: #000000;\">\u0627\u0628\u062a\u062f\u0627 \u0627\u0637\u0645\u06cc\u0646\u0627\u0646 \u062d\u0627\u0635\u0644 \u06a9\u0646\u06cc\u062f \u06a9\u0647 Swagger \u0631\u0627 \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u0628\u0647 \u0635\u0648\u0631\u062a local \u0645\u0634\u0627\u0647\u062f\u0647 \u06a9\u0646\u06cc\u062f. \u0633\u067e\u0633 URL \u0633\u0646\u062f Petstore OpenAPI \u0631\u0627 \u0628\u0627 \u06cc\u06a9 URL \u0633\u0646\u062f OpenWeatherMap OpenAPI \u062a\u063a\u06cc\u06cc\u0631 \u062f\u0647\u06cc\u062f.<\/span><\/p>\n<ol>\n<li><span style=\"color: #000000;\">\u0628\u0647 Swagger UI GitHub project \u0628\u0631\u0648\u06cc\u062f.<\/span><\/li>\n<li><span style=\"color: #000000;\">\u0628\u0631 \u0631\u0648\u06cc Clone or download \u0648 \u0633\u067e\u0633 \u0631\u0648\u06cc Download ZIP \u06a9\u0644\u06cc\u06a9 \u06a9\u0646\u06cc\u062f. \u0641\u0627\u06cc\u0644 \u0647\u0627 \u0631\u0627 \u062f\u0631 \u06cc\u06a9 \u0645\u06a9\u0627\u0646 \u0645\u0646\u0627\u0633\u0628 \u0631\u0648\u06cc \u0631\u0627\u06cc\u0627\u0646\u0647 \u062e\u0648\u062f \u062f\u0627\u0646\u0644\u0648\u062f \u06a9\u0631\u062f\u0647 \u0648 \u0622\u0646\u0647\u0627 \u0631\u0627 \u0627\u0633\u062a\u062e\u0631\u0627\u062c \u06a9\u0646\u06cc\u062f.<\/span><\/li>\n<\/ol>\n<p><span style=\"color: #000000;\">\u062a\u0646\u0647\u0627 \u067e\u0648\u0634\u0647 \u0627\u06cc \u06a9\u0647 \u0634\u0645\u0627 \u062f\u0631 downloaded zip \u0628\u0627 \u0622\u0646 \u06a9\u0627\u0631 \u0645\u06cc\u06a9\u0646\u06cc\u062f\u060c \u067e\u0648\u0634\u0647 dist (\u0645\u062e\u0641\u0641 distribution) \u0645\u06cc\u0628\u0627\u0634\u062f. \u0647\u0645\u0647 \u0645\u0648\u0627\u0631\u062f \u062f\u06cc\u06af\u0631 \u0641\u0642\u0637 \u062f\u0631\u0635\u0648\u0631\u062a\u06cc \u06a9\u0647 \u0641\u0627\u06cc\u0644\u0647\u0627\u06cc Swagger \u0631\u0627 \u062f\u0648\u0628\u0627\u0631\u0647 \u06a9\u0627\u0645\u067e\u0627\u06cc\u0644 \u06a9\u0646\u06cc\u062f\u060c \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc \u0634\u0648\u062f\u060c \u06a9\u0647 \u062e\u0627\u0631\u062c \u0627\u0632 \u0645\u062d\u062f\u0648\u062f\u0647 \u0627\u06cc\u0646 \u0622\u0645\u0648\u0632\u0634 \u0627\u0633\u062a.<\/span><\/p>\n<ol start=\"3\">\n<li><span style=\"color: #000000;\">\u062f\u0631 \u0645\u0631\u0648\u0631\u06af\u0631 Chrome \u062e\u0648\u062f\u060c Cmd + O \u062f\u0631 \u0645\u06a9 \u06cc\u0627 Ctrl + O \u062f\u0631 \u0648\u06cc\u0646\u062f\u0648\u0632 \u0631\u0627 \u0641\u0634\u0627\u0631 \u062f\u0627\u062f\u0647\u060c \u0627\u0632 \u067e\u0648\u0634\u0647 dist \u0641\u0627\u06cc\u0644 html \u0631\u0627 \u0627\u0646\u062a\u062e\u0627\u0628 \u06a9\u0646\u06cc\u062f\u060c<\/span><\/li>\n<\/ol>\n<p><span style=\"color: #000000;\">\u0628\u0627\u06cc\u062f \u0645\u062d\u062a\u0648\u0627\u06cc Petstore Swagger \u0631\u0627 \u0628\u0628\u06cc\u0646\u06cc\u062f. \u0627\u06a9\u0646\u0648\u0646 \u0641\u0627\u06cc\u0644 \u0645\u0634\u062e\u0635\u0627\u062a OpenAPI \u0631\u0627 \u0628\u0627 \u0641\u0627\u06cc\u0644 \u062f\u06cc\u06af\u0631\u06cc \u062a\u0646\u0638\u06cc\u0645 \u0646\u0645\u0627\u06cc\u06cc\u062f.<\/span><\/p>\n<ol start=\"4\">\n<li><span style=\"color: #000000;\">\u062f\u0631 \u062f\u0627\u062e\u0644 \u067e\u0648\u0634\u0647 dist \u062e\u0648\u062f\u060c html \u0631\u0627 \u062f\u0631 \u06cc\u06a9 \u0648\u06cc\u0631\u0627\u06cc\u0634\u06af\u0631 \u0645\u062a\u0646 \u0645\u0627\u0646\u0646\u062f Sublime Text \u0628\u0627\u0632 \u06a9\u0646\u06cc\u062f.<\/span><\/li>\n<li><span style=\"color: #000000;\">\u06a9\u062f \u0632\u06cc\u0631 \u062c\u0633\u062a\u062c\u0648 \u0646\u0645\u0627\u06cc\u06cc\u062f:<\/span><\/li>\n<\/ol>\n<p><span style=\"color: #000000;\"><img loading=\"lazy\" class=\"aligncenter wp-image-79195 size-full\" src=\"https:\/\/apieco.ir\/blog\/wp-content\/uploads\/2020\/04\/7.png\" alt=\"\" width=\"700\" height=\"64\" srcset=\"https:\/\/apieco.ir\/blog\/wp-content\/uploads\/2020\/04\/7.png 700w, https:\/\/apieco.ir\/blog\/wp-content\/uploads\/2020\/04\/7-300x27.png 300w\" sizes=\"(max-width: 700px) 100vw, 700px\" \/><\/span><\/p>\n<ol start=\"6\">\n<li><span style=\"color: #000000;\">\u0645\u0642\u062f\u0627\u0631 url \u0631\u0627 \u0628\u0647 \u06cc\u06a9 URL \u0648\u0628 \u0622\u0646\u0644\u0627\u06cc\u0646 \u062f\u0631 \u0641\u0627\u06cc\u0644 Swagger \u062e\u0648\u062f \u062a\u063a\u06cc\u06cc\u0631 \u062f\u0647\u06cc\u062f. \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u0645\u062b\u0627\u0644: https:\/\/idratherbewriting.com\/learnapidoc\/docs\/rest_api_ Specifications\/openapi_openweathermap.yml. \u0633\u067e\u0633 \u0641\u0627\u06cc\u0644 \u0631\u0627 \u0630\u062e\u06cc\u0631\u0647 \u06a9\u0646\u06cc\u062f.<\/span><\/li>\n<li style=\"text-align: justify;\"><span style=\"color: #000000;\">\u0641\u0627\u06cc\u0644 html \u0631\u0627 \u062f\u0631 \u0645\u0631\u0648\u0631\u06af\u0631 Chrome \u0631\u0641\u0631\u0634 \u0646\u0645\u0627\u06cc\u06cc\u062f. \u0627\u06cc\u0646 \u0645\u062d\u062a\u0648\u0627 \u0628\u0627\u06cc\u062f \u0645\u062d\u062a\u0648\u0627\u06cc API OpenWeatherMap \u0631\u0627 \u0628\u0647 \u062c\u0627\u06cc Swagger Petstore \u0646\u0634\u0627\u0646 \u062f\u0647\u062f.<\/span><\/li>\n<\/ol>\n<p style=\"text-align: justify;\"><span style=\"color: #000000;\">\u0647\u0646\u06af\u0627\u0645\u06cc \u06a9\u0647 \u0622\u0645\u0627\u062f\u0647 \u0627\u0646\u062a\u0634\u0627\u0631 \u0641\u0627\u06cc\u0644 Swagger UI \u062e\u0648\u062f \u0647\u0633\u062a\u06cc\u062f\u060c \u0641\u0642\u0637 \u067e\u0648\u0634\u0647 dist \u0631\u0627 \u062f\u0631 \u06cc\u06a9 \u0648\u0628 \u0633\u0631\u0648\u0631 \u0622\u067e\u0644\u0648\u062f \u06a9\u0631\u062f\u0647 \u0648 \u0628\u0647 \u0641\u0627\u06cc\u0644 index.html \u0628\u0631\u0648\u06cc\u062f. \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u0645\u062b\u0627\u0644\u060c \u0627\u06af\u0631 \u062f\u0627\u06cc\u0631\u06a9\u062a\u0648\u0631\u06cc \u062e\u0648\u062f \u0631\u0627 dist \u0646\u0627\u0645\u06cc\u062f\u06cc\u062f\u060c \u0628\u0627\u06cc\u062f \u0628\u0647 \u00a0http:\/\/myserver.com\/dist\/ \u0628\u0631\u0648\u06cc\u062f.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #000000;\"><strong>\u0645\u0634\u0627\u0647\u062f\u0647 \u06cc \u0641\u0627\u06cc\u0644 \u0645\u062d\u0644\u06cc <\/strong><strong>OpenAPI<\/strong><strong> \u062f\u0631 <\/strong><strong>UI Swagger<\/strong><\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"color: #000000;\">\u0628\u0631\u0627\u06cc \u0645\u0634\u0627\u0647\u062f\u0647 \u06cc\u06a9 \u0641\u0627\u06cc\u0644 \u0645\u062d\u0644\u06cc OpenAPI (\u0628\u0647 \u062c\u0627\u06cc \u06cc\u06a9 \u0641\u0627\u06cc\u0644 OpenAPI \u06a9\u0647 \u062f\u0631 \u06cc\u06a9 \u0648\u0628 \u0633\u0631\u0648\u0631 \u0642\u0631\u0627\u0631 \u062f\u0627\u0631\u062f)\u060c \u0628\u0627\u06cc\u062f \u06cc\u06a9 \u0633\u0631\u0648\u0631 HTTP \u0631\u0627 \u0631\u0648\u06cc \u06a9\u0627\u0645\u06cc\u067e\u0648\u062a\u0631 \u062e\u0648\u062f \u0627\u062c\u0631\u0627 \u06a9\u0646\u06cc\u062f. \u0627\u06cc\u0646 \u0627\u0645\u0631 \u0628\u0647 \u0627\u06cc\u0646 \u062f\u0644\u06cc\u0644 \u0627\u0633\u062a \u06a9\u0647 \u0645\u062d\u062f\u0648\u062f\u06cc\u062a\u0647\u0627\u06cc \u0627\u0645\u0646\u06cc\u062a\u06cc CORS (cross-origin resource sharing) \u062f\u0631 Chrome \u0627\u0632 \u0627\u062c\u0631\u0627\u06cc Swagger UI \u062c\u0644\u0648\u06af\u06cc\u0631\u06cc \u0645\u06cc\u06a9\u0646\u062f. UI Swagger \u0628\u0631\u0627\u06cc \u062a\u062d\u0642\u0642 \u0627\u0644\u0632\u0627\u0645\u0627\u062a \u0627\u0645\u0646\u06cc\u062a\u06cc \u0628\u0627\u06cc\u062f \u0631\u0648\u06cc \u06cc\u06a9 \u0648\u0628 \u0633\u0631\u0648\u0631 load \u0634\u0648\u062f.<\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"color: #000000;\">\u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u06cc\u06a9 \u0648\u0628 \u0633\u0631\u0648\u0631 \u0645\u062d\u0644\u06cc \u0631\u0627 \u0627\u0632 \u0637\u0631\u06cc\u0642 \u0645\u0627\u0698\u0648\u0644 Python\u2019s SimpleHTTPServer \u062f\u0631 \u0631\u0627\u06cc\u0627\u0646\u0647 \u062e\u0648\u062f \u0627\u062c\u0631\u0627 \u06a9\u0646\u06cc\u062f. \u0645\u06a9 \u062f\u0627\u0631\u0627\u06cc \u0646\u0633\u062e\u0647 \u0633\u06cc\u0633\u062a\u0645 Python \u0627\u0633\u062a \u06a9\u0647 \u0628\u0635\u0648\u0631\u062a \u067e\u06cc\u0634 \u0641\u0631\u0636 \u0646\u0635\u0628 \u0634\u062f\u0647 \u0627\u0633\u062a\u060c \u0627\u0645\u0627 \u06a9\u0627\u0645\u067e\u06cc\u0648\u062a\u0631\u0647\u0627\u06cc \u0648\u06cc\u0646\u062f\u0648\u0632 \u0646\u06cc\u0627\u0632 \u0628\u0647 \u0646\u0635\u0628 \u067e\u0627\u06cc\u062a\u0648\u0646 \u062f\u0627\u0631\u0646\u062f.<\/span><\/p>\n<p><span style=\"color: #000000;\"><strong>Windows<\/strong><strong>: \u0627\u062c\u0631\u0627\u06cc <\/strong><strong>Python simple HTTP server<\/strong><\/span><\/p>\n<ol>\n<li><span style=\"color: #000000;\">Python 3x \u0631\u0627 \u062f\u0627\u0646\u0644\u0648\u062f \u0648 \u0646\u0635\u0628 \u06a9\u0646\u06cc\u062f.<\/span><\/li>\n<\/ol>\n<p><span style=\"color: #000000;\"><img loading=\"lazy\" class=\"aligncenter wp-image-79196 \" src=\"https:\/\/apieco.ir\/blog\/wp-content\/uploads\/2020\/04\/8.png\" alt=\"\" width=\"524\" height=\"329\" srcset=\"https:\/\/apieco.ir\/blog\/wp-content\/uploads\/2020\/04\/8.png 828w, https:\/\/apieco.ir\/blog\/wp-content\/uploads\/2020\/04\/8-300x188.png 300w, https:\/\/apieco.ir\/blog\/wp-content\/uploads\/2020\/04\/8-768x481.png 768w\" sizes=\"(max-width: 524px) 100vw, 524px\" \/><\/span><\/p>\n<ol start=\"2\">\n<li><span style=\"color: #000000;\">\u067e\u0633 \u0627\u0632 \u0646\u0635\u0628 \u067e\u0627\u06cc\u062a\u0648\u0646 \u060c command prompt \u062e\u0648\u062f \u0631\u0627 \u0628\u0628\u0646\u062f\u06cc\u062f \u0648 \u062f\u0648\u0628\u0627\u0631\u0647 \u0622\u0646 \u0631\u0627 \u0628\u0627\u0632 \u06a9\u0646\u06cc\u062f.<\/span><\/li>\n<li><span style=\"color: #000000;\">\u062f\u0631 \u0628\u062e\u0634 command prompt \u060c \u0641\u0647\u0631\u0633\u062a Swagger UI dist \u0631\u0627 \u0645\u0631\u0648\u0631 \u06a9\u0646\u06cc\u062f.<\/span><\/li>\n<\/ol>\n<p><span style=\"color: #000000;\">\u0628\u0631\u0627\u06cc \u0645\u0631\u0648\u0631 \u062f\u0631 command prompt \u00a0\u0648\u06cc\u0646\u062f\u0648\u0632 \u060c cd&lt;folder name&gt; \u0631\u0627 \u062a\u0627\u06cc\u067e \u06a9\u0646\u06cc\u062f \u062a\u0627 \u0648\u0627\u0631\u062f \u067e\u0648\u0634\u0647 \u0634\u0648\u06cc\u062f. \u0628\u0631\u0627\u06cc \u062c\u0627\u0628\u062c\u0627\u06cc\u06cc \u06cc\u06a9 \u0641\u0647\u0631\u0633\u062a cd.. \u0631\u0627 \u062a\u0627\u06cc\u067e \u06a9\u0646\u06cc\u062f \u0648 \u0628\u0631\u0627\u06cc \u062f\u06cc\u062f\u0646 \u0644\u06cc\u0633\u062a\u06cc \u0627\u0632 \u0645\u062d\u062a\u0648\u0627\u06cc \u0641\u0647\u0631\u0633\u062a \u0641\u0639\u0644\u06cc\u060c dir \u0631\u0627 \u062a\u0627\u06cc\u067e \u0646\u0645\u0627\u06cc\u06cc\u062f.<\/span><\/p>\n<p><span style=\"color: #000000;\">\u0627\u06af\u0631 \u062f\u0631 \u06cc\u0627\u0641\u062a\u0646 \u062f\u0627\u06cc\u0631\u06a9\u062a\u0648\u0631\u06cc dist \u062f\u0631 command prompt \u0645\u0634\u06a9\u0644\u06cc \u062f\u0627\u0631\u06cc\u062f \u060c \u0627\u06cc\u0646 \u062a\u0631\u0641\u0646\u062f \u0631\u0627 \u0627\u0645\u062a\u062d\u0627\u0646 \u06a9\u0646\u06cc\u062f: cd \u0631\u0627 \u062a\u0627\u06cc\u067e \u06a9\u0631\u062f\u0647\u060c spacebar \u0631\u0627 \u0641\u0634\u0627\u0631 \u062f\u0647\u06cc\u062f \u0648 \u0633\u067e\u0633 \u067e\u0648\u0634\u0647 dist \u0631\u0627 \u0645\u0633\u062a\u0642\u06cc\u0645\u0627\u064b \u062f\u0631 \u0642\u0633\u0645\u062a command prompt \u0628\u06a9\u0634\u06cc\u062f. \u0645\u0633\u06cc\u0631 \u0628\u0647 \u0635\u0648\u0631\u062a \u062e\u0648\u062f\u06a9\u0627\u0631 \u0686\u0627\u067e \u0645\u06cc \u0634\u0648\u062f.<\/span><\/p>\n<ol start=\"4\">\n<li><span style=\"color: #000000;\">\u0628\u0639\u062f \u0627\u0632 \u0627\u06cc\u0646\u06a9\u0647 \u0628\u0647 \u067e\u0648\u0634\u0647 dist \u0647\u062f\u0627\u06cc\u062a \u0634\u062f\u06cc\u062f\u060c \u0633\u0631\u0648\u0631 \u0631\u0627 \u0631\u0627\u0647 \u0627\u0646\u062f\u0627\u0632\u06cc \u06a9\u0646\u06cc\u062f:<\/span><\/li>\n<\/ol>\n<p><span style=\"color: #000000;\"><img loading=\"lazy\" class=\"aligncenter wp-image-79197 size-full\" src=\"https:\/\/apieco.ir\/blog\/wp-content\/uploads\/2020\/04\/9.png\" alt=\"\" width=\"699\" height=\"64\" srcset=\"https:\/\/apieco.ir\/blog\/wp-content\/uploads\/2020\/04\/9.png 699w, https:\/\/apieco.ir\/blog\/wp-content\/uploads\/2020\/04\/9-300x27.png 300w\" sizes=\"(max-width: 699px) 100vw, 699px\" \/><\/span><\/p>\n<p><span style=\"color: #000000;\">\u0627\u06af\u0631 \u0627\u06cc\u0646 \u062f\u0633\u062a\u0648\u0631 \u06a9\u0627\u0631 \u0646\u06a9\u0631\u062f\u060c \u0622\u0646 \u0631\u0627 \u0628\u062f\u0648\u0646 \u06f3 \u0627\u0645\u062a\u062d\u0627\u0646 \u06a9\u0646\u06cc\u062f.<\/span><\/p>\n<p><span style=\"color: #000000;\">\u0633\u0631\u0648\u0631 Start \u0645\u06cc\u0634\u0648\u062f:<\/span><\/p>\n<p><span style=\"color: #000000;\"><img loading=\"lazy\" class=\"aligncenter wp-image-79198 size-full\" src=\"https:\/\/apieco.ir\/blog\/wp-content\/uploads\/2020\/04\/10.png\" alt=\"\" width=\"699\" height=\"64\" srcset=\"https:\/\/apieco.ir\/blog\/wp-content\/uploads\/2020\/04\/10.png 699w, https:\/\/apieco.ir\/blog\/wp-content\/uploads\/2020\/04\/10-300x27.png 300w\" sizes=\"(max-width: 699px) 100vw, 699px\" \/><\/span><\/p>\n<ol start=\"5\">\n<li><span style=\"color: #000000;\">\u0645\u0633\u06cc\u0631 http:\/\/0.0.0.0:8000\/ \u0631\u0627 \u06a9\u067e\u06cc \u06a9\u0631\u062f\u0647 \u0648 \u0622\u0646 \u0631\u0627 \u062f\u0631 \u0646\u0648\u0627\u0631 \u0622\u062f\u0631\u0633 \u062e\u0648\u062f paste \u0646\u0645\u0627\u06cc\u06cc\u062f. \u0627\u06cc\u0646 \u0622\u062f\u0631\u0633 \u0628\u0647 \u0634\u0645\u0627 \u0627\u0645\u06a9\u0627\u0646 \u0645\u0634\u0627\u0647\u062f\u0647 \u0648\u0628 \u0633\u0631\u0648\u0631 \u0645\u062d\u0644\u06cc \u0631\u0627 \u0645\u06cc\u062f\u0647\u062f.<\/span><\/li>\n<\/ol>\n<p style=\"text-align: justify;\"><span style=\"color: #000000;\">\u0633\u0631\u0648\u0631\u0647\u0627\u06cc \u0648\u0628 \u0628\u0647 \u0637\u0648\u0631 \u067e\u06cc\u0634 \u0641\u0631\u0636 \u0631\u0648\u06cc \u0641\u0627\u06cc\u0644 index.html \u062f\u0631 \u0641\u0647\u0631\u0633\u062a \u0642\u0631\u0627\u0631 \u0645\u06cc\u06af\u06cc\u0631\u0646\u062f\u060c \u0628\u0646\u0627\u0628\u0631\u0627\u06cc\u0646 \u0641\u0627\u06cc\u0644 UI Swagger \u0631\u0627 \u0628\u0647 \u0635\u0648\u0631\u062a \u062e\u0648\u062f\u06a9\u0627\u0631 \u0646\u0634\u0627\u0646 \u062e\u0648\u0627\u0647\u062f\u062f\u0627\u062f. \u0627\u06af\u0631 \u0645\u0631\u0648\u0631\u06af\u0631 \u0628\u0647 index.html \u0647\u062f\u0627\u06cc\u062a \u0646\u0645\u06cc\u0634\u0648\u062f\u060c \u0622\u0646 \u0631\u0627 \u0628\u0647 \u0635\u0648\u0631\u062a \u062f\u0633\u062a\u06cc \u0627\u0636\u0627\u0641\u0647 \u06a9\u0646\u06cc\u062f: http:\/\/0.0.0.0:8000\/\/index.html.<\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"color: #000000;\">\u0628\u0631\u0627\u06cc \u0645\u062a\u0648\u0642\u0641 \u06a9\u0631\u062f\u0646 \u0633\u0631\u0648\u0631 \u060c \u06a9\u0644\u06cc\u062f \u0633\u0631\u06cc\u0639 Ctrl + C \u0631\u0627 \u062f\u0631 \u0642\u0633\u0645\u062a command prompt \u062e\u0648\u062f \u0641\u0634\u0627\u0631 \u062f\u0647\u06cc\u062f. \u0627\u06af\u0631 \u0642\u0628\u0644 \u0627\u0632 \u0645\u062a\u0648\u0642\u0641 \u06a9\u0631\u062f\u0646 \u0633\u0631\u0648\u06cc\u0633 Command Prompt \u062e\u0648\u062f \u0631\u0627 \u0628\u0633\u062a\u0647 \u0627\u06cc\u062f \u060c ps \u0631\u0627 \u062a\u0627\u06cc\u067e \u06a9\u0631\u062f\u0647\u060c \u0634\u0646\u0627\u0633\u0647 \u0641\u0631\u0627\u06cc\u0646\u062f \u0631\u0627 \u067e\u06cc\u062f\u0627 \u06a9\u0646\u06cc\u062f \u060c \u0633\u067e\u0633 kill -9 &lt;process ID&gt; \u0631\u0627 \u062a\u0627\u06cc\u067e \u0646\u0645\u0627\u06cc\u06cc\u062f.<\/span><\/p>\n<p style=\"text-align: justify;\">\n<p><span style=\"color: #000000;\"><strong>Mac<\/strong><strong>: \u0627\u062c\u0631\u0627\u06cc <\/strong><strong>Python simple HTTP server<\/strong><\/span><\/p>\n<ol>\n<li><span style=\"color: #000000;\">\u062f\u0631 terminal \u062e\u0648\u062f\u060c \u0628\u0647 \u0641\u0647\u0631\u0633\u062a Swagger UI dist \u0645\u0631\u0627\u062c\u0639\u0647 \u06a9\u0646\u06cc\u062f.<\/span><\/li>\n<\/ol>\n<p style=\"text-align: justify;\"><span style=\"color: #000000;\">\u0628\u0631\u0627\u06cc \u0645\u0631\u0648\u0631 \u062f\u0631 terminal\u060c cd&lt;folder name&gt; \u0631\u0627 \u062a\u0627\u06cc\u067e \u06a9\u0646\u06cc\u062f \u062a\u0627 \u0648\u0627\u0631\u062f \u067e\u0648\u0634\u0647 \u0634\u0648\u06cc\u062f. \u0628\u0631\u0627\u06cc \u062c\u0627\u0628\u062c\u0627\u06cc\u06cc \u06cc\u06a9 \u0641\u0647\u0631\u0633\u062a \u060c cd.. \u0631\u0627 \u062a\u0627\u06cc\u067e \u0646\u0645\u0627\u06cc\u06cc\u062f \u0648 \u0628\u0631\u0627\u06cc \u062f\u06cc\u062f\u0646 \u0644\u06cc\u0633\u062a\u06cc \u0627\u0632 \u0645\u062d\u062a\u0648\u0627\u06cc \u0641\u0647\u0631\u0633\u062a \u0641\u0639\u0644\u06cc \u060c ls \u0631\u0627 \u062a\u0627\u06cc\u067e \u06a9\u0646\u06cc\u062f.<\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"color: #000000;\">\u0627\u06af\u0631 \u062f\u0631 \u06cc\u0627\u0641\u062a\u0646 \u0641\u0647\u0631\u0633\u062a dist \u062f\u0631 command prompt \u0645\u0634\u06a9\u0644\u06cc \u062f\u0627\u0631\u06cc\u062f\u060c \u0627\u06cc\u0646 \u062a\u0631\u0641\u0646\u062f \u0631\u0627 \u0627\u0645\u062a\u062d\u0627\u0646 \u06a9\u0646\u06cc\u062f: cd \u0631\u0627 \u062a\u0627\u06cc\u067e \u06a9\u0631\u062f\u0647\u060c spacebar \u0631\u0627 \u0641\u0634\u0627\u0631 \u062f\u0647\u06cc\u062f \u0648 \u0633\u067e\u0633 \u067e\u0648\u0634\u0647 dist \u0631\u0627 \u0645\u0633\u062a\u0642\u06cc\u0645\u0627\u064b \u062f\u0631 command prompt \u0628\u06a9\u0634\u06cc\u062f. \u0645\u0633\u06cc\u0631 \u0628\u0647 \u0635\u0648\u0631\u062a \u062e\u0648\u062f\u06a9\u0627\u0631 \u0686\u0627\u067e \u0645\u06cc \u0634\u0648\u062f.<\/span><\/p>\n<ol start=\"2\">\n<li style=\"text-align: justify;\"><span style=\"color: #000000;\">\u0627\u0632 \u0622\u0646\u062c\u0627 \u06a9\u0647 \u067e\u0627\u06cc\u062a\u0648\u0646 \u0631\u0648\u06cc \u0645\u06a9 \u0646\u0635\u0628 \u0645\u06cc\u0628\u0627\u0634\u062f\u060c \u0628\u0631\u0627\u06cc \u0631\u0627\u0647 \u0627\u0646\u062f\u0627\u0632\u06cc \u0633\u0631\u0648\u0631 \u0641\u0642\u0637 \u06a9\u0627\u0641\u06cc\u0633\u062a \u0645\u062a\u0646 \u0632\u06cc\u0631 \u0631\u0627 \u062f\u0631 terminal \u0627\u062c\u0631\u0627 \u06a9\u0646\u06cc\u062f:<\/span><\/li>\n<\/ol>\n<p><span style=\"color: #000000;\"><img loading=\"lazy\" class=\"aligncenter wp-image-79199 size-full\" src=\"https:\/\/apieco.ir\/blog\/wp-content\/uploads\/2020\/04\/11.png\" alt=\"\" width=\"696\" height=\"61\" srcset=\"https:\/\/apieco.ir\/blog\/wp-content\/uploads\/2020\/04\/11.png 696w, https:\/\/apieco.ir\/blog\/wp-content\/uploads\/2020\/04\/11-300x26.png 300w\" sizes=\"(max-width: 696px) 100vw, 696px\" \/><\/span><\/p>\n<p><span style=\"color: #000000;\">\u0627\u06af\u0631 \u0627\u06cc\u0646 \u062f\u0633\u062a\u0648\u0631 \u06a9\u0627\u0631 \u0646\u06a9\u0631\u062f\u060c \u062f\u0631 \u0635\u0648\u0631\u062a\u06cc \u06a9\u0647 Python3 \u0631\u0627 \u0646\u0635\u0628 \u06a9\u0631\u062f\u0647 \u0627\u06cc\u062f\u060c \u0622\u0646 \u0631\u0627 \u0628\u0627 \u06f3 \u0627\u0645\u062a\u062d\u0627\u0646 \u06a9\u0646\u06cc\u062f:<\/span><\/p>\n<p><span style=\"color: #000000;\"><img loading=\"lazy\" class=\"aligncenter wp-image-79200 size-full\" src=\"https:\/\/apieco.ir\/blog\/wp-content\/uploads\/2020\/04\/12.png\" alt=\"\" width=\"699\" height=\"67\" srcset=\"https:\/\/apieco.ir\/blog\/wp-content\/uploads\/2020\/04\/12.png 699w, https:\/\/apieco.ir\/blog\/wp-content\/uploads\/2020\/04\/12-300x29.png 300w\" sizes=\"(max-width: 699px) 100vw, 699px\" \/><\/span><\/p>\n<p><span style=\"color: #000000;\">\u0633\u0631\u0648\u0631 Start \u0645\u06cc\u0634\u0648\u062f:<\/span><\/p>\n<p><span style=\"color: #000000;\"><img loading=\"lazy\" class=\"aligncenter wp-image-79198 size-full\" src=\"https:\/\/apieco.ir\/blog\/wp-content\/uploads\/2020\/04\/10.png\" alt=\"\" width=\"699\" height=\"64\" srcset=\"https:\/\/apieco.ir\/blog\/wp-content\/uploads\/2020\/04\/10.png 699w, https:\/\/apieco.ir\/blog\/wp-content\/uploads\/2020\/04\/10-300x27.png 300w\" sizes=\"(max-width: 699px) 100vw, 699px\" \/><\/span><\/p>\n<ol start=\"6\">\n<li><span style=\"color: #000000;\">\u0645\u0633\u06cc\u0631 http:\/\/0.0.0.0:8000\/ \u0631\u0627 \u06a9\u067e\u06cc \u06a9\u0631\u062f\u0647 \u0648 \u0622\u0646 \u0631\u0627 \u062f\u0631 \u0646\u0648\u0627\u0631 \u0622\u062f\u0631\u0633 \u062e\u0648\u062f paste \u0646\u0645\u0627\u06cc\u06cc\u062f. \u0627\u06cc\u0646 \u0622\u062f\u0631\u0633 \u0628\u0647 \u0634\u0645\u0627 \u0627\u0645\u06a9\u0627\u0646 \u0645\u0634\u0627\u0647\u062f\u0647 \u0648\u0628 \u0633\u0631\u0648\u0631 \u0645\u062d\u0644\u06cc \u0631\u0627 \u0645\u06cc\u062f\u0647\u062f.<\/span><\/li>\n<\/ol>\n<p style=\"text-align: justify;\"><span style=\"color: #000000;\">\u0633\u0631\u0648\u0631\u0647\u0627\u06cc \u0648\u0628 \u0628\u0647 \u0637\u0648\u0631 \u067e\u06cc\u0634 \u0641\u0631\u0636 \u0631\u0648\u06cc \u0641\u0627\u06cc\u0644 index.html \u062f\u0631 \u0641\u0647\u0631\u0633\u062a \u0642\u0631\u0627\u0631 \u0645\u06cc\u06af\u06cc\u0631\u0646\u062f\u060c \u0628\u0646\u0627\u0628\u0631\u0627\u06cc\u0646 \u0641\u0627\u06cc\u0644 UI Swagger \u0631\u0627 \u0628\u0647 \u0635\u0648\u0631\u062a \u062e\u0648\u062f\u06a9\u0627\u0631 \u0646\u0634\u0627\u0646 \u062e\u0648\u0627\u0647\u062f\u062f\u0627\u062f. \u0627\u06af\u0631 \u0645\u0631\u0648\u0631\u06af\u0631 \u0628\u0647 index.html \u0647\u062f\u0627\u06cc\u062a \u0646\u0645\u06cc\u0634\u0648\u062f\u060c \u0622\u0646 \u0631\u0627 \u0628\u0647 \u0635\u0648\u0631\u062a \u062f\u0633\u062a\u06cc \u0627\u0636\u0627\u0641\u0647 \u06a9\u0646\u06cc\u062f: http:\/\/0.0.0.0:8000\/\/index.html.<\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"color: #000000;\">\u0628\u0631\u0627\u06cc \u0645\u062a\u0648\u0642\u0641 \u06a9\u0631\u062f\u0646 \u0633\u0631\u0648\u0631 \u060c \u06a9\u0644\u06cc\u062f \u0633\u0631\u06cc\u0639 Ctrl + C \u0631\u0627 \u062f\u0631 \u0642\u0633\u0645\u062a command prompt \u062e\u0648\u062f \u0641\u0634\u0627\u0631 \u062f\u0647\u06cc\u062f. \u0627\u06af\u0631 \u0642\u0628\u0644 \u0627\u0632 \u0645\u062a\u0648\u0642\u0641 \u06a9\u0631\u062f\u0646 \u0633\u0631\u0648\u06cc\u0633 Command Prompt \u062e\u0648\u062f \u0631\u0627 \u0628\u0633\u062a\u0647 \u0627\u06cc\u062f \u060c ps \u0631\u0627 \u062a\u0627\u06cc\u067e \u06a9\u0631\u062f\u0647\u060c \u0634\u0646\u0627\u0633\u0647 \u0641\u0631\u0627\u06cc\u0646\u062f \u0631\u0627 \u067e\u06cc\u062f\u0627 \u06a9\u0646\u06cc\u062f \u060c \u0633\u067e\u0633 kill -9 &lt;process ID&gt; \u0631\u0627 \u062a\u0627\u06cc\u067e \u0646\u0645\u0627\u06cc\u06cc\u062f.<\/span><\/p>\n<p><span style=\"color: #000000;\"><strong>\u0634\u062e\u0635\u06cc \u0633\u0627\u0632\u06cc \u0641\u0627\u06cc\u0644 <\/strong><strong>OpenAPI<\/strong><\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"color: #000000;\">\u0628\u0647 \u0637\u0648\u0631 \u067e\u06cc\u0634 \u0641\u0631\u0636 \u060c SwaggerUI \u06cc\u06a9 \u0641\u0627\u06cc\u0644 Petstore OpenAPI \u062f\u0627\u0631\u062f \u06a9\u0647 \u062f\u0631 \u067e\u0627\u0631\u0627\u0645\u062a\u0631 url \u062f\u0631 \u0641\u0627\u06cc\u0644 index.html \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u0634\u062f\u0647 \u0627\u0633\u062a. \u0628\u0647 \u062c\u0627\u06cc \u0622\u0646\u060c \u0628\u0627\u06cc\u062f \u0641\u0627\u06cc\u0644 \u0645\u062d\u0644\u06cc \u062e\u0648\u062f \u0631\u0627 \u0642\u0631\u0627\u0631 \u062f\u0647\u06cc\u062f.<\/span><\/p>\n<ol>\n<li><span style=\"color: #000000;\">\u0633\u0646\u062f OpenAPI \u0632\u06cc\u0631 \u0631\u0627 \u062f\u0627\u0646\u0644\u0648\u062f \u06a9\u0646\u06cc\u062f (\u0631\u0648\u06cc \u0644\u06cc\u0646\u06a9 \u0631\u0627\u0633\u062a \u06a9\u0644\u06cc\u06a9 \u06a9\u0631\u062f\u0647 \u0648 \u0641\u0627\u06cc\u0644 YAML \u0631\u0627 \u0631\u0648\u06cc \u062f\u0633\u06a9\u062a\u0627\u067e \u062e\u0648\u062f \u0630\u062e\u06cc\u0631\u0647 \u0646\u0645\u0627\u06cc\u06cc\u062f): <a style=\"color: #000000;\" href=\"https:\/\/idratherbewriting.com\/learnapidoc\/docs\/rest_api_%20Specifications\/openapi_openweathermap.yml\">https:\/\/idratherbewriting.com\/learnapidoc\/docs\/rest_api_ Specifications\/openapi_openweathermap.yml<\/a><\/span><\/li>\n<li><span style=\"color: #000000;\">\u0641\u0627\u06cc\u0644 \u0645\u0634\u062e\u0635\u0627\u062a OpenAPI \u062e\u0648\u062f \u060c yml \u0631\u0627 \u062f\u0631 \u067e\u0648\u0634\u0647 dist \u0628\u06a9\u0634\u06cc\u062f. \u0633\u0627\u062e\u062a\u0627\u0631 \u0641\u0627\u06cc\u0644 \u0634\u0645\u0627 \u0628\u0627\u06cc\u062f \u0645\u0627\u0646\u0646\u062f \u062a\u0635\u0648\u06cc\u0631 \u0632\u06cc\u0631 \u0628\u0627\u0634\u062f:<\/span><\/li>\n<\/ol>\n<p><span style=\"color: #000000;\"><img loading=\"lazy\" class=\"aligncenter wp-image-79201 size-full\" src=\"https:\/\/apieco.ir\/blog\/wp-content\/uploads\/2020\/04\/13.png\" alt=\"\" width=\"695\" height=\"303\" srcset=\"https:\/\/apieco.ir\/blog\/wp-content\/uploads\/2020\/04\/13.png 695w, https:\/\/apieco.ir\/blog\/wp-content\/uploads\/2020\/04\/13-300x131.png 300w\" sizes=\"(max-width: 695px) 100vw, 695px\" \/><\/span><\/p>\n<ol start=\"3\">\n<li><span style=\"color: #000000;\">\u062f\u0631 \u062f\u0627\u062e\u0644 \u067e\u0648\u0634\u0647 dist\u060c html \u0631\u0627 \u062f\u0631 \u06cc\u06a9 \u0648\u06cc\u0631\u0627\u06cc\u0634\u06af\u0631 \u0645\u062a\u0646 \u0645\u0627\u0646\u0646\u062f Sublime Text \u0628\u0627\u0632 \u06a9\u0646\u06cc\u062f.<\/span><\/li>\n<li><span style=\"color: #000000;\">\u06a9\u062f \u0632\u06cc\u0631 \u0631\u0627 \u062c\u0633\u062a\u062c\u0648 \u0646\u0645\u0627\u06cc\u06cc\u062f:<\/span><\/li>\n<\/ol>\n<p><span style=\"color: #000000;\"><img loading=\"lazy\" class=\"aligncenter wp-image-79202 size-full\" src=\"https:\/\/apieco.ir\/blog\/wp-content\/uploads\/2020\/04\/14.png\" alt=\"\" width=\"697\" height=\"64\" srcset=\"https:\/\/apieco.ir\/blog\/wp-content\/uploads\/2020\/04\/14.png 697w, https:\/\/apieco.ir\/blog\/wp-content\/uploads\/2020\/04\/14-300x28.png 300w\" sizes=\"(max-width: 697px) 100vw, 697px\" \/><\/span><\/p>\n<ol start=\"5\">\n<li><span style=\"color: #000000;\">\u0645\u0642\u062f\u0627\u0631 url \u0631\u0627 \u0627\u0632 http:\/\/petstore.swagger.io\/v2\/swagger.json \u0628\u0647 \u0645\u0633\u06cc\u0631 \u0645\u0631\u0628\u0648\u0637 \u0628\u0647 \u0641\u0627\u06cc\u0644 YAML \u062e\u0648\u062f \u062a\u063a\u06cc\u06cc\u0631 \u062f\u0627\u062f\u0647 \u0648 \u0633\u067e\u0633 \u0641\u0627\u06cc\u0644 \u0631\u0627 \u0630\u062e\u06cc\u0631\u0647 \u06a9\u0646\u06cc\u062f. \u0645\u062b\u0644\u0627:<\/span><\/li>\n<\/ol>\n<p><span style=\"color: #000000;\"><img loading=\"lazy\" class=\"aligncenter wp-image-79203 size-full\" src=\"https:\/\/apieco.ir\/blog\/wp-content\/uploads\/2020\/04\/15.png\" alt=\"\" width=\"697\" height=\"62\" srcset=\"https:\/\/apieco.ir\/blog\/wp-content\/uploads\/2020\/04\/15.png 697w, https:\/\/apieco.ir\/blog\/wp-content\/uploads\/2020\/04\/15-300x27.png 300w\" sizes=\"(max-width: 697px) 100vw, 697px\" \/><\/span><\/p>\n<ol start=\"6\">\n<li><span style=\"color: #000000;\">\u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 Python simple server\u060c \u0641\u0627\u06cc\u0644 html \u0631\u0627 \u0628\u0647 \u0635\u0648\u0631\u062a \u0645\u062d\u0644\u06cc \u062f\u0631 \u0645\u0631\u0648\u0631\u06af\u0631 \u062e\u0648\u062f \u0645\u0634\u0627\u0647\u062f\u0647 \u06a9\u0646\u06cc\u062f. \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u0645\u062b\u0627\u0644 \u060c \u0628\u0647 http:\/\/0.0.0.0:8000\/ \u06cc\u0627 http:\/\/0.0.0.0:8000\/index.html \u0628\u0631\u0648\u06cc\u062f.<\/span><\/li>\n<\/ol>\n<p><span style=\"color: #000000;\">\u0627\u06af\u0631 \u0628\u0647 \u0645\u0633\u06cc\u0631 \u0641\u0627\u06cc\u0644 \u0645\u0627\u0646\u0646\u062f file:\/\/\/Users\/tomjoht\/Downloads\/dist\/index.html \u0628\u0631\u0648\u06cc\u062f\u060c \u067e\u06cc\u0627\u0645\u06cc \u0631\u0627 \u0645\u06cc\u0628\u06cc\u0646\u06cc\u062f \u06a9\u0647 \u0645\u06cc\u06af\u0648\u06cc\u062f: &#8221; URL scheme must be \u201chttp\u201d or \u201chttps\u201d for CORS request&#8221;. SimpleServer \u0627\u06cc\u0646 http \u06cc\u0627 https \u0631\u0627 \u0634\u0628\u06cc\u0647 \u0633\u0627\u0632\u06cc \u0645\u06cc \u06a9\u0646\u062f.<\/span><\/p>\n<ol start=\"7\">\n<li><span style=\"color: #000000;\">\u0628\u0631\u0627\u06cc \u0645\u062a\u0648\u0642\u0641 \u06a9\u0631\u062f\u0646 Python simpler server\u060c \u06a9\u0644\u06cc\u062f Ctrl + C \u0631\u0627 \u062f\u0631 terminal \u06cc\u0627 command prompt \u0641\u0634\u0627\u0631 \u062f\u0647\u06cc\u062f.<\/span><\/li>\n<\/ol>\n<p><span style=\"color: #000000;\"><span style=\"font-weight: 400;\">\u0645\u0646\u0628\u0639:<\/span><a style=\"color: #000000;\" href=\"https:\/\/dev.to\/dianamaltseva8\/why-use-swagger-for-creating-and-documenting-apis-115l\"> <span style=\"font-weight: 400;\">DEV<\/span><\/a> ,\u00a0<a style=\"color: #000000;\" href=\"https:\/\/idratherbewriting.com\/learnapidoc\/pubapis_swagger.html\" rel=\"\">SwaggerUI<\/a><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u06cc\u06a9 \u0645\u0637\u0644\u0628 \u06a9\u0627\u0631\u0628\u0631\u062f\u06cc \u0628\u0631\u0627\u06cc \u0628\u0686\u0647 \u0647\u0627\u06cc \u062a\u0648\u0633\u0639\u0647 \u062f\u0647\u0646\u062f\u0647<\/p>\n","protected":false},"author":21,"featured_media":79209,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[72,1,70],"tags":[159,160],"yst_prominent_words":[],"_links":{"self":[{"href":"https:\/\/apieco.ir\/blog\/wp-json\/wp\/v2\/posts\/79082"}],"collection":[{"href":"https:\/\/apieco.ir\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/apieco.ir\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/apieco.ir\/blog\/wp-json\/wp\/v2\/users\/21"}],"replies":[{"embeddable":true,"href":"https:\/\/apieco.ir\/blog\/wp-json\/wp\/v2\/comments?post=79082"}],"version-history":[{"count":10,"href":"https:\/\/apieco.ir\/blog\/wp-json\/wp\/v2\/posts\/79082\/revisions"}],"predecessor-version":[{"id":79210,"href":"https:\/\/apieco.ir\/blog\/wp-json\/wp\/v2\/posts\/79082\/revisions\/79210"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/apieco.ir\/blog\/wp-json\/wp\/v2\/media\/79209"}],"wp:attachment":[{"href":"https:\/\/apieco.ir\/blog\/wp-json\/wp\/v2\/media?parent=79082"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/apieco.ir\/blog\/wp-json\/wp\/v2\/categories?post=79082"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/apieco.ir\/blog\/wp-json\/wp\/v2\/tags?post=79082"},{"taxonomy":"yst_prominent_words","embeddable":true,"href":"https:\/\/apieco.ir\/blog\/wp-json\/wp\/v2\/yst_prominent_words?post=79082"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}