{"id":16482,"date":"2024-12-03T21:22:30","date_gmt":"2024-12-03T17:52:30","guid":{"rendered":"https:\/\/www.itpiran.net\/blog\/?p=16482"},"modified":"2024-12-03T21:22:30","modified_gmt":"2024-12-03T17:52:30","slug":"how-to-create-a-rest-api-with-node-js-and-express","status":"publish","type":"post","link":"https:\/\/www.itpiran.net\/blog\/ru\/tutorials\/how-to-create-a-rest-api-with-node-js-and-express\/","title":{"rendered":"\u041a\u0430\u043a \u0441\u043e\u0437\u0434\u0430\u0442\u044c REST API \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Node.js \u0438 Express"},"content":{"rendered":"<h2 id=\"rest-api-%da%86%db%8c%d8%b3%d8%aa%d8%9f\">REST API \u0686\u06cc\u0633\u062a\u061f<\/h2>\n<p>\u06cc\u06a9 REST API \u06cc\u06a9 \u0633\u0628\u06a9 \u0645\u0639\u0645\u0627\u0631\u06cc \u0627\u0633\u062a \u06a9\u0647 \u0627\u0632 \u067e\u0631\u0648\u062a\u06a9\u0644 HTTP \u0628\u0631\u0627\u06cc \u062a\u0633\u0647\u06cc\u0644 \u062a\u0628\u0627\u062f\u0644 \u062f\u0627\u062f\u0647 \u0628\u06cc\u0646 \u0628\u0631\u0646\u0627\u0645\u0647\u200c\u0647\u0627\u06cc \u06a9\u0644\u0627\u06cc\u0646\u062a \u0648 \u0633\u0631\u0648\u0631 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc\u200c\u06a9\u0646\u062f. \u0627\u06cc\u0646 \u0645\u0639\u0645\u0627\u0631\u06cc \u0628\u0631 \u0627\u0633\u0627\u0633 \u0645\u062c\u0645\u0648\u0639\u0647\u200c\u0627\u06cc \u0627\u0632 \u0645\u062d\u062f\u0648\u062f\u06cc\u062a\u200c\u0647\u0627 \u0648 \u0627\u0635\u0648\u0644 \u0637\u0631\u0627\u062d\u06cc \u0634\u062f\u0647 \u0627\u0633\u062a \u06a9\u0647 \u0634\u0627\u0645\u0644 \u0631\u0627\u0628\u0637 \u06cc\u06a9\u0646\u0648\u0627\u062e\u062a\u060c \u0627\u0631\u062a\u0628\u0627\u0637 \u0628\u062f\u0648\u0646 \u0648\u0636\u0639\u06cc\u062a\u060c \u0648 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0645\u062a\u062f\u0647\u0627\u06cc \u0627\u0633\u062a\u0627\u0646\u062f\u0627\u0631\u062f HTTP (\u0645\u0627\u0646\u0646\u062f GET\u060c POST\u060c PUT\u060c DELETE) \u0628\u0631\u0627\u06cc \u0627\u0646\u062c\u0627\u0645 \u0639\u0645\u0644\u06cc\u0627\u062a \u0631\u0648\u06cc \u0645\u0646\u0627\u0628\u0639 \u0627\u0633\u062a.<\/p>\n<h2 id=\"%d9%85%d9%81%d8%a7%d9%87%db%8c%d9%85-%da%a9%d9%84%db%8c%d8%af%db%8c-rest-api\">\u0645\u0641\u0627\u0647\u06cc\u0645 \u06a9\u0644\u06cc\u062f\u06cc REST API<\/h2>\n<ol>\n<li><strong>\u0645\u0646\u0627\u0628\u0639 (Resources):<\/strong><br \/>\n\u0645\u0646\u0627\u0628\u0639 \u0648\u0627\u062d\u062f\u0647\u0627\u06cc \u0627\u0633\u0627\u0633\u06cc \u062f\u0631 REST \u0647\u0633\u062a\u0646\u062f. \u0647\u0631 \u0645\u0646\u0628\u0639 \u0628\u0627 \u06cc\u06a9 URL (\u0622\u062f\u0631\u0633 \u06cc\u06a9\u062a\u0627) \u0634\u0646\u0627\u062e\u062a\u0647 \u0645\u06cc\u200c\u0634\u0648\u062f. \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u0645\u062b\u0627\u0644\u060c \u062f\u0631 \u06cc\u06a9 REST API \u0628\u0631\u0627\u06cc \u0645\u062f\u06cc\u0631\u06cc\u062a \u06a9\u062a\u0627\u0628\u200c\u0647\u0627\u060c \u06cc\u06a9 \u06a9\u062a\u0627\u0628 \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u062f \u0645\u0646\u0628\u0639\u06cc \u0628\u0627\u0634\u062f \u06a9\u0647 \u062f\u0631 \u0622\u062f\u0631\u0633 <code>\/books\/1<\/code> \u062f\u0631 \u062f\u0633\u062a\u0631\u0633 \u0627\u0633\u062a.<\/li>\n<li><strong>\u0645\u062a\u062f\u0647\u0627\u06cc HTTP:<\/strong><br \/>\nREST API\u0647\u0627 \u0627\u0632 \u0645\u062a\u062f\u0647\u0627\u06cc \u0627\u0633\u062a\u0627\u0646\u062f\u0627\u0631\u062f HTTP \u0628\u0631\u0627\u06cc \u062a\u0639\u0627\u0645\u0644 \u0628\u0627 \u0645\u0646\u0627\u0628\u0639 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc\u200c\u06a9\u0646\u0646\u062f:<\/p>\n<ul>\n<li><strong>GET:<\/strong> \u062f\u0631\u06cc\u0627\u0641\u062a \u062f\u0627\u062f\u0647 \u0627\u0632 \u0633\u0631\u0648\u0631 (\u0645\u062b\u0644\u0627\u064b \u06af\u0631\u0641\u062a\u0646 \u0644\u06cc\u0633\u062a\u06cc \u0627\u0632 \u06a9\u062a\u0627\u0628\u200c\u0647\u0627 \u06cc\u0627 \u06cc\u06a9 \u06a9\u062a\u0627\u0628 \u062e\u0627\u0635).<\/li>\n<li><strong>POST:<\/strong> \u0627\u0631\u0633\u0627\u0644 \u062f\u0627\u062f\u0647 \u0628\u0647 \u0633\u0631\u0648\u0631 \u0628\u0631\u0627\u06cc \u0627\u06cc\u062c\u0627\u062f \u06cc\u06a9 \u0645\u0646\u0628\u0639 \u062c\u062f\u06cc\u062f (\u0645\u062b\u0644\u0627\u064b \u0627\u0641\u0632\u0648\u062f\u0646 \u06cc\u06a9 \u06a9\u062a\u0627\u0628 \u062c\u062f\u06cc\u062f).<\/li>\n<li><strong>PUT:<\/strong> \u0628\u0631\u0648\u0632\u0631\u0633\u0627\u0646\u06cc \u06cc\u06a9 \u0645\u0646\u0628\u0639 \u0645\u0648\u062c\u0648\u062f \u0628\u0627 \u062f\u0627\u062f\u0647\u200c\u0647\u0627\u06cc \u062c\u062f\u06cc\u062f (\u0645\u062b\u0644\u0627\u064b \u0628\u0631\u0648\u0632\u0631\u0633\u0627\u0646\u06cc \u062c\u0632\u0626\u06cc\u0627\u062a \u06cc\u06a9 \u06a9\u062a\u0627\u0628 \u0645\u0648\u062c\u0648\u062f).<\/li>\n<li><strong>DELETE:<\/strong> \u062d\u0630\u0641 \u06cc\u06a9 \u0645\u0646\u0628\u0639 \u0627\u0632 \u0633\u0631\u0648\u0631 (\u0645\u062b\u0644\u0627\u064b \u062d\u0630\u0641 \u06cc\u06a9 \u06a9\u062a\u0627\u0628).<\/li>\n<\/ul>\n<\/li>\n<li><strong>\u0628\u062f\u0648\u0646 \u0648\u0636\u0639\u06cc\u062a (Statelessness):<\/strong><br \/>\n\u0647\u0631 \u062f\u0631\u062e\u0648\u0627\u0633\u062a \u0627\u0632 \u06a9\u0644\u0627\u06cc\u0646\u062a \u0628\u0647 \u0633\u0631\u0648\u0631 \u0628\u0627\u06cc\u062f \u0634\u0627\u0645\u0644 \u062a\u0645\u0627\u0645 \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u0645\u0648\u0631\u062f \u0646\u06cc\u0627\u0632 \u0633\u0631\u0648\u0631 \u0628\u0631\u0627\u06cc \u0627\u0646\u062c\u0627\u0645 \u0622\u0646 \u062f\u0631\u062e\u0648\u0627\u0633\u062a \u0628\u0627\u0634\u062f. \u0633\u0631\u0648\u0631 \u0647\u06cc\u0686 \u062d\u0627\u0644\u062a \u06cc\u0627 \u0627\u0637\u0644\u0627\u0639\u0627\u062a\u06cc \u062f\u0631\u0628\u0627\u0631\u0647 \u062c\u0644\u0633\u0647 \u06a9\u0644\u0627\u06cc\u0646\u062a \u0628\u06cc\u0646 \u062f\u0631\u062e\u0648\u0627\u0633\u062a\u200c\u0647\u0627 \u0630\u062e\u06cc\u0631\u0647 \u0646\u0645\u06cc\u200c\u06a9\u0646\u062f. \u0627\u06cc\u0646 \u0648\u06cc\u0698\u06af\u06cc REST API\u0647\u0627 \u0631\u0627 \u0645\u0642\u06cc\u0627\u0633\u200c\u067e\u0630\u06cc\u0631 \u0648 \u0646\u06af\u0647\u062f\u0627\u0631\u06cc \u0622\u0646\u0647\u0627 \u0631\u0627 \u0622\u0633\u0627\u0646 \u0645\u06cc\u200c\u06a9\u0646\u062f.<\/li>\n<li><strong>\u0646\u0645\u0627\u06cc\u0634\u200c\u0647\u0627 (Representations):<\/strong><br \/>\n\u0645\u0646\u0627\u0628\u0639 \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u0646\u062f \u062f\u0631 \u0641\u0631\u0645\u062a\u200c\u0647\u0627\u06cc \u0645\u062e\u062a\u0644\u0641\u06cc \u0645\u0627\u0646\u0646\u062f JSON\u060c XML\u060c \u06cc\u0627 \u0645\u062a\u0646 \u0633\u0627\u062f\u0647 \u0646\u0645\u0627\u06cc\u0634 \u062f\u0627\u062f\u0647 \u0634\u0648\u0646\u062f. JSON \u0628\u0647 \u062f\u0644\u06cc\u0644 \u0633\u0628\u06a9 \u0628\u0648\u062f\u0646 \u0648 \u0633\u0647\u0648\u0644\u062a \u0627\u0633\u062a\u0641\u0627\u062f\u0647\u060c \u0631\u0627\u06cc\u062c\u200c\u062a\u0631\u06cc\u0646 \u0641\u0631\u0645\u062a \u0627\u0633\u062a.<\/li>\n<li><strong>\u0631\u0627\u0628\u0637 \u06cc\u06a9\u0646\u0648\u0627\u062e\u062a (Uniform Interface):<\/strong><br \/>\nREST API\u0647\u0627 \u0637\u0648\u0631\u06cc \u0637\u0631\u0627\u062d\u06cc \u0634\u062f\u0647\u200c\u0627\u0646\u062f \u06a9\u0647 \u06cc\u06a9 \u0631\u0627\u0628\u0637 \u06cc\u06a9\u0646\u0648\u0627\u062e\u062a \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u0646\u062f \u062a\u0627 \u062a\u0639\u0627\u0645\u0644 \u0628\u0627 \u0645\u0646\u0627\u0628\u0639 \u0628\u0647 \u0635\u0648\u0631\u062a \u06cc\u06a9\u0633\u0627\u0646 \u0627\u0646\u062c\u0627\u0645 \u0634\u0648\u062f. \u0627\u06cc\u0646 \u0634\u0627\u0645\u0644 \u0645\u0648\u0627\u0631\u062f \u0632\u06cc\u0631 \u0627\u0633\u062a:<\/p>\n<ul>\n<li>\u0634\u0646\u0627\u0633\u0627\u06cc\u06cc \u0645\u0646\u0627\u0628\u0639: URL\u0647\u0627 \u0628\u0647 \u0635\u0648\u0631\u062a \u06cc\u06a9\u062a\u0627 \u0645\u0646\u0627\u0628\u0639 \u0631\u0627 \u0645\u0634\u062e\u0635 \u0645\u06cc\u200c\u06a9\u0646\u0646\u062f.<\/li>\n<li>\u062f\u0633\u062a\u06a9\u0627\u0631\u06cc \u0645\u0646\u0627\u0628\u0639 \u0627\u0632 \u0637\u0631\u06cc\u0642 \u0646\u0645\u0627\u06cc\u0634\u200c\u0647\u0627: \u06a9\u0644\u0627\u06cc\u0646\u062a\u200c\u0647\u0627 \u0627\u0632 \u0646\u0645\u0627\u06cc\u0634\u200c\u0647\u0627 \u0628\u0631\u0627\u06cc \u062a\u0639\u0627\u0645\u0644 \u0628\u0627 \u0645\u0646\u0627\u0628\u0639 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc\u200c\u06a9\u0646\u0646\u062f (\u0645\u062b\u0644\u0627\u064b \u0627\u0631\u0633\u0627\u0644 \u062f\u0627\u062f\u0647\u200c\u0647\u0627\u06cc JSON \u0628\u0631\u0627\u06cc \u0627\u06cc\u062c\u0627\u062f \u06cc\u0627 \u0628\u0631\u0648\u0632\u0631\u0633\u0627\u0646\u06cc \u06cc\u06a9 \u0645\u0646\u0628\u0639).<\/li>\n<li>\u067e\u06cc\u0627\u0645\u200c\u0647\u0627\u06cc \u062e\u0648\u062f\u062a\u0648\u0635\u06cc\u0641\u200c\u06af\u0631: \u0647\u0631 \u067e\u06cc\u0627\u0645 \u0634\u0627\u0645\u0644 \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u06a9\u0627\u0641\u06cc \u0628\u0631\u0627\u06cc \u062a\u0648\u0635\u06cc\u0641 \u0646\u062d\u0648\u0647 \u067e\u0631\u062f\u0627\u0632\u0634 \u0622\u0646 \u0627\u0633\u062a.<\/li>\n<li>\u0647\u0627\u06cc\u067e\u0631\u0645\u062f\u06cc\u0627 \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u0645\u0648\u062a\u0648\u0631 \u0648\u0636\u0639\u06cc\u062a \u0628\u0631\u0646\u0627\u0645\u0647 (HATEOAS): \u06a9\u0644\u0627\u06cc\u0646\u062a\u200c\u0647\u0627 \u0628\u0647 \u0637\u0648\u0631 \u06a9\u0627\u0645\u0644 \u0627\u0632 \u0637\u0631\u06cc\u0642 \u0647\u0627\u06cc\u067e\u0631\u0644\u06cc\u0646\u06a9\u200c\u0647\u0627\u06cc\u06cc \u06a9\u0647 \u0633\u0631\u0648\u0631 \u0628\u0647 \u0635\u0648\u0631\u062a \u067e\u0648\u06cc\u0627 \u0627\u0631\u0627\u0626\u0647 \u0645\u06cc\u200c\u06a9\u0646\u062f\u060c \u0628\u0627 \u0645\u0646\u0627\u0628\u0639 \u062a\u0639\u0627\u0645\u0644 \u0645\u06cc\u200c\u06a9\u0646\u0646\u062f.<\/li>\n<\/ul>\n<\/li>\n<li><strong>\u0645\u0639\u0645\u0627\u0631\u06cc \u06a9\u0644\u0627\u06cc\u0646\u062a-\u0633\u0631\u0648\u0631:<\/strong><br \/>\nREST \u06a9\u0644\u0627\u06cc\u0646\u062a \u0648 \u0633\u0631\u0648\u0631 \u0631\u0627 \u0627\u0632 \u0647\u0645 \u062c\u062f\u0627 \u0645\u06cc\u200c\u06a9\u0646\u062f\u060c \u06a9\u0647 \u0627\u06cc\u0646 \u062c\u062f\u0627\u0633\u0627\u0632\u06cc \u0628\u0647 \u0622\u0646\u0647\u0627 \u0627\u062c\u0627\u0632\u0647 \u0645\u06cc\u200c\u062f\u0647\u062f \u0628\u0647 \u0637\u0648\u0631 \u0645\u0633\u062a\u0642\u0644 \u062a\u06a9\u0627\u0645\u0644 \u06cc\u0627\u0628\u0646\u062f.<\/li>\n<li><strong>\u0642\u0627\u0628\u0644\u06cc\u062a \u06a9\u0634 \u06a9\u0631\u062f\u0646:<\/strong><br \/>\n\u067e\u0627\u0633\u062e\u200c\u0647\u0627\u06cc \u06cc\u06a9 REST API \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u0646\u062f \u0628\u0647 \u0635\u0631\u0627\u062d\u062a \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u0642\u0627\u0628\u0644 \u06a9\u0634 \u06cc\u0627 \u063a\u06cc\u0631\u0642\u0627\u0628\u0644 \u06a9\u0634 \u0639\u0644\u0627\u0645\u062a\u200c\u06af\u0630\u0627\u0631\u06cc \u0634\u0648\u0646\u062f. \u0627\u06cc\u0646 \u0642\u0627\u0628\u0644\u06cc\u062a \u0628\u0647 \u06a9\u0644\u0627\u06cc\u0646\u062a\u200c\u0647\u0627 \u0627\u062c\u0627\u0632\u0647 \u0645\u06cc\u200c\u062f\u0647\u062f \u067e\u0627\u0633\u062e\u200c\u0647\u0627 \u0631\u0627 \u06a9\u0634 \u06a9\u0646\u0646\u062f \u062a\u0627 \u0639\u0645\u0644\u06a9\u0631\u062f \u0628\u0647\u0628\u0648\u062f \u06cc\u0627\u0628\u062f \u0648 \u0646\u06cc\u0627\u0632 \u0628\u0647 \u0627\u0631\u0633\u0627\u0644 \u062f\u0631\u062e\u0648\u0627\u0633\u062a\u200c\u0647\u0627\u06cc \u0645\u06a9\u0631\u0631 \u06a9\u0627\u0647\u0634 \u06cc\u0627\u0628\u062f.<\/li>\n<\/ol>\n<h2 id=\"%db%8c%da%a9-%d9%85%d8%ab%d8%a7%d9%84-%d9%88%d8%a7%d9%82%d8%b9%db%8c-%d8%a7%d8%b2-rest-api\">\u06cc\u06a9 \u0645\u062b\u0627\u0644 \u0648\u0627\u0642\u0639\u06cc \u0627\u0632 REST API<\/h2>\n<p>\u062f\u0631 \u0627\u06cc\u0646\u062c\u0627 \u06cc\u06a9 \u0645\u062b\u0627\u0644 \u0627\u0632 \u0646\u0642\u0627\u0637 \u067e\u0627\u06cc\u0627\u0646\u06cc (Endpoints) \u06cc\u06a9 REST API \u0628\u0631\u0627\u06cc \u06cc\u06a9 \u06a9\u062a\u0627\u0628\u062e\u0627\u0646\u0647 \u0627\u0631\u0627\u0626\u0647 \u0634\u062f\u0647 \u0627\u0633\u062a:<\/p>\n<h5 id=\"1-%da%af%d8%b1%d9%81%d8%aa%d9%86-%d9%84%db%8c%d8%b3%d8%aa-%d9%87%d9%85%d9%87-%da%a9%d8%aa%d8%a7%d8%a8%d9%87%d8%a7\">1. \u06af\u0631\u0641\u062a\u0646 \u0644\u06cc\u0633\u062a \u0647\u0645\u0647 \u06a9\u062a\u0627\u0628\u200c\u0647\u0627<\/h5>\n<p>\u0622\u062f\u0631\u0633: <code>\/books<\/code><\/p>\n<p>\u0645\u062a\u062f HTTP: <code>GET<\/code><\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-json\" data-lang=\"JSON\"><code>[\r\n{\r\n\"id\": 1,\r\n\"title\": \"1984\",\r\n\"author\": \"George Orwell\",\r\n\"published_year\": 1949\r\n},\r\n{\r\n\"id\": 2,\r\n\"title\": \"To Kill a Mockingbird\",\r\n\"author\": \"Harper Lee\",\r\n\"published_year\": 1960\r\n}\r\n]<\/code><\/pre>\n<\/div>\n<h5 id=\"2-%d8%af%d8%b1%db%8c%d8%a7%d9%81%d8%aa-%d8%ac%d8%b2%d8%a6%db%8c%d8%a7%d8%aa-%db%8c%da%a9-%da%a9%d8%aa%d8%a7%d8%a8-%d8%ae%d8%a7%d8%b5\">2. \u062f\u0631\u06cc\u0627\u0641\u062a \u062c\u0632\u0626\u06cc\u0627\u062a \u06cc\u06a9 \u06a9\u062a\u0627\u0628 \u062e\u0627\u0635<\/h5>\n<p>\u0622\u062f\u0631\u0633: <code>\/books\/{id}<\/code><\/p>\n<p>\u0645\u062a\u062f HTTP: <code>GET<\/code><\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-json\" data-lang=\"JSON\"><code>{\r\n\"id\": 1,\r\n\"title\": \"1984\",\r\n\"author\": \"George Orwell\",\r\n\"published_year\": 1949\r\n}<\/code><\/pre>\n<\/div>\n<h5 id=\"3-%d8%a7%d9%81%d8%b2%d9%88%d8%af%d9%86-%db%8c%da%a9-%da%a9%d8%aa%d8%a7%d8%a8-%d8%ac%d8%af%db%8c%d8%af\">3. \u0627\u0641\u0632\u0648\u062f\u0646 \u06cc\u06a9 \u06a9\u062a\u0627\u0628 \u062c\u062f\u06cc\u062f<\/h5>\n<p>\u0622\u062f\u0631\u0633: <code>\/books<\/code><\/p>\n<p>\u0645\u062a\u062f HTTP: <code>POST<\/code><\/p>\n<p>\u062f\u0631\u062e\u0648\u0627\u0633\u062a:<\/p>\n<pre>POST \/books\r\nContent-Type: application\/json<\/pre>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-json\" data-lang=\"JSON\"><code>{\r\n\"title\": \"Brave New World\",\r\n\"author\": \"Aldous Huxley\",\r\n\"published_year\": 1932\r\n}<\/code><\/pre>\n<\/div>\n<p>\u067e\u0627\u0633\u062e:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-json\" data-lang=\"JSON\"><code>{\r\n\"id\": 3,\r\n\"title\": \"Brave New World\",\r\n\"author\": \"Aldous Huxley\",\r\n\"published_year\": 1932\r\n}<\/code><\/pre>\n<\/div>\n<h5 id=\"4-%d8%a8%d8%b1%d9%88%d8%b2%d8%b1%d8%b3%d8%a7%d9%86%db%8c-%db%8c%da%a9-%da%a9%d8%aa%d8%a7%d8%a8-%d9%85%d9%88%d8%ac%d9%88%d8%af\">4. \u0628\u0631\u0648\u0632\u0631\u0633\u0627\u0646\u06cc \u06cc\u06a9 \u06a9\u062a\u0627\u0628 \u0645\u0648\u062c\u0648\u062f<\/h5>\n<p>\u0622\u062f\u0631\u0633: <code>\/books\/{id}<\/code><\/p>\n<p>\u0645\u062a\u062f HTTP: <code>PUT<\/code><\/p>\n<p>\u062f\u0631\u062e\u0648\u0627\u0633\u062a:<\/p>\n<pre>PUT \/books\/1\r\nContent-Type: application\/json<\/pre>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-json\" data-lang=\"JSON\"><code>PUT \/books\/1\r\nContent-Type: application\/json\r\n{\r\n\"title\": \"1984\",\r\n\"author\": \"George Orwell\",\r\n\"published_year\": 1948\r\n}<\/code><\/pre>\n<\/div>\n<p>\u067e\u0627\u0633\u062e:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-json\" data-lang=\"JSON\"><code>{\r\n\"id\": 1,\r\n\"title\": \"1984\",\r\n\"author\": \"George Orwell\",\r\n\"published_year\": 1948\r\n}<\/code><\/pre>\n<\/div>\n<h2 id=\"node-js-%da%86%db%8c%d8%b3%d8%aa%d8%9f\">Node.js \u0686\u06cc\u0633\u062a\u061f<\/h2>\n<p>Node.js \u06cc\u06a9 \u0645\u062d\u06cc\u0637 \u0627\u062c\u0631\u0627\u06cc\u06cc \u062c\u0627\u0648\u0627\u0627\u0633\u06a9\u0631\u06cc\u067e\u062a \u0633\u0645\u062a \u0633\u0631\u0648\u0631 \u0627\u0633\u062a \u0648 \u0628\u0627 \u0641\u0631\u06cc\u0645\u200c\u0648\u0631\u06a9 \u0645\u062d\u0628\u0648\u0628 Express \u062a\u0631\u06a9\u06cc\u0628 \u0645\u06cc\u200c\u0634\u0648\u062f \u062a\u0627 \u0633\u0627\u062e\u062a REST API\u0647\u0627 \u0631\u0627 \u0642\u062f\u0631\u062a\u0645\u0646\u062f \u0648 \u06a9\u0627\u0631\u0622\u0645\u062f \u06a9\u0646\u062f. \u062f\u0631 \u0627\u06cc\u0646 \u0645\u0637\u0644\u0628\u060c \u0641\u0631\u0622\u06cc\u0646\u062f \u0627\u06cc\u062c\u0627\u062f \u06cc\u06a9 REST API \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 Node.js \u0648 Express \u0631\u0627 \u0645\u0631\u062d\u0644\u0647 \u0628\u0647 \u0645\u0631\u062d\u0644\u0647 \u0628\u0627 \u0645\u062b\u0627\u0644\u200c\u0647\u0627\u06cc \u0639\u0645\u0644\u06cc \u0628\u0631\u0631\u0633\u06cc \u0645\u06cc\u200c\u06a9\u0646\u06cc\u0645.<\/p>\n<h2 id=\"%da%86%d8%b1%d8%a7-%d8%a7%d8%b2-node-js-%d9%88-express-%d8%a8%d8%b1%d8%a7%db%8c-%d8%b3%d8%a7%d8%ae%d8%aa-rest-api-%d8%a7%d8%b3%d8%aa%d9%81%d8%a7%d8%af%d9%87-%da%a9%d9%86%db%8c%d9%85%d8%9f\">\u0686\u0631\u0627 \u0627\u0632 Node.js \u0648 Express \u0628\u0631\u0627\u06cc \u0633\u0627\u062e\u062a REST API \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u0645\u061f<\/h2>\n<ol>\n<li><strong>\u0639\u0645\u0644\u06a9\u0631\u062f \u0628\u0627\u0644\u0627 \u0648 \u0645\u0642\u06cc\u0627\u0633\u200c\u067e\u0630\u06cc\u0631\u06cc:<\/strong> Node.js \u0628\u0631 \u0627\u0633\u0627\u0633 \u0645\u0648\u062a\u0648\u0631 V8 \u06af\u0648\u06af\u0644 \u0633\u0627\u062e\u062a\u0647 \u0634\u062f\u0647 \u0627\u0633\u062a \u06a9\u0647 \u062c\u0627\u0648\u0627\u0627\u0633\u06a9\u0631\u06cc\u067e\u062a \u0631\u0627 \u0645\u0633\u062a\u0642\u06cc\u0645\u0627\u064b \u0628\u0647 \u06a9\u062f \u0645\u0627\u0634\u06cc\u0646 \u06a9\u0627\u0645\u067e\u0627\u06cc\u0644 \u0645\u06cc\u200c\u06a9\u0646\u062f \u0648 \u0628\u0627\u0639\u062b \u0633\u0631\u0639\u062a \u0648 \u0639\u0645\u0644\u06a9\u0631\u062f \u0628\u0627\u0644\u0627 \u0645\u06cc\u200c\u0634\u0648\u062f. \u0645\u062f\u0644 I\/O \u063a\u06cc\u0631\u0645\u0633\u062f\u0648\u062f\u06a9\u0646\u0646\u062f\u0647 Node.js \u0628\u0631\u0627\u06cc \u0645\u062f\u06cc\u0631\u06cc\u062a \u062a\u0639\u062f\u0627\u062f \u0632\u06cc\u0627\u062f\u06cc \u0627\u062a\u0635\u0627\u0644 \u0647\u0645\u0632\u0645\u0627\u0646 \u06a9\u0627\u0631\u0622\u0645\u062f \u0627\u0633\u062a.<\/li>\n<li><strong>\u062c\u0627\u0648\u0627\u0627\u0633\u06a9\u0631\u06cc\u067e\u062a \u062f\u0631 \u0647\u0645\u0647\u200c\u062c\u0627:<\/strong> Node.js \u0628\u0647 \u062a\u0648\u0633\u0639\u0647\u200c\u062f\u0647\u0646\u062f\u06af\u0627\u0646 \u0627\u062c\u0627\u0632\u0647 \u0645\u06cc\u200c\u062f\u0647\u062f \u0627\u0632 \u062c\u0627\u0648\u0627\u0627\u0633\u06a9\u0631\u06cc\u067e\u062a \u0628\u0631\u0627\u06cc \u062a\u0648\u0633\u0639\u0647 \u06a9\u0644\u0627\u06cc\u0646\u062a \u0648 \u0633\u0631\u0648\u0631 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u0646\u062f\u060c \u06a9\u0647 \u0627\u06cc\u0646 \u0627\u0645\u0631 \u06cc\u0627\u062f\u06af\u06cc\u0631\u06cc \u0631\u0627 \u0633\u0627\u062f\u0647\u200c\u062a\u0631 \u0645\u06cc\u200c\u06a9\u0646\u062f \u0648 \u0641\u0631\u0627\u06cc\u0646\u062f \u062a\u0648\u0633\u0639\u0647 \u0631\u0627 \u06cc\u06a9\u067e\u0627\u0631\u0686\u0647 \u0645\u06cc\u200c\u0633\u0627\u0632\u062f.<\/li>\n<li><strong>\u0686\u0631\u062e\u0647 \u062a\u0648\u0633\u0639\u0647 \u0633\u0631\u06cc\u0639:<\/strong> \u062a\u0631\u06a9\u06cc\u0628 Node.js \u0628\u0627 Express \u0628\u0627\u0639\u062b \u062a\u0648\u0633\u0639\u0647 \u0633\u0631\u06cc\u0639 \u0627\u067e\u0644\u06cc\u06a9\u06cc\u0634\u0646\u200c\u0647\u0627 \u0645\u06cc\u200c\u0634\u0648\u062f. Express \u06cc\u06a9 \u0641\u0631\u06cc\u0645\u200c\u0648\u0631\u06a9 \u0645\u06cc\u0646\u06cc\u0645\u0627\u0644 \u0648 \u0627\u0646\u0639\u0637\u0627\u0641\u200c\u067e\u0630\u06cc\u0631 \u0627\u0633\u062a \u06a9\u0647 \u0645\u062c\u0645\u0648\u0639\u0647\u200c\u0627\u06cc \u0642\u0648\u06cc \u0627\u0632 \u0648\u06cc\u0698\u06af\u06cc\u200c\u0647\u0627 \u0631\u0627 \u0628\u0631\u0627\u06cc \u0627\u067e\u0644\u06cc\u06a9\u06cc\u0634\u0646\u200c\u0647\u0627\u06cc \u0648\u0628 \u0648 \u0645\u0648\u0628\u0627\u06cc\u0644 \u0641\u0631\u0627\u0647\u0645 \u0645\u06cc\u200c\u06a9\u0646\u062f.<\/li>\n<li><strong>\u0627\u06a9\u0648\u0633\u06cc\u0633\u062a\u0645 \u06af\u0633\u062a\u0631\u062f\u0647:<\/strong> Node.js \u062f\u0627\u0631\u0627\u06cc \u0645\u062c\u0645\u0648\u0639\u0647\u200c\u0627\u06cc \u063a\u0646\u06cc \u0627\u0632 \u06a9\u062a\u0627\u0628\u062e\u0627\u0646\u0647\u200c\u0647\u0627 \u0648 \u0645\u0627\u0698\u0648\u0644\u200c\u0647\u0627 \u0627\u0632 \u0637\u0631\u06cc\u0642 npm \u0627\u0633\u062a \u06a9\u0647 \u0628\u0647 \u062a\u0648\u0633\u0639\u0647 \u0633\u0631\u06cc\u0639\u200c\u062a\u0631 \u06a9\u0645\u06a9 \u0645\u06cc\u200c\u06a9\u0646\u062f.<\/li>\n<li><strong>\u062a\u0648\u0627\u0646\u0627\u06cc\u06cc\u200c\u0647\u0627\u06cc \u0622\u0646\u06cc (Real-Time):<\/strong> Node.js \u062f\u0631 \u0633\u0627\u062e\u062a \u0627\u067e\u0644\u06cc\u06a9\u06cc\u0634\u0646\u200c\u0647\u0627\u06cc \u0622\u0646\u06cc \u0645\u0627\u0646\u0646\u062f \u0686\u062a \u0648 \u0628\u0647\u200c\u0631\u0648\u0632\u0631\u0633\u0627\u0646\u06cc \u0632\u0646\u062f\u0647 \u0639\u0645\u0644\u06a9\u0631\u062f \u0639\u0627\u0644\u06cc \u062f\u0627\u0631\u062f.<\/li>\n<\/ol>\n<h2 id=\"%d8%b1%d8%a7%d9%87%d9%86%d9%85%d8%a7%db%8c-%d9%85%d8%b1%d8%ad%d9%84%d9%87-%d8%a8%d9%87-%d9%85%d8%b1%d8%ad%d9%84%d9%87-%d8%b3%d8%a7%d8%ae%d8%aa-%db%8c%da%a9-rest-api-%d8%a8%d8%a7-node-js\">\u0631\u0627\u0647\u0646\u0645\u0627\u06cc \u0645\u0631\u062d\u0644\u0647 \u0628\u0647 \u0645\u0631\u062d\u0644\u0647 \u0633\u0627\u062e\u062a \u06cc\u06a9 REST API \u0628\u0627 Node.js<\/h2>\n<h5 id=\"%d9%85%d8%b1%d8%ad%d9%84%d9%87-%db%b1-%d8%a7%db%8c%d8%ac%d8%a7%d8%af-%d9%be%d8%b1%d9%88%da%98%d9%87\">\u0645\u0631\u062d\u0644\u0647 \u06f1: \u0627\u06cc\u062c\u0627\u062f \u067e\u0631\u0648\u0698\u0647<\/h5>\n<p>\u0627\u0628\u062a\u062f\u0627 \u06cc\u06a9 \u062f\u0627\u06cc\u0631\u06a9\u062a\u0648\u0631\u06cc \u062c\u062f\u06cc\u062f \u0628\u0631\u0627\u06cc \u067e\u0631\u0648\u0698\u0647 \u062e\u0648\u062f \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u06cc\u062f \u0648 \u0622\u0646 \u0631\u0627 \u0628\u0627 npm \u0645\u0642\u062f\u0627\u0631\u062f\u0647\u06cc \u0627\u0648\u0644\u06cc\u0647 \u06a9\u0646\u06cc\u062f:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>mkdir my-rest-api\r\ncd my-rest-api\r\nnpm init -y<\/code><\/pre>\n<\/div>\n<h5 id=\"%d9%85%d8%b1%d8%ad%d9%84%d9%87-%db%b2-%d9%86%d8%b5%d8%a8-%d9%88%d8%a7%d8%a8%d8%b3%d8%aa%da%af%db%8c%d9%87%d8%a7\">\u0645\u0631\u062d\u0644\u0647 \u06f2: \u0646\u0635\u0628 \u0648\u0627\u0628\u0633\u062a\u06af\u06cc\u200c\u0647\u0627<\/h5>\n<p>\u0686\u0646\u062f\u06cc\u0646 \u0628\u0633\u062a\u0647 \u0631\u0627 \u0646\u0635\u0628 \u06a9\u0646\u06cc\u062f \u062a\u0627 REST API \u0634\u0645\u0627 \u0631\u0627\u0647\u200c\u0627\u0646\u062f\u0627\u0632\u06cc \u0634\u0648\u062f:<\/p>\n<ul>\n<li><strong>Express:<\/strong> \u0641\u0631\u06cc\u0645\u200c\u0648\u0631\u06a9 \u0628\u0631\u0646\u0627\u0645\u0647 \u0648\u0628 \u0628\u0631\u0627\u06cc Node.js.<\/li>\n<li><strong>Body-parser:<\/strong> \u06cc\u06a9 \u0645\u06cc\u0627\u0646\u200c\u0627\u0641\u0632\u0627\u0631 \u0628\u0631\u0627\u06cc \u062a\u062c\u0632\u06cc\u0647 \u0628\u062f\u0646\u0647 \u062f\u0631\u062e\u0648\u0627\u0633\u062a\u200c\u0647\u0627\u06cc \u0648\u0631\u0648\u062f\u06cc.<\/li>\n<li><strong>Nodemon (\u0627\u062e\u062a\u06cc\u0627\u0631\u06cc):<\/strong> \u0627\u0628\u0632\u0627\u0631\u06cc \u0628\u0631\u0627\u06cc \u0631\u0627\u0647\u200c\u0627\u0646\u062f\u0627\u0632\u06cc \u0645\u062c\u062f\u062f \u062e\u0648\u062f\u06a9\u0627\u0631 \u0633\u0631\u0648\u0631 \u062f\u0631 \u0637\u0648\u0644 \u062a\u0648\u0633\u0639\u0647.<\/li>\n<\/ul>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>npm install express body-parser\r\nnpm install --save-dev nodemon<\/code><\/pre>\n<\/div>\n<h5 id=\"%d9%85%d8%b1%d8%ad%d9%84%d9%87-%db%b3-%d8%a7%db%8c%d8%ac%d8%a7%d8%af-%db%8c%da%a9-%d8%a8%d8%b1%d9%86%d8%a7%d9%85%d9%87-express\">\u0645\u0631\u062d\u0644\u0647 \u06f3: \u0627\u06cc\u062c\u0627\u062f \u06cc\u06a9 \u0628\u0631\u0646\u0627\u0645\u0647 Express<\/h5>\n<p>\u06cc\u06a9 \u0628\u0631\u0646\u0627\u0645\u0647 Express \u0628\u0633\u0627\u0632\u06cc\u062f \u0648 \u06cc\u06a9 \u0633\u0631\u0648\u0631 \u067e\u0627\u06cc\u0647 \u0631\u0627\u0647\u200c\u0627\u0646\u062f\u0627\u0632\u06cc \u06a9\u0646\u06cc\u062f:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-js\" data-lang=\"JavaScript\"><code>const express = require('express');\r\nconst bodyParser = require('body-parser');\r\nconst app = express();\r\napp.use(bodyParser.json());\r\nconst port = process.env.PORT || 3000;\r\napp.listen(port, () =&gt; {\r\nconsole.log(`Server is running on port ${port}`);\r\n});<\/code><\/pre>\n<\/div>\n<h5 id=\"%d9%85%d8%b1%d8%ad%d9%84%d9%87-%db%b4-%d8%aa%d8%b9%d8%b1%db%8c%d9%81-%d9%85%d8%b3%db%8c%d8%b1%d9%87%d8%a7\">\u0645\u0631\u062d\u0644\u0647 \u06f4: \u062a\u0639\u0631\u06cc\u0641 \u0645\u0633\u06cc\u0631\u0647\u0627<\/h5>\n<p>\u0645\u0633\u06cc\u0631\u0647\u0627 (Routes) \u0646\u0642\u0627\u0637 \u067e\u0627\u06cc\u0627\u0646\u06cc API \u0631\u0627 \u062a\u0639\u0631\u06cc\u0641 \u0645\u06cc\u200c\u06a9\u0646\u0646\u062f. \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u0645\u062b\u0627\u0644\u060c \u06cc\u06a9 \u0645\u0633\u06cc\u0631 \u0628\u0631\u0627\u06cc \u062f\u0631\u062e\u0648\u0627\u0633\u062a GET:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-js\" data-lang=\"JavaScript\"><code>app.get('\/api\/hello', (req, res) =&gt; {\r\nres.json({ message: 'Hello, World!' });\r\n});<\/code><\/pre>\n<\/div>\n<h5 id=\"%d9%85%d8%b1%d8%ad%d9%84%d9%87-%db%b5-%d8%a7%d8%ac%d8%b1%d8%a7%db%8c-api\">\u0645\u0631\u062d\u0644\u0647 \u06f5: \u0627\u062c\u0631\u0627\u06cc API<\/h5>\n<p>\u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 Nodemon \u06cc\u0627 Node.js API \u062e\u0648\u062f \u0631\u0627 \u0627\u062c\u0631\u0627 \u06a9\u0646\u06cc\u062f:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>npm start<\/code><\/pre>\n<\/div>\n<p>\u0627\u06af\u0631 \u0628\u0647 <code>http:\/\/localhost:3000\/api\/hello<\/code> \u062f\u0633\u062a\u0631\u0633\u06cc \u067e\u06cc\u062f\u0627 \u06a9\u0646\u06cc\u062f\u060c \u067e\u06cc\u0627\u0645 &#8220;\u0633\u0644\u0627\u0645 \u062f\u0646\u06cc\u0627!&#8221; \u0631\u0627 \u062e\u0648\u0627\u0647\u06cc\u062f \u062f\u06cc\u062f.<\/p>\n<h5 id=\"%d9%85%d8%b1%d8%ad%d9%84%d9%87-%db%b6-%d8%a7%d9%81%d8%b2%d9%88%d8%af%d9%86-%d9%85%d8%b3%db%8c%d8%b1%d9%87%d8%a7%db%8c-%d8%a8%db%8c%d8%b4%d8%aa%d8%b1\">\u0645\u0631\u062d\u0644\u0647 \u06f6: \u0627\u0641\u0632\u0648\u062f\u0646 \u0645\u0633\u06cc\u0631\u0647\u0627\u06cc \u0628\u06cc\u0634\u062a\u0631<\/h5>\n<p>\u0628\u0631\u0627\u06cc \u0633\u0627\u062e\u062a \u06cc\u06a9 API \u0645\u0641\u06cc\u062f\u060c \u0646\u06cc\u0627\u0632 \u062f\u0627\u0631\u06cc\u062f \u06a9\u0647 \u0645\u0633\u06cc\u0631\u0647\u0627\u06cc \u0628\u06cc\u0634\u062a\u0631\u06cc \u062a\u0639\u0631\u06cc\u0641 \u06a9\u0646\u06cc\u062f \u0648 \u0639\u0645\u0644\u06cc\u0627\u062a CRUD (\u0627\u06cc\u062c\u0627\u062f\u060c \u062e\u0648\u0627\u0646\u062f\u0646\u060c \u0628\u0631\u0648\u0632\u0631\u0633\u0627\u0646\u06cc\u060c \u062d\u0630\u0641) \u0631\u0627 \u0628\u0631\u0627\u06cc \u0645\u0646\u0627\u0628\u0639 \u067e\u06cc\u0627\u062f\u0647\u200c\u0633\u0627\u0632\u06cc \u06a9\u0646\u06cc\u062f. \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u0645\u062b\u0627\u0644\u060c \u06cc\u06a9 API \u0633\u0627\u062f\u0647 \u0628\u0631\u0627\u06cc \u0644\u06cc\u0633\u062a \u06a9\u0627\u0631\u0647\u0627 (To-Do List):<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-js\" data-lang=\"JavaScript\"><code>let todos = [];\r\napp.get('\/api\/todos', (req, res) =&gt; {\r\nres.json(todos);\r\n});\r\napp.post('\/api\/todos', (req, res) =&gt; {\r\nconst newTodo = req.body;\r\ntodos.push(newTodo);\r\nres.status(201).json(newTodo);\r\n});\r\n\/\/ Implement PUT and DELETE as an exercise<\/code><\/pre>\n<\/div>\n<p>\u062f\u0631 \u0627\u06cc\u0646 \u0645\u062b\u0627\u0644\u060c \u0645\u0633\u06cc\u0631\u0647\u0627\u06cc\u06cc \u0628\u0631\u0627\u06cc \u0644\u06cc\u0633\u062a \u0648 \u0627\u06cc\u062c\u0627\u062f \u06a9\u0627\u0631\u0647\u0627\u06cc \u062c\u062f\u06cc\u062f \u062a\u0639\u0631\u06cc\u0641 \u0634\u062f\u0647 \u0627\u0633\u062a. \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u062f \u0628\u0627 \u067e\u06cc\u0627\u062f\u0647\u200c\u0633\u0627\u0632\u06cc \u0645\u062a\u062f\u0647\u0627\u06cc <code>PUT<\/code> \u0648 <code>DELETE<\/code> \u0628\u0631\u0627\u06cc \u0628\u0631\u0648\u0632\u0631\u0633\u0627\u0646\u06cc \u0648 \u062d\u0630\u0641 \u0648\u0638\u0627\u06cc\u0641\u060c \u0622\u0646 \u0631\u0627 \u06af\u0633\u062a\u0631\u0634 \u062f\u0647\u06cc\u062f.<\/p>\n<h5 id=\"%d9%85%d8%b1%d8%ad%d9%84%d9%87-%db%b7-%d8%aa%d8%b3%d8%aa-api\">\u0645\u0631\u062d\u0644\u0647 \u06f7: \u062a\u0633\u062a API<\/h5>\n<p>\u062a\u0633\u062a \u06a9\u0631\u062f\u0646 API \u0628\u0633\u06cc\u0627\u0631 \u0645\u0647\u0645 \u0627\u0633\u062a \u062a\u0627 \u0645\u0637\u0645\u0626\u0646 \u0634\u0648\u06cc\u062f \u06a9\u0647 \u0628\u0647 \u062f\u0631\u0633\u062a\u06cc \u06a9\u0627\u0631 \u0645\u06cc\u200c\u06a9\u0646\u062f. \u0627\u0628\u0632\u0627\u0631\u0647\u0627\u06cc\u06cc \u0645\u0627\u0646\u0646\u062f <strong>Postman<\/strong> \u06cc\u0627 <strong>Apidog<\/strong> \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u0646\u062f \u0628\u0647 \u0634\u0645\u0627 \u062f\u0631 \u0627\u0631\u0633\u0627\u0644 \u062f\u0631\u062e\u0648\u0627\u0633\u062a\u200c\u0647\u0627 \u0648 \u0628\u0631\u0631\u0633\u06cc \u067e\u0627\u0633\u062e\u200c\u0647\u0627 \u06a9\u0645\u06a9 \u06a9\u0646\u0646\u062f.<\/p>\n<h5 id=\"%d9%85%d8%b1%d8%ad%d9%84%d9%87-%db%b8-%d8%a7%d8%b3%d8%aa%d9%82%d8%b1%d8%a7%d8%b1-api\">\u0645\u0631\u062d\u0644\u0647 \u06f8: \u0627\u0633\u062a\u0642\u0631\u0627\u0631 API<\/h5>\n<p>\u0632\u0645\u0627\u0646\u06cc \u06a9\u0647 \u0622\u0645\u0627\u062f\u0647 \u0628\u0647 \u0627\u0634\u062a\u0631\u0627\u06a9\u200c\u06af\u0630\u0627\u0631\u06cc API \u062e\u0648\u062f \u0628\u0627 \u062f\u06cc\u06af\u0631\u0627\u0646 \u0634\u062f\u06cc\u062f\u060c \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u062f \u0622\u0646 \u0631\u0627 \u062f\u0631 \u067e\u0644\u062a\u0641\u0631\u0645\u200c\u0647\u0627\u06cc\u06cc \u0645\u0627\u0646\u0646\u062f Heroku\u060c AWS \u06cc\u0627 Azure \u0645\u0633\u062a\u0642\u0631 \u06a9\u0646\u06cc\u062f.<\/p>\n<h2 id=\"%db%8c%da%a9-%d8%b1%d9%88%d8%b4-%d8%ac%d8%a7%db%8c%da%af%d8%b2%db%8c%d9%86-%d8%a8%d8%b1%d8%a7%db%8c-%d8%a7%db%8c%d8%ac%d8%a7%d8%af-rest-api-%d8%a8%d8%a7-%d8%a7%d8%b3%d8%aa%d9%81%d8%a7%d8%af%d9%87\">\u06cc\u06a9 \u0631\u0648\u0634 \u062c\u0627\u06cc\u06af\u0632\u06cc\u0646 \u0628\u0631\u0627\u06cc \u0627\u06cc\u062c\u0627\u062f REST API \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 Apidog<\/h2>\n<p>Apidog \u0641\u0631\u0622\u06cc\u0646\u062f \u062a\u0648\u0633\u0639\u0647 REST API \u0631\u0627 \u0633\u0627\u062f\u0647 \u0645\u06cc\u200c\u06a9\u0646\u062f \u0648 \u0648\u06cc\u0698\u06af\u06cc\u200c\u0647\u0627\u06cc\u06cc \u0645\u0627\u0646\u0646\u062f \u062a\u0633\u062a\u060c \u0645\u0633\u062a\u0646\u062f\u0633\u0627\u0632\u06cc\u060c \u0627\u0645\u0646\u06cc\u062a\u060c \u0648 \u0628\u0647\u06cc\u0646\u0647\u200c\u0633\u0627\u0632\u06cc \u0639\u0645\u0644\u06a9\u0631\u062f \u0631\u0627 \u0627\u0631\u0627\u0626\u0647 \u0645\u06cc\u200c\u062f\u0647\u062f. \u062f\u0631 \u0627\u06cc\u0646\u062c\u0627 \u0645\u0631\u0627\u062d\u0644 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 Apidog \u0622\u0648\u0631\u062f\u0647 \u0634\u062f\u0647 \u0627\u0633\u062a:<\/p>\n<h5 id=\"%d9%85%d8%b1%d8%ad%d9%84%d9%87-%db%b1-%d8%af%d8%a7%d9%86%d9%84%d9%88%d8%af-%d9%88-%d9%86%d8%b5%d8%a8-apidog\">\u0645\u0631\u062d\u0644\u0647 \u06f1: \u062f\u0627\u0646\u0644\u0648\u062f \u0648 \u0646\u0635\u0628 Apidog<\/h5>\n<p>\u0627\u0628\u062a\u062f\u0627 \u0628\u0627\u06cc\u062f \u062f\u0631 Apidog \u06cc\u06a9 \u062d\u0633\u0627\u0628 \u06a9\u0627\u0631\u0628\u0631\u06cc \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u06cc\u062f. \u0627\u06cc\u0646 \u06a9\u0627\u0631 \u0627\u0632 \u0637\u0631\u06cc\u0642 \u0648\u0628\u200c\u0633\u0627\u06cc\u062a Apidog \u0648 \u06a9\u0644\u06cc\u06a9 \u0631\u0648\u06cc \u062f\u06a9\u0645\u0647 &#8220;\u062b\u0628\u062a\u200c\u0646\u0627\u0645&#8221; \u0627\u0645\u06a9\u0627\u0646\u200c\u067e\u0630\u06cc\u0631 \u0627\u0633\u062a.<\/p>\n<h5 id=\"%d9%85%d8%b1%d8%ad%d9%84%d9%87-%db%b2-%d8%a7%db%8c%d8%ac%d8%a7%d8%af-api\">\u0645\u0631\u062d\u0644\u0647 \u06f2: \u0627\u06cc\u062c\u0627\u062f API<\/h5>\n<p>\u062f\u0631 \u062f\u0627\u062e\u0644 \u067e\u0631\u0648\u0698\u0647\u060c \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u062f \u06cc\u06a9 API \u062c\u062f\u06cc\u062f \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u06cc\u062f. \u0645\u0633\u062a\u0646\u062f\u0627\u062a\u060c \u0646\u0642\u0634\u0647 API \u0634\u0645\u0627\u0633\u062a \u0648 \u0645\u0646\u0627\u0628\u0639\u060c \u0639\u0645\u0644\u06cc\u0627\u062a \u0648 \u067e\u0627\u0631\u0627\u0645\u062a\u0631\u0647\u0627\u06cc \u0622\u0646 \u0631\u0627 \u0634\u0631\u062d \u0645\u06cc\u200c\u062f\u0647\u062f.<\/p>\n<h5 id=\"%d9%85%d8%b1%d8%ad%d9%84%d9%87-%db%b3-%d8%aa%d9%86%d8%b8%db%8c%d9%85-%d9%be%d8%a7%d8%b1%d8%a7%d9%85%d8%aa%d8%b1%d9%87%d8%a7%db%8c-rest-api\">\u0645\u0631\u062d\u0644\u0647 \u06f3: \u062a\u0646\u0638\u06cc\u0645 \u067e\u0627\u0631\u0627\u0645\u062a\u0631\u0647\u0627\u06cc REST API<\/h5>\n<p>\u0631\u0648\u0634\u200c\u0647\u0627\u06cc HTTP\u060c \u0645\u062f\u0644\u200c\u0647\u0627\u06cc \u062f\u0631\u062e\u0648\u0627\u0633\u062a\/\u067e\u0627\u0633\u062e\u060c \u067e\u0627\u0631\u0627\u0645\u062a\u0631\u0647\u0627\u06cc \u06a9\u0648\u0626\u0631\u06cc\u060c \u0647\u062f\u0631\u0647\u0627 \u0648 \u063a\u06cc\u0631\u0647 \u0631\u0627 \u067e\u0631 \u06a9\u0646\u06cc\u062f.<\/p>\n<h5 id=\"%d9%85%d8%b1%d8%ad%d9%84%d9%87-%db%b4-%d8%aa%d8%b3%d8%aa-rest-api\">\u0645\u0631\u062d\u0644\u0647 \u06f4: \u062a\u0633\u062a REST API<\/h5>\n<p>\u0628\u0639\u062f \u0627\u0632 \u062a\u0648\u0633\u0639\u0647 API\u060c \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u062f \u0628\u0627 \u06a9\u0644\u06cc\u06a9 \u0631\u0648\u06cc \u062f\u06a9\u0645\u0647 &#8220;\u0627\u0631\u0633\u0627\u0644&#8221;\u060c \u0622\u0646 \u0631\u0627 \u062a\u0633\u062a \u06a9\u0646\u06cc\u062f.<\/p>\n<h2 id=\"%d8%b3%d9%88%d8%a7%d9%84%d8%a7%d8%aa-%d9%85%d8%aa%d8%af%d8%a7%d9%88%d9%84-%d8%af%d8%b1%d8%a8%d8%a7%d8%b1%d9%87-rest-api-%d8%af%d8%b1-node-js\">\u0633\u0648\u0627\u0644\u0627\u062a \u0645\u062a\u062f\u0627\u0648\u0644 \u062f\u0631\u0628\u0627\u0631\u0647 REST API \u062f\u0631 Node.js<\/h2>\n<h3 id=\"%db%b1-%d8%a8%d9%87%d8%aa%d8%b1%db%8c%d9%86-%d9%81%d8%b1%db%8c%d9%85%d9%88%d8%b1%da%a9-%d8%a8%d8%b1%d8%a7%db%8c-rest-api-%d8%af%d8%b1-node-js-%da%86%db%8c%d8%b3%d8%aa%d8%9f\">\u06f1. \u0628\u0647\u062a\u0631\u06cc\u0646 \u0641\u0631\u06cc\u0645\u200c\u0648\u0631\u06a9 \u0628\u0631\u0627\u06cc REST API \u062f\u0631 Node.js \u0686\u06cc\u0633\u062a\u061f<\/h3>\n<p>\u0627\u06af\u0631\u0686\u0647 Feathers\u060c Nest\u060c LoopBack\u060c \u0648 Moleculer \u0641\u0631\u06cc\u0645\u200c\u0648\u0631\u06a9\u200c\u0647\u0627\u06cc \u0639\u0627\u0644\u06cc \u0647\u0633\u062a\u0646\u062f\u060c \u062f\u0644\u0627\u06cc\u0644\u06cc \u0648\u062c\u0648\u062f \u062f\u0627\u0631\u062f \u06a9\u0647 Express \u0631\u0627 \u0628\u0647 \u0628\u0647\u062a\u0631\u06cc\u0646 \u06af\u0632\u06cc\u0646\u0647 \u062a\u0628\u062f\u06cc\u0644 \u0645\u06cc\u200c\u06a9\u0646\u062f:<\/p>\n<ul>\n<li><strong>\u0648\u06cc\u0698\u06af\u06cc\u200c\u0647\u0627\u06cc \u06a9\u0627\u0645\u0644:<\/strong> Express \u0627\u0645\u06a9\u0627\u0646\u0627\u062a\u06cc \u0645\u0627\u0646\u0646\u062f \u0645\u0639\u0645\u0627\u0631\u06cc MVC\u060c \u0642\u0627\u0628\u0644\u06cc\u062a\u200c\u0647\u0627\u06cc \u0645\u0633\u06cc\u0631\u06cc\u0627\u0628\u06cc \u0642\u0648\u06cc\u060c \u0648 \u0645\u06cc\u0627\u0646\u200c\u0627\u0641\u0632\u0627\u0631 \u062f\u0627\u062e\u0644\u06cc \u0627\u0631\u0627\u0626\u0647 \u0645\u06cc\u200c\u062f\u0647\u062f.<\/li>\n<li><strong>\u067e\u0634\u062a\u06cc\u0628\u0627\u0646\u06cc \u0642\u0648\u06cc \u0627\u0632 \u062c\u0627\u0645\u0639\u0647:<\/strong> \u062c\u0627\u0645\u0639\u0647 \u0628\u0632\u0631\u06af\u06cc \u062f\u0627\u0631\u062f \u06a9\u0647 \u0628\u0647 \u0634\u0645\u0627 \u062f\u0631 \u06a9\u0627\u0631 \u0633\u0631\u06cc\u0639\u200c\u062a\u0631 \u0648 \u06a9\u0627\u0631\u0622\u0645\u062f\u062a\u0631 \u06a9\u0645\u06a9 \u0645\u06cc\u200c\u06a9\u0646\u062f.<\/li>\n<li><strong>\u06a9\u0627\u0631\u0628\u0631\u067e\u0633\u0646\u062f:<\/strong> Express \u0633\u0627\u062f\u0647 \u0628\u0631\u0627\u06cc \u0631\u0627\u0647\u200c\u0627\u0646\u062f\u0627\u0632\u06cc\u060c \u06cc\u0627\u062f\u06af\u06cc\u0631\u06cc \u0648 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0633\u062a \u0648 \u0628\u0631\u0627\u06cc \u0645\u0628\u062a\u062f\u06cc\u0627\u0646 \u0627\u06cc\u062f\u0647\u200c\u0622\u0644 \u0627\u0633\u062a.<\/li>\n<\/ul>\n<h3 id=\"%db%b2-%d8%a8%d8%b1%d8%a7%db%8c-rest-api-%d8%a7%d8%b2-go-%db%8c%d8%a7-node-js-%d8%a7%d8%b3%d8%aa%d9%81%d8%a7%d8%af%d9%87-%da%a9%d9%86%db%8c%d9%85%d8%9f\">\u06f2. \u0628\u0631\u0627\u06cc REST API \u0627\u0632 Go \u06cc\u0627 Node.js \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u0645\u061f<\/h3>\n<p>\u0627\u0646\u062a\u062e\u0627\u0628 \u0628\u06cc\u0646 Go \u0648 Node.js \u0628\u0647 \u0639\u0648\u0627\u0645\u0644 \u0645\u062e\u062a\u0644\u0641\u06cc \u0645\u0627\u0646\u0646\u062f \u0646\u06cc\u0627\u0632 \u0628\u0647 \u0639\u0645\u0644\u06a9\u0631\u062f\u060c \u0633\u0631\u0639\u062a \u062a\u0648\u0633\u0639\u0647 \u0648 \u062a\u062e\u0635\u0635 \u062a\u06cc\u0645 \u0634\u0645\u0627 \u0628\u0633\u062a\u06af\u06cc \u062f\u0627\u0631\u062f.<\/p>\n<p><strong>\u0632\u0645\u0627\u0646\u06cc \u06a9\u0647 Go \u0645\u0646\u0627\u0633\u0628 \u0627\u0633\u062a:<\/strong><\/p>\n<ul>\n<li>\u0628\u0647 \u0639\u0645\u0644\u06a9\u0631\u062f \u0628\u0627\u0644\u0627 \u0648 \u06a9\u0627\u0631\u0627\u06cc\u06cc \u0646\u06cc\u0627\u0632 \u062f\u0627\u0631\u06cc\u062f.<\/li>\n<li>\u0627\u067e\u0644\u06cc\u06a9\u06cc\u0634\u0646 \u0634\u0645\u0627 \u0646\u06cc\u0627\u0632\u0645\u0646\u062f \u0645\u062f\u06cc\u0631\u06cc\u062a \u062a\u0639\u062f\u0627\u062f \u0632\u06cc\u0627\u062f\u06cc \u0639\u0645\u0644\u06cc\u0627\u062a \u0647\u0645\u0632\u0645\u0627\u0646 \u0627\u0633\u062a.<\/li>\n<li>\u0632\u0628\u0627\u0646 \u062a\u0627\u06cc\u067e\u200c\u0634\u062f\u0647 \u062a\u0631\u062c\u06cc\u062d \u0645\u06cc\u200c\u062f\u0647\u06cc\u062f.<\/li>\n<\/ul>\n<p><strong>\u0632\u0645\u0627\u0646\u06cc \u06a9\u0647 Node.js \u0645\u0646\u0627\u0633\u0628 \u0627\u0633\u062a:<\/strong><\/p>\n<ul>\n<li>\u0646\u06cc\u0627\u0632 \u0628\u0647 \u0686\u0631\u062e\u0647 \u062a\u0648\u0633\u0639\u0647 \u0633\u0631\u06cc\u0639 \u062f\u0627\u0631\u06cc\u062f.<\/li>\n<li>\u0627\u067e\u0644\u06cc\u06a9\u06cc\u0634\u0646 \u0634\u0645\u0627 I\/O \u0645\u062d\u0648\u0631 \u0627\u0633\u062a.<\/li>\n<li>\u062c\u0627\u0648\u0627\u0627\u0633\u06a9\u0631\u06cc\u067e\u062a \u062f\u0631 \u06a9\u0644 \u067e\u0631\u0648\u0698\u0647 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc\u200c\u06a9\u0646\u06cc\u062f.<\/li>\n<\/ul>\n<h3 id=\"%db%b3-%d8%a2%db%8c%d8%a7-node-js-%d8%a8%d8%b1%d8%a7%db%8c-%d8%aa%d9%88%d8%b3%d8%b9%d9%87-api-%d9%85%d9%86%d8%a7%d8%b3%d8%a8-%d8%a7%d8%b3%d8%aa%d8%9f\">\u06f3. \u0622\u06cc\u0627 Node.js \u0628\u0631\u0627\u06cc \u062a\u0648\u0633\u0639\u0647 API \u0645\u0646\u0627\u0633\u0628 \u0627\u0633\u062a\u061f<\/h3>\n<p>\u0628\u0644\u0647\u060c Node.js \u0628\u0647 \u062f\u0644\u06cc\u0644 \u0645\u0639\u0645\u0627\u0631\u06cc \u063a\u06cc\u0631\u0645\u0633\u062f\u0648\u062f\u06a9\u0646\u0646\u062f\u0647 \u0648 \u0627\u0628\u0632\u0627\u0631\u0647\u0627\u06cc \u0645\u0627\u0646\u0646\u062f Express \u0628\u0631\u0627\u06cc \u0633\u0627\u062e\u062a API\u200c\u0647\u0627\u06cc RESTful \u0628\u0633\u06cc\u0627\u0631 \u0645\u0646\u0627\u0633\u0628 \u0627\u0633\u062a.<\/p>\n<h3 id=\"%db%b4-%d8%a8%d9%87%d8%aa%d8%b1%db%8c%d9%86-%d8%b2%d8%a8%d8%a7%d9%86-%d8%a8%d8%b1%d8%a7%db%8c-%d9%be%db%8c%d8%a7%d8%af%d9%87%d8%b3%d8%a7%d8%b2%db%8c-rest-api-%da%86%db%8c%d8%b3%d8%aa%d8%9f\">\u06f4. \u0628\u0647\u062a\u0631\u06cc\u0646 \u0632\u0628\u0627\u0646 \u0628\u0631\u0627\u06cc \u067e\u06cc\u0627\u062f\u0647\u200c\u0633\u0627\u0632\u06cc REST API \u0686\u06cc\u0633\u062a\u061f<\/h3>\n<p>\u0628\u0647\u062a\u0631\u06cc\u0646 \u0632\u0628\u0627\u0646 \u0628\u0631\u0627\u06cc \u067e\u06cc\u0627\u062f\u0647\u200c\u0633\u0627\u0632\u06cc REST API \u0628\u0647 \u0646\u06cc\u0627\u0632\u0647\u0627\u06cc \u062e\u0627\u0635 \u067e\u0631\u0648\u0698\u0647 \u0634\u0645\u0627\u060c \u062a\u062e\u0635\u0635 \u062a\u06cc\u0645 \u062a\u0648\u0633\u0639\u0647 \u0648 \u067e\u0634\u062a\u0647 \u0641\u0646\u0627\u0648\u0631\u06cc \u0641\u0639\u0644\u06cc \u0628\u0633\u062a\u06af\u06cc \u062f\u0627\u0631\u062f.<\/p>\n<ul>\n<li><strong>\u0628\u0631\u0627\u06cc \u0646\u0645\u0648\u0646\u0647\u200c\u0633\u0627\u0632\u06cc \u0633\u0631\u06cc\u0639:<\/strong> Python (\u0628\u0627 \u0641\u0631\u06cc\u0645\u200c\u0648\u0631\u06a9 Flask \u06cc\u0627 Django) \u06cc\u0627 Ruby (\u0628\u0627 \u0641\u0631\u06cc\u0645\u200c\u0648\u0631\u06a9 Rails).<\/li>\n<li><strong>\u0628\u0631\u0627\u06cc \u0639\u0645\u0644\u06a9\u0631\u062f \u0628\u0627\u0644\u0627:<\/strong> Go \u06cc\u0627 C# (\u0628\u0627 ASP.NET Core).<\/li>\n<li><strong>\u0628\u0631\u0627\u06cc \u0627\u06a9\u0648\u0633\u06cc\u0633\u062a\u0645 \u0642\u0648\u06cc \u0648 \u067e\u0634\u062a\u06cc\u0628\u0627\u0646\u06cc \u062c\u0627\u0645\u0639\u0647:<\/strong> JavaScript (\u0628\u0627 Node.js) \u06cc\u0627 PHP.<\/li>\n<li><strong>\u0628\u0631\u0627\u06cc \u0627\u067e\u0644\u06cc\u06a9\u06cc\u0634\u0646\u200c\u0647\u0627\u06cc \u0633\u0637\u062d \u0633\u0627\u0632\u0645\u0627\u0646\u06cc:<\/strong> Java \u06cc\u0627 C#.<\/li>\n<\/ul>\n<h3 id=\"%db%b5-%d8%a2%db%8c%d8%a7-node-js-%d8%a7%d8%b2-rest-api-%d8%a7%d8%b3%d8%aa%d9%81%d8%a7%d8%af%d9%87-%d9%85%db%8c%da%a9%d9%86%d8%af%d8%9f\">\u06f5. \u0622\u06cc\u0627 Node.js \u0627\u0632 REST API \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc\u200c\u06a9\u0646\u062f\u061f<\/h3>\n<p>Node.js \u0628\u0647\u200c\u062e\u0648\u062f\u06cc\u200c\u062e\u0648\u062f \u06cc\u06a9 \u0645\u062d\u06cc\u0637 \u0627\u062c\u0631\u0627\u06cc\u06cc \u0628\u0631\u0627\u06cc \u0627\u062c\u0631\u0627\u06cc \u062c\u0627\u0648\u0627\u0627\u0633\u06a9\u0631\u06cc\u067e\u062a \u062f\u0631 \u0633\u0645\u062a \u0633\u0631\u0648\u0631 \u0627\u0633\u062a \u0648 \u0642\u0627\u0628\u0644\u06cc\u062a REST API \u0628\u0647\u200c\u0635\u0648\u0631\u062a \u062f\u0627\u062e\u0644\u06cc \u0646\u062f\u0627\u0631\u062f. \u0628\u0627 \u0627\u06cc\u0646 \u062d\u0627\u0644\u060c \u0628\u0647 \u062f\u0644\u06cc\u0644 \u0645\u0639\u0645\u0627\u0631\u06cc \u063a\u06cc\u0631\u0645\u0633\u062f\u0648\u062f\u06a9\u0646\u0646\u062f\u0647 \u0648 \u0648\u062c\u0648\u062f \u0641\u0631\u06cc\u0645\u200c\u0648\u0631\u06a9\u200c\u0647\u0627\u06cc\u06cc \u0645\u0627\u0646\u0646\u062f Express.js\u060c Node.js \u0628\u0647\u200c\u0637\u0648\u0631 \u06af\u0633\u062a\u0631\u062f\u0647 \u0628\u0631\u0627\u06cc \u0627\u06cc\u062c\u0627\u062f REST API\u200c\u0647\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc\u200c\u0634\u0648\u062f.<\/p>\n<h3 id=\"%db%b6-%d8%a2%db%8c%d8%a7-%d9%85%d8%b1%d8%af%d9%85-%d9%87%d9%86%d9%88%d8%b2-%d8%a7%d8%b2-express-%d8%a7%d8%b3%d8%aa%d9%81%d8%a7%d8%af%d9%87-%d9%85%db%8c%da%a9%d9%86%d9%86%d8%af%d8%9f\">\u06f6. \u0622\u06cc\u0627 \u0645\u0631\u062f\u0645 \u0647\u0646\u0648\u0632 \u0627\u0632 Express \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc\u200c\u06a9\u0646\u0646\u062f\u061f<\/h3>\n<p>\u0628\u0644\u0647\u060c Express.js \u0647\u0645\u0686\u0646\u0627\u0646 \u0628\u0647\u200c\u0637\u0648\u0631 \u06af\u0633\u062a\u0631\u062f\u0647 \u0628\u0631\u0627\u06cc \u062a\u0648\u0633\u0639\u0647 REST API\u200c\u0647\u0627 \u0648 \u0627\u067e\u0644\u06cc\u06a9\u06cc\u0634\u0646\u200c\u0647\u0627\u06cc \u0648\u0628 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc\u200c\u0634\u0648\u062f.<\/p>\n<h3 id=\"%db%b7-%d8%a2%db%8c%d8%a7-next-js-%d8%ac%d8%a7%db%8c%da%af%d8%b2%db%8c%d9%86-express-%d8%a7%d8%b3%d8%aa%d8%9f\">\u06f7. \u0622\u06cc\u0627 Next.js \u062c\u0627\u06cc\u06af\u0632\u06cc\u0646 Express \u0627\u0633\u062a\u061f<\/h3>\n<p>Next.js \u0648 Express \u0627\u0628\u0632\u0627\u0631\u0647\u0627\u06cc\u06cc \u0647\u0633\u062a\u0646\u062f \u06a9\u0647 \u0627\u0647\u062f\u0627\u0641 \u0645\u062a\u0641\u0627\u0648\u062a\u06cc \u062f\u0631 \u0627\u06a9\u0648\u0633\u06cc\u0633\u062a\u0645 \u062a\u0648\u0633\u0639\u0647 \u0648\u0628 \u062f\u0627\u0631\u0646\u062f \u0648 \u06cc\u06a9\u06cc \u062c\u0627\u06cc\u06af\u0632\u06cc\u0646 \u062f\u06cc\u06af\u0631\u06cc \u0646\u06cc\u0633\u062a. Next.js \u0628\u06cc\u0634\u062a\u0631 \u0628\u0631\u0627\u06cc \u0631\u0646\u062f\u0631 \u0633\u0645\u062a \u0633\u0631\u0648\u0631 \u0648 \u0627\u06cc\u062c\u0627\u062f \u0627\u067e\u0644\u06cc\u06a9\u06cc\u0634\u0646\u200c\u0647\u0627\u06cc React \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc\u200c\u0634\u0648\u062f\u060c \u062f\u0631 \u062d\u0627\u0644\u06cc \u06a9\u0647 Express \u0628\u0631\u0627\u06cc \u0645\u062f\u06cc\u0631\u06cc\u062a \u0645\u0633\u06cc\u0631\u0647\u0627 \u0648 \u0627\u06cc\u062c\u0627\u062f API\u200c\u0647\u0627\u06cc RESTful \u0645\u0646\u0627\u0633\u0628 \u0627\u0633\u062a.<\/p>\n<h3 id=\"%db%b8-%d8%a2%db%8c%d8%a7-node-js-%d8%a8%d8%b1%d8%a7%db%8c-%d8%aa%d9%88%d8%b3%d8%b9%d9%87-api-%d9%85%d9%86%d8%a7%d8%b3%d8%a8-%d8%a7%d8%b3%d8%aa%d8%9f\">\u06f8. \u0622\u06cc\u0627 Node.js \u0628\u0631\u0627\u06cc \u062a\u0648\u0633\u0639\u0647 API \u0645\u0646\u0627\u0633\u0628 \u0627\u0633\u062a\u061f<\/h3>\n<p>\u0628\u0644\u0647\u060c Node.js \u0628\u0647 \u062f\u0644\u06cc\u0644 \u0645\u0639\u0645\u0627\u0631\u06cc \u063a\u06cc\u0631\u0645\u0633\u062f\u0648\u062f\u06a9\u0646\u0646\u062f\u0647 \u0648 \u062a\u0648\u0627\u0646\u0627\u06cc\u06cc \u0622\u0646 \u062f\u0631 \u0645\u062f\u06cc\u0631\u06cc\u062a \u0647\u0645\u0632\u0645\u0627\u0646 \u062a\u0639\u062f\u0627\u062f \u0632\u06cc\u0627\u062f\u06cc \u0627\u062a\u0635\u0627\u0644\u060c \u0628\u0631\u0627\u06cc \u062a\u0648\u0633\u0639\u0647 API \u0628\u0633\u06cc\u0627\u0631 \u0645\u0646\u0627\u0633\u0628 \u0627\u0633\u062a. \u0647\u0645\u0686\u0646\u06cc\u0646\u060c \u0628\u0627 \u0648\u062c\u0648\u062f \u0641\u0631\u06cc\u0645\u200c\u0648\u0631\u06a9\u200c\u0647\u0627\u06cc\u06cc \u0645\u0627\u0646\u0646\u062f Express.js\u060c \u0633\u0627\u062e\u062a API\u200c\u0647\u0627\u06cc RESTful \u0628\u0627 Node.js \u0622\u0633\u0627\u0646 \u0648 \u0633\u0631\u06cc\u0639 \u0627\u0633\u062a.<\/p>\n<h3 id=\"%db%b9-%d8%a8%d9%87%d8%aa%d8%b1%db%8c%d9%86-%d9%be%d8%a7%db%8c%da%af%d8%a7%d9%87-%d8%af%d8%a7%d8%af%d9%87-%d8%a8%d8%b1%d8%a7%db%8c-api%d9%87%d8%a7%db%8c-node-js-%da%86%db%8c%d8%b3%d8%aa\">\u06f9. \u0628\u0647\u062a\u0631\u06cc\u0646 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u0628\u0631\u0627\u06cc API\u200c\u0647\u0627\u06cc Node.js \u0686\u06cc\u0633\u062a\u061f<\/h3>\n<p>\u0628\u0647\u062a\u0631\u06cc\u0646 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u0628\u0631\u0627\u06cc API\u200c\u0647\u0627\u06cc Node.js \u0628\u0647 \u0646\u06cc\u0627\u0632\u0647\u0627\u06cc \u062e\u0627\u0635 \u067e\u0631\u0648\u0698\u0647 \u0634\u0645\u0627 \u0628\u0633\u062a\u06af\u06cc \u062f\u0627\u0631\u062f:<\/p>\n<ul>\n<li><strong>MongoDB:<\/strong> \u0628\u0631\u0627\u06cc \u0627\u0646\u0639\u0637\u0627\u0641\u200c\u067e\u0630\u06cc\u0631\u06cc \u0648 \u06cc\u06a9\u067e\u0627\u0631\u0686\u06af\u06cc \u0622\u0633\u0627\u0646 \u0628\u0627 Node.js.<\/li>\n<li><strong>PostgreSQL \u0648 MySQL:<\/strong> \u0628\u0631\u0627\u06cc \u0633\u0627\u0632\u06af\u0627\u0631\u06cc \u0642\u0648\u06cc \u0648 \u0642\u0627\u0628\u0644\u06cc\u062a\u200c\u0647\u0627\u06cc SQL.<\/li>\n<li><strong>SQLite:<\/strong> \u0628\u0631\u0627\u06cc \u0627\u067e\u0644\u06cc\u06a9\u06cc\u0634\u0646\u200c\u0647\u0627\u06cc \u0633\u0627\u062f\u0647 \u06cc\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647\u200c\u0647\u0627\u06cc \u062a\u0639\u0628\u06cc\u0647\u200c\u0634\u062f\u0647.<\/li>\n<\/ul>\n<p>\u0627\u0631\u0632\u06cc\u0627\u0628\u06cc \u0646\u06cc\u0627\u0632\u0647\u0627\u06cc \u0627\u067e\u0644\u06cc\u06a9\u06cc\u0634\u0646 \u0648 \u0627\u0646\u062a\u062e\u0627\u0628 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u0645\u0646\u0627\u0633\u0628 \u0628\u0647 \u0645\u0648\u0641\u0642\u06cc\u062a \u067e\u0631\u0648\u0698\u0647 \u0634\u0645\u0627 \u06a9\u0645\u06a9 \u0645\u06cc\u200c\u06a9\u0646\u062f.<\/p>\n<h2 id=\"%d9%86%d8%aa%db%8c%d8%ac%d9%87\">\u0646\u062a\u06cc\u062c\u0647\u200c<\/h2>\n<p>\u0627\u06cc\u062c\u0627\u062f \u06cc\u06a9 REST API \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 Node.js \u0648 Express \u06cc\u06a9 \u0645\u0647\u0627\u0631\u062a \u0642\u062f\u0631\u062a\u0645\u0646\u062f \u0628\u0631\u0627\u06cc \u0647\u0631 \u062a\u0648\u0633\u0639\u0647\u200c\u062f\u0647\u0646\u062f\u0647 \u0648\u0628 \u0627\u0633\u062a. \u062f\u0631 \u0627\u06cc\u0646 \u0645\u0637\u0644\u0628\u060c \u0645\u0631\u0627\u062d\u0644 \u0627\u0635\u0644\u06cc \u0627\u0632 \u0631\u0627\u0647\u200c\u0627\u0646\u062f\u0627\u0632\u06cc \u067e\u0631\u0648\u0698\u0647 \u062a\u0627 \u062a\u0639\u0631\u06cc\u0641 \u0645\u0633\u06cc\u0631\u0647\u0627 \u0648 \u062d\u062a\u06cc \u062a\u0633\u062a \u0648 \u0627\u0633\u062a\u0642\u0631\u0627\u0631 \u0631\u0627 \u067e\u0648\u0634\u0634 \u062f\u0627\u062f\u06cc\u0645. \u0628\u0647 \u06cc\u0627\u062f \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u06cc\u062f \u06a9\u0647 \u062a\u0645\u0631\u06cc\u0646 \u06a9\u0644\u06cc\u062f \u0645\u0648\u0641\u0642\u06cc\u062a \u0627\u0633\u062a\u060c \u0628\u0646\u0627\u0628\u0631\u0627\u06cc\u0646 \u0627\u0632 \u0633\u0627\u062e\u062a API\u200c\u0647\u0627\u06cc \u062e\u0648\u062f \u0648 \u0622\u0632\u0645\u0627\u06cc\u0634 \u0628\u0627 \u0642\u0627\u0628\u0644\u06cc\u062a\u200c\u0647\u0627\u06cc \u0645\u062e\u062a\u0644\u0641 \u0646\u062a\u0631\u0633\u06cc\u062f. \u0628\u0627 \u0627\u06cc\u0646 \u067e\u0627\u06cc\u0647\u060c \u0634\u0645\u0627 \u0628\u0647 \u062e\u0648\u0628\u06cc \u0622\u0645\u0627\u062f\u0647 \u062a\u0648\u0633\u0639\u0647 \u0627\u067e\u0644\u06cc\u06a9\u06cc\u0634\u0646\u200c\u0647\u0627\u06cc \u0648\u0628 \u0642\u0648\u06cc \u0648 \u0645\u0642\u06cc\u0627\u0633\u200c\u067e\u0630\u06cc\u0631 \u0628\u0627 RESTful API\u200c\u0647\u0627 \u062e\u0648\u0627\u0647\u06cc\u062f \u0628\u0648\u062f.<\/p>\n","protected":false},"excerpt":{"rendered":"\u0427\u0442\u043e \u0442\u0430\u043a\u043e\u0435 REST API? REST API \u2014 \u044d\u0442\u043e \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u043d\u044b\u0439 \u0441\u0442\u0438\u043b\u044c, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0449\u0438\u0439 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b HTTP \u0434\u043b\u044f \u0443\u043f\u0440\u043e\u0449\u0435\u043d\u0438\u044f \u043e\u0431\u043c\u0435\u043d\u0430 \u0434\u0430\u043d\u043d\u044b\u043c\u0438\u2026","protected":false},"author":1,"featured_media":16485,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_yoast_wpseo_focuskw":"\u0627\u06cc\u062c\u0627\u062f REST API \u0628\u0627 Node.js","_yoast_wpseo_title":"","_yoast_wpseo_metadesc":"","_yoast_wpseo_canonical":"","_yoast_wpseo_opengraph-description":"","_yoast_wpseo_opengraph-image":"","_yoast_wpseo_twitter-description":"","_yoast_wpseo_twitter-image":"","_yoast_wpseo_focuskeywords":"[]","_yoast_wpseo_primary_category":"193","footnotes":""},"categories":[193,363],"tags":[414,394],"class_list":{"0":"post-16482","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-tutorials","8":"category-programming","9":"tag-api","10":"tag-nodejs"},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>\u0686\u06af\u0648\u0646\u0647 \u06cc\u06a9 REST API \u0628\u0627 Node.js \u0648 Express \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u06cc\u0645 - \u0628\u0644\u0627\u06af ITPiran<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.itpiran.net\/blog\/ru\/tutorials\/how-to-create-a-rest-api-with-node-js-and-express\/\" \/>\n<meta property=\"og:locale\" content=\"ru_RU\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u0686\u06af\u0648\u0646\u0647 \u06cc\u06a9 REST API \u0628\u0627 Node.js \u0648 Express \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u06cc\u0645 - \u0628\u0644\u0627\u06af ITPiran\" \/>\n<meta property=\"og:description\" content=\"REST API \u0686\u06cc\u0633\u062a\u061f \u06cc\u06a9 REST API \u06cc\u06a9 \u0633\u0628\u06a9 \u0645\u0639\u0645\u0627\u0631\u06cc \u0627\u0633\u062a \u06a9\u0647 \u0627\u0632 \u067e\u0631\u0648\u062a\u06a9\u0644 HTTP \u0628\u0631\u0627\u06cc \u062a\u0633\u0647\u06cc\u0644 \u062a\u0628\u0627\u062f\u0644 \u062f\u0627\u062f\u0647&hellip;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.itpiran.net\/blog\/ru\/tutorials\/how-to-create-a-rest-api-with-node-js-and-express\/\" \/>\n<meta property=\"og:site_name\" content=\"\u0628\u0644\u0627\u06af ITPiran\" \/>\n<meta property=\"article:published_time\" content=\"2024-12-03T17:52:30+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.itpiran.net\/2024\/12\/03211030\/apiwallpaper.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1793\" \/>\n\t<meta property=\"og:image:height\" content=\"1110\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u041d\u0430\u043f\u0438\u0441\u0430\u043d\u043e \u0430\u0432\u0442\u043e\u0440\u043e\u043c\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u041f\u0440\u0438\u043c\u0435\u0440\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u0434\u043b\u044f \u0447\u0442\u0435\u043d\u0438\u044f\" \/>\n\t<meta name=\"twitter:data2\" content=\"10 \u043c\u0438\u043d\u0443\u0442\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/how-to-create-a-rest-api-with-node-js-and-express\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/how-to-create-a-rest-api-with-node-js-and-express\\\/\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/#\\\/schema\\\/person\\\/04ed27b919baca468a2273f8e4318f81\"},\"headline\":\"\u0686\u06af\u0648\u0646\u0647 \u06cc\u06a9 REST API \u0628\u0627 Node.js \u0648 Express \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u06cc\u0645\",\"datePublished\":\"2024-12-03T17:52:30+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/how-to-create-a-rest-api-with-node-js-and-express\\\/\"},\"wordCount\":269,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/how-to-create-a-rest-api-with-node-js-and-express\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/cdn.itpiran.net\\\/2024\\\/12\\\/03211030\\\/apiwallpaper.jpg\",\"keywords\":[\"API\",\"Nodejs\"],\"articleSection\":[\"\u0622\u0645\u0648\u0632\u0634\u06cc\",\"\u0628\u0631\u0646\u0627\u0645\u0647 \u0646\u0648\u06cc\u0633\u06cc\"],\"inLanguage\":\"ru-RU\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/how-to-create-a-rest-api-with-node-js-and-express\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/how-to-create-a-rest-api-with-node-js-and-express\\\/\",\"url\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/how-to-create-a-rest-api-with-node-js-and-express\\\/\",\"name\":\"\u0686\u06af\u0648\u0646\u0647 \u06cc\u06a9 REST API \u0628\u0627 Node.js \u0648 Express \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u06cc\u0645 - \u0628\u0644\u0627\u06af ITPiran\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/how-to-create-a-rest-api-with-node-js-and-express\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/how-to-create-a-rest-api-with-node-js-and-express\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/cdn.itpiran.net\\\/2024\\\/12\\\/03211030\\\/apiwallpaper.jpg\",\"datePublished\":\"2024-12-03T17:52:30+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/how-to-create-a-rest-api-with-node-js-and-express\\\/#breadcrumb\"},\"inLanguage\":\"ru-RU\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/how-to-create-a-rest-api-with-node-js-and-express\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ru-RU\",\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/how-to-create-a-rest-api-with-node-js-and-express\\\/#primaryimage\",\"url\":\"https:\\\/\\\/cdn.itpiran.net\\\/2024\\\/12\\\/03211030\\\/apiwallpaper.jpg\",\"contentUrl\":\"https:\\\/\\\/cdn.itpiran.net\\\/2024\\\/12\\\/03211030\\\/apiwallpaper.jpg\",\"width\":1793,\"height\":1110},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/how-to-create-a-rest-api-with-node-js-and-express\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u0622\u0645\u0648\u0632\u0634\u06cc\",\"item\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/category\\\/tutorials\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"\u0686\u06af\u0648\u0646\u0647 \u06cc\u06a9 REST API \u0628\u0627 Node.js \u0648 Express \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u06cc\u0645\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/\",\"name\":\"\u0628\u0644\u0627\u06af ITPiran\",\"description\":\"\u0627\u062e\u0628\u0627\u0631 \u0648 \u0645\u0642\u0627\u0644\u0627\u062a \u062a\u062c\u0627\u0631\u062a \u067e\u0627\u06cc\u062f\u0627\u0631 \u0627\u06cc\u0631\u0627\u0646\u06cc\u0627\u0646\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ru-RU\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/#organization\",\"name\":\"\u0628\u0644\u0627\u06af \u062a\u062c\u0627\u0631\u062a \u067e\u0627\u06cc\u062f\u0627\u0631 \u0627\u06cc\u0631\u0627\u0646\u06cc\u0627\u0646\",\"alternateName\":\"ITPIran Blog\",\"url\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ru-RU\",\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/cdn.itpiran.net\\\/2023\\\/12\\\/27150508\\\/cropped-ITPIRAN-BLOG-LOGO-2.png\",\"contentUrl\":\"https:\\\/\\\/cdn.itpiran.net\\\/2023\\\/12\\\/27150508\\\/cropped-ITPIRAN-BLOG-LOGO-2.png\",\"width\":512,\"height\":512,\"caption\":\"\u0628\u0644\u0627\u06af \u062a\u062c\u0627\u0631\u062a \u067e\u0627\u06cc\u062f\u0627\u0631 \u0627\u06cc\u0631\u0627\u0646\u06cc\u0627\u0646\"},\"image\":{\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/#\\\/schema\\\/person\\\/04ed27b919baca468a2273f8e4318f81\",\"name\":\"admin\",\"url\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/ru\\\/author\\\/admin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u041a\u0430\u043a \u0441\u043e\u0437\u0434\u0430\u0442\u044c REST API \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Node.js \u0438 Express \u2014 \u0431\u043b\u043e\u0433 ITPiran","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.itpiran.net\/blog\/ru\/tutorials\/how-to-create-a-rest-api-with-node-js-and-express\/","og_locale":"ru_RU","og_type":"article","og_title":"\u0686\u06af\u0648\u0646\u0647 \u06cc\u06a9 REST API \u0628\u0627 Node.js \u0648 Express \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u06cc\u0645 - \u0628\u0644\u0627\u06af ITPiran","og_description":"REST API \u0686\u06cc\u0633\u062a\u061f \u06cc\u06a9 REST API \u06cc\u06a9 \u0633\u0628\u06a9 \u0645\u0639\u0645\u0627\u0631\u06cc \u0627\u0633\u062a \u06a9\u0647 \u0627\u0632 \u067e\u0631\u0648\u062a\u06a9\u0644 HTTP \u0628\u0631\u0627\u06cc \u062a\u0633\u0647\u06cc\u0644 \u062a\u0628\u0627\u062f\u0644 \u062f\u0627\u062f\u0647&hellip;","og_url":"https:\/\/www.itpiran.net\/blog\/ru\/tutorials\/how-to-create-a-rest-api-with-node-js-and-express\/","og_site_name":"\u0628\u0644\u0627\u06af ITPiran","article_published_time":"2024-12-03T17:52:30+00:00","og_image":[{"width":1793,"height":1110,"url":"https:\/\/cdn.itpiran.net\/2024\/12\/03211030\/apiwallpaper.jpg","type":"image\/jpeg"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u041d\u0430\u043f\u0438\u0441\u0430\u043d\u043e \u0430\u0432\u0442\u043e\u0440\u043e\u043c":"admin","\u041f\u0440\u0438\u043c\u0435\u0440\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u0434\u043b\u044f \u0447\u0442\u0435\u043d\u0438\u044f":"10 \u043c\u0438\u043d\u0443\u0442"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.itpiran.net\/blog\/tutorials\/how-to-create-a-rest-api-with-node-js-and-express\/#article","isPartOf":{"@id":"https:\/\/www.itpiran.net\/blog\/tutorials\/how-to-create-a-rest-api-with-node-js-and-express\/"},"author":{"name":"admin","@id":"https:\/\/www.itpiran.net\/blog\/#\/schema\/person\/04ed27b919baca468a2273f8e4318f81"},"headline":"\u0686\u06af\u0648\u0646\u0647 \u06cc\u06a9 REST API \u0628\u0627 Node.js \u0648 Express \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u06cc\u0645","datePublished":"2024-12-03T17:52:30+00:00","mainEntityOfPage":{"@id":"https:\/\/www.itpiran.net\/blog\/tutorials\/how-to-create-a-rest-api-with-node-js-and-express\/"},"wordCount":269,"commentCount":0,"publisher":{"@id":"https:\/\/www.itpiran.net\/blog\/#organization"},"image":{"@id":"https:\/\/www.itpiran.net\/blog\/tutorials\/how-to-create-a-rest-api-with-node-js-and-express\/#primaryimage"},"thumbnailUrl":"https:\/\/cdn.itpiran.net\/2024\/12\/03211030\/apiwallpaper.jpg","keywords":["API","Nodejs"],"articleSection":["\u0622\u0645\u0648\u0632\u0634\u06cc","\u0628\u0631\u0646\u0627\u0645\u0647 \u0646\u0648\u06cc\u0633\u06cc"],"inLanguage":"ru-RU","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.itpiran.net\/blog\/tutorials\/how-to-create-a-rest-api-with-node-js-and-express\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.itpiran.net\/blog\/tutorials\/how-to-create-a-rest-api-with-node-js-and-express\/","url":"https:\/\/www.itpiran.net\/blog\/tutorials\/how-to-create-a-rest-api-with-node-js-and-express\/","name":"\u041a\u0430\u043a \u0441\u043e\u0437\u0434\u0430\u0442\u044c REST API \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Node.js \u0438 Express \u2014 \u0431\u043b\u043e\u0433 ITPiran","isPartOf":{"@id":"https:\/\/www.itpiran.net\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.itpiran.net\/blog\/tutorials\/how-to-create-a-rest-api-with-node-js-and-express\/#primaryimage"},"image":{"@id":"https:\/\/www.itpiran.net\/blog\/tutorials\/how-to-create-a-rest-api-with-node-js-and-express\/#primaryimage"},"thumbnailUrl":"https:\/\/cdn.itpiran.net\/2024\/12\/03211030\/apiwallpaper.jpg","datePublished":"2024-12-03T17:52:30+00:00","breadcrumb":{"@id":"https:\/\/www.itpiran.net\/blog\/tutorials\/how-to-create-a-rest-api-with-node-js-and-express\/#breadcrumb"},"inLanguage":"ru-RU","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.itpiran.net\/blog\/tutorials\/how-to-create-a-rest-api-with-node-js-and-express\/"]}]},{"@type":"ImageObject","inLanguage":"ru-RU","@id":"https:\/\/www.itpiran.net\/blog\/tutorials\/how-to-create-a-rest-api-with-node-js-and-express\/#primaryimage","url":"https:\/\/cdn.itpiran.net\/2024\/12\/03211030\/apiwallpaper.jpg","contentUrl":"https:\/\/cdn.itpiran.net\/2024\/12\/03211030\/apiwallpaper.jpg","width":1793,"height":1110},{"@type":"BreadcrumbList","@id":"https:\/\/www.itpiran.net\/blog\/tutorials\/how-to-create-a-rest-api-with-node-js-and-express\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.itpiran.net\/blog\/"},{"@type":"ListItem","position":2,"name":"\u0622\u0645\u0648\u0632\u0634\u06cc","item":"https:\/\/www.itpiran.net\/blog\/category\/tutorials\/"},{"@type":"ListItem","position":3,"name":"\u0686\u06af\u0648\u0646\u0647 \u06cc\u06a9 REST API \u0628\u0627 Node.js \u0648 Express \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u06cc\u0645"}]},{"@type":"WebSite","@id":"https:\/\/www.itpiran.net\/blog\/#website","url":"https:\/\/www.itpiran.net\/blog\/","name":"\u0411\u043b\u043e\u0433 ITPiran","description":"\u041d\u043e\u0432\u043e\u0441\u0442\u0438 \u0438 \u0441\u0442\u0430\u0442\u044c\u0438 \u043e\u0431 \u0443\u0441\u0442\u043e\u0439\u0447\u0438\u0432\u043e\u0439 \u0442\u043e\u0440\u0433\u043e\u0432\u043b\u0435 \u0418\u0440\u0430\u043d\u0430","publisher":{"@id":"https:\/\/www.itpiran.net\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.itpiran.net\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ru-RU"},{"@type":"Organization","@id":"https:\/\/www.itpiran.net\/blog\/#organization","name":"\u0411\u043b\u043e\u0433 \u043e\u0431 \u0443\u0441\u0442\u043e\u0439\u0447\u0438\u0432\u043e\u043c \u0438\u0440\u0430\u043d\u0441\u043a\u043e\u043c \u0431\u0438\u0437\u043d\u0435\u0441\u0435","alternateName":"ITPIran Blog","url":"https:\/\/www.itpiran.net\/blog\/","logo":{"@type":"ImageObject","inLanguage":"ru-RU","@id":"https:\/\/www.itpiran.net\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/cdn.itpiran.net\/2023\/12\/27150508\/cropped-ITPIRAN-BLOG-LOGO-2.png","contentUrl":"https:\/\/cdn.itpiran.net\/2023\/12\/27150508\/cropped-ITPIRAN-BLOG-LOGO-2.png","width":512,"height":512,"caption":"\u0628\u0644\u0627\u06af \u062a\u062c\u0627\u0631\u062a \u067e\u0627\u06cc\u062f\u0627\u0631 \u0627\u06cc\u0631\u0627\u0646\u06cc\u0627\u0646"},"image":{"@id":"https:\/\/www.itpiran.net\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.itpiran.net\/blog\/#\/schema\/person\/04ed27b919baca468a2273f8e4318f81","name":"\u0430\u0434\u043c\u0438\u043d","url":"https:\/\/www.itpiran.net\/blog\/ru\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/www.itpiran.net\/blog\/ru\/wp-json\/wp\/v2\/posts\/16482","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.itpiran.net\/blog\/ru\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.itpiran.net\/blog\/ru\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.itpiran.net\/blog\/ru\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.itpiran.net\/blog\/ru\/wp-json\/wp\/v2\/comments?post=16482"}],"version-history":[{"count":1,"href":"https:\/\/www.itpiran.net\/blog\/ru\/wp-json\/wp\/v2\/posts\/16482\/revisions"}],"predecessor-version":[{"id":16484,"href":"https:\/\/www.itpiran.net\/blog\/ru\/wp-json\/wp\/v2\/posts\/16482\/revisions\/16484"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.itpiran.net\/blog\/ru\/wp-json\/wp\/v2\/media\/16485"}],"wp:attachment":[{"href":"https:\/\/www.itpiran.net\/blog\/ru\/wp-json\/wp\/v2\/media?parent=16482"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.itpiran.net\/blog\/ru\/wp-json\/wp\/v2\/categories?post=16482"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.itpiran.net\/blog\/ru\/wp-json\/wp\/v2\/tags?post=16482"}],"curies":[{"name":"WP","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}