{"id":18749,"date":"2022-06-18T00:35:12","date_gmt":"2022-06-17T21:35:12","guid":{"rendered":"https:\/\/mob25.com\/?p=18749"},"modified":"2023-05-09T21:47:49","modified_gmt":"2023-05-09T18:47:49","slug":"vjusety-v-django-rasshirennye-vozmozhnosti","status":"publish","type":"post","link":"https:\/\/mob25.com\/blog\/vjusety-v-django-rasshirennye-vozmozhnosti\/","title":{"rendered":"\u0412\u044c\u044e\u0441\u0435\u0442\u044b \u0432 Django. \u0420\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u043d\u044b\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438"},"content":{"rendered":"\n<p>\u0411\u044b\u0442\u0443\u0435\u0442 \u043c\u043d\u0435\u043d\u0438\u0435, \u0447\u0442\u043e \u0443 \u043a\u043e\u0442\u0438\u043a\u043e\u0432 \u0441 \u0434\u043e\u043c\u0438\u043d\u0438\u0440\u0443\u044e\u0449\u0438\u043c \u0431\u0435\u043b\u044b\u043c \u043e\u043a\u0440\u0430\u0441\u043e\u043c \u0433\u043e\u043b\u0443\u0431\u043e\u0439 \u0446\u0432\u0435\u0442 \u0433\u043b\u0430\u0437 \u0431\u043e\u043b\u0435\u0435 \u0433\u043b\u0443\u0431\u043e\u043a\u0438\u0439, \u0447\u0435\u043c \u0443 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0445, \u0438 \u044d\u0442\u043e \u0441\u0447\u0438\u0442\u0430\u0435\u0442\u0441\u044f \u0434\u043e\u0441\u0442\u043e\u0438\u043d\u0441\u0442\u0432\u043e\u043c. \u0412\u043e\u0442 \u0438\u043c\u0435\u043d\u043d\u043e \u043e\u043d\u0438 \u0438 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442 \u0438\u043d\u0442\u0435\u0440\u0435\u0441 \u0434\u043b\u044f \u043d\u0430\u0448\u0438\u0445 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439.<\/p>\n\n\n\n<p>\u0412 \u0441\u0432\u044f\u0437\u0438 \u0441 \u043f\u043e\u0432\u044b\u0448\u0435\u043d\u043d\u044b\u043c \u0441\u043f\u0440\u043e\u0441\u043e\u043c \u043d\u0430 \u0431\u0435\u043b\u044b\u0445 \u043a\u043e\u0442\u0438\u043a\u043e\u0432 \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0440\u0430\u0441\u0448\u0438\u0440\u0438\u0442\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 API: \u043f\u043e \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u043c\u0443 \u0437\u0430\u043f\u0440\u043e\u0441\u0443 \u043d\u0443\u0436\u043d\u043e \u043e\u0442\u0434\u0430\u0432\u0430\u0442\u044c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e \u043f\u044f\u0442\u0438 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0445 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u0445 \u043a\u043e\u0442\u0438\u043a\u0430\u0445 \u0431\u0435\u043b\u043e\u0433\u043e \u0446\u0432\u0435\u0442\u0430. \u0414\u043b\u044f \u0442\u0430\u043a\u0438\u0445 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u0443\u0436\u0435 \u043f\u0440\u0438\u0434\u0443\u043c\u0430\u043b\u0438 \u044d\u043d\u0434\u043f\u043e\u0438\u043d\u0442:&nbsp;<code>cats\/recent-white-cats\/<\/code>.<\/p>\n\n\n\n<p>\u0417\u0430\u0434\u0430\u0447\u0430 \u043d\u0435 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0442\u0438\u043f\u0438\u0447\u043d\u043e\u0439: \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u043e \u0432\u0441\u0435\u0445 \u043a\u043e\u0442\u0438\u043a\u0430\u0445 \u0438\u043b\u0438 \u043e \u043a\u0430\u043a\u043e\u043c-\u0442\u043e \u043e\u0434\u043d\u043e\u043c, \u043d\u043e \u043d\u0435 \u043e \u043f\u044f\u0442\u0438, \u0434\u0430 \u0435\u0449\u0451 \u0438 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u043e\u0433\u043e \u0446\u0432\u0435\u0442\u0430.<\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_87 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\"><\/p>\n<span class=\"ez-toc-title-toggle\"><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/mob25.com\/blog\/vjusety-v-django-rasshirennye-vozmozhnosti\/#%D0%9D%D0%B5%D1%81%D1%82%D0%B0%D0%BD%D0%B4%D0%B0%D1%80%D1%82%D0%BD%D1%8B%D0%B5_%D0%B4%D0%B5%D0%B9%D1%81%D1%82%D0%B2%D0%B8%D1%8F_%D0%B2%D0%BE_%D0%B2%D1%8C%D1%8E%D1%81%D0%B5%D1%82%D0%B0%D1%85\" >\u041d\u0435\u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0432\u043e \u0432\u044c\u044e\u0441\u0435\u0442\u0430\u0445<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/mob25.com\/blog\/vjusety-v-django-rasshirennye-vozmozhnosti\/#%D0%A0%D0%B0%D0%B7%D0%BB%D0%B8%D1%87%D0%BD%D1%8B%D0%B5_%D1%81%D0%B5%D1%80%D0%B8%D0%B0%D0%BB%D0%B8%D0%B7%D0%B0%D1%82%D0%BE%D1%80%D1%8B_%D0%B4%D0%BB%D1%8F_%D0%BE%D0%B4%D0%BD%D0%BE%D0%B3%D0%BE_%D0%B2%D1%8C%D1%8E%D1%81%D0%B5%D1%82%D0%B0\" >\u0420\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0435 \u0441\u0435\u0440\u0438\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u044b \u0434\u043b\u044f \u043e\u0434\u043d\u043e\u0433\u043e \u0432\u044c\u044e\u0441\u0435\u0442\u0430<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/mob25.com\/blog\/vjusety-v-django-rasshirennye-vozmozhnosti\/#%D0%9D%D0%B5%D1%81%D1%82%D0%B0%D0%BD%D0%B4%D0%B0%D1%80%D1%82%D0%BD%D1%8B%D0%B9_%D0%BD%D0%B0%D0%B1%D0%BE%D1%80_%D1%81%D1%82%D0%B0%D0%BD%D0%B4%D0%B0%D1%80%D1%82%D0%BD%D1%8B%D1%85_%D0%B4%D0%B5%D0%B9%D1%81%D1%82%D0%B2%D0%B8%D0%B9\" >\u041d\u0435\u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0439 \u043d\u0430\u0431\u043e\u0440 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0445 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/mob25.com\/blog\/vjusety-v-django-rasshirennye-vozmozhnosti\/#%D0%9C%D0%B8%D0%BA%D1%81%D0%B8%D0%BD%D1%8B_%D0%B8_%D0%B2%D0%B0%D1%88_%D1%81%D0%BE%D0%B1%D1%81%D1%82%D0%B2%D0%B5%D0%BD%D0%BD%D1%8B%D0%B9_%D0%B1%D0%B0%D0%B7%D0%BE%D0%B2%D1%8B%D0%B9_%D0%BA%D0%BB%D0%B0%D1%81%D1%81_%D0%B4%D0%BB%D1%8F_%D0%B2%D1%8C%D1%8E%D1%81%D0%B5%D1%82%D0%BE%D0%B2\" >\u041c\u0438\u043a\u0441\u0438\u043d\u044b \u0438 \u0432\u0430\u0448 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u0431\u0430\u0437\u043e\u0432\u044b\u0439 \u043a\u043b\u0430\u0441\u0441 \u0434\u043b\u044f \u0432\u044c\u044e\u0441\u0435\u0442\u043e\u0432<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/mob25.com\/blog\/vjusety-v-django-rasshirennye-vozmozhnosti\/#%D0%9D%D0%B5%D0%BE%D0%B6%D0%B8%D0%B4%D0%B0%D0%BD%D0%BD%D0%BE%D0%B5_%D0%BE%D1%82%D0%BA%D1%80%D0%BE%D0%B2%D0%B5%D0%BD%D0%B8%D0%B5\" >\u041d\u0435\u043e\u0436\u0438\u0434\u0430\u043d\u043d\u043e\u0435 \u043e\u0442\u043a\u0440\u043e\u0432\u0435\u043d\u0438\u0435<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/mob25.com\/blog\/vjusety-v-django-rasshirennye-vozmozhnosti\/#%D0%92%D0%B5%D1%80%D0%BD%D1%91%D0%BC%D1%81%D1%8F_%D0%BA_%D0%BD%D0%B0%D1%88%D0%B8%D0%BC_%D0%BC%D0%B8%D0%BA%D1%81%D0%B8%D0%BD%D0%B0%D0%BC\" >\u0412\u0435\u0440\u043d\u0451\u043c\u0441\u044f \u043a \u043d\u0430\u0448\u0438\u043c \u043c\u0438\u043a\u0441\u0438\u043d\u0430\u043c<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/mob25.com\/blog\/vjusety-v-django-rasshirennye-vozmozhnosti\/#%D0%9C%D0%BE%D0%B9_%D0%B2%D1%8C%D1%8E%D1%81%D0%B5%D1%82_%E2%80%94_%D0%BC%D0%BE%D0%B8_%D0%BF%D1%80%D0%B0%D0%B2%D0%B8%D0%BB%D0%B0_%D0%BD%D0%B0%D1%81%D0%BB%D0%B5%D0%B4%D0%BE%D0%B2%D0%B0%D0%BD%D0%B8%D0%B5_%D0%BE%D1%82_%D0%BA%D0%BB%D0%B0%D1%81%D1%81%D0%B0_ViewSet\" >\u041c\u043e\u0439 \u0432\u044c\u044e\u0441\u0435\u0442 \u2014 \u043c\u043e\u0438 \u043f\u0440\u0430\u0432\u0438\u043b\u0430: \u043d\u0430\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0435 \u043e\u0442 \u043a\u043b\u0430\u0441\u0441\u0430 ViewSet<\/a><\/li><\/ul><\/nav><\/div>\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%D0%9D%D0%B5%D1%81%D1%82%D0%B0%D0%BD%D0%B4%D0%B0%D1%80%D1%82%D0%BD%D1%8B%D0%B5_%D0%B4%D0%B5%D0%B9%D1%81%D1%82%D0%B2%D0%B8%D1%8F_%D0%B2%D0%BE_%D0%B2%D1%8C%D1%8E%D1%81%D0%B5%D1%82%D0%B0%D1%85\"><\/span>\u041d\u0435\u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0432\u043e \u0432\u044c\u044e\u0441\u0435\u0442\u0430\u0445<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>\u0415\u0449\u0451 \u0440\u0430\u0437 \u043f\u0435\u0440\u0435\u0431\u0435\u0440\u0451\u043c \u0441\u043f\u0438\u0441\u043e\u043a \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0445 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439 (\u0430\u043d\u0433\u043b.&nbsp;<em>actions<\/em>) \u0432\u043e \u0432\u044c\u044e\u0441\u0435\u0442\u0430\u0445:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><em>create<\/em>: \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u0430;<\/li><li><em>retrieve<\/em>: \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u0430;<\/li><li><em>list<\/em>: \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u0441\u043f\u0438\u0441\u043a\u0430 \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u043e\u0432;<\/li><li><em>update<\/em>: \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u0430 (\u0432\u0441\u0435 \u043f\u043e\u043b\u044f);<\/li><li><em>partial_update<\/em>: \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u0430 (\u0442\u043e\u043b\u044c\u043a\u043e \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u044b\u0435 \u043f\u043e\u043b\u044f);<\/li><li><em>destroy<\/em>: \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u0435 \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u0430.<\/li><\/ul>\n\n\n\n<p>\u0414\u043b\u044f \u043f\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u043e\u0439 \u0437\u0430\u0434\u0430\u0447\u0438 \u043d\u0438 \u043e\u0434\u0438\u043d \u0438\u0437 \u043d\u0438\u0445 \u043d\u0435 \u043f\u043e\u0434\u043e\u0439\u0434\u0451\u0442.\u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043d\u0435\u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435; \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0432\u043e \u0432\u044c\u044e\u0441\u0435\u0442\u0435 \u043f\u0438\u0448\u0443\u0442 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0435 \u043c\u0435\u0442\u043e\u0434\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043e\u0431\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u044e\u0442 \u0432 \u0434\u0435\u043a\u043e\u0440\u0430\u0442\u043e\u0440&nbsp;<code>@action<\/code>&nbsp;(\u00ab\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435\u00bb). \u042d\u0442\u043e\u0442 \u0434\u0435\u043a\u043e\u0440\u0430\u0442\u043e\u0440 \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u0442 \u043c\u0435\u0442\u043e\u0434 \u0438 \u0441\u043e\u0437\u0434\u0430\u0451\u0442 \u044d\u043d\u0434\u043f\u043e\u0438\u043d\u0442\u044b \u0434\u043b\u044f \u044d\u0442\u0438\u0445 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439.<\/p>\n\n\n\n<p>\u0418\u043c\u044f \u0442\u0430\u043a\u043e\u0433\u043e \u043c\u0435\u0442\u043e\u0434\u0430-\u00ab\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f\u00bb \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u044b\u043c.\u0414\u0435\u043a\u043e\u0440\u0430\u0442\u043e\u0440&nbsp;<code>@action<\/code>&nbsp;\u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e GET-\u0437\u0430\u043f\u0440\u043e\u0441. \u041d\u043e \u0435\u0441\u043b\u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u0442\u044c \u0432 \u0434\u0435\u043a\u043e\u0440\u0430\u0442\u043e\u0440 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440&nbsp;<code>methods<\/code>, \u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0440\u0430\u0437\u0440\u0435\u0448\u0438\u0442\u044c \u0438 \u0434\u0440\u0443\u0433\u0438\u0435 \u043c\u0435\u0442\u043e\u0434\u044b \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>@action(methods=['get', 'delete', ...] <\/code><\/pre>\n\n\n\n<p>\u0412 \u0434\u0435\u043a\u043e\u0440\u0430\u0442\u043e\u0440\u0435 \u043c\u043e\u0436\u043d\u043e \u044f\u0432\u043d\u044b\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u0443\u043a\u0430\u0437\u0430\u0442\u044c, \u0434\u043e\u043b\u0436\u0435\u043d \u043b\u0438 \u043c\u0435\u0442\u043e\u0434 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 \u043e\u0434\u043d\u0438\u043c \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u043c \u0438\u043b\u0438 \u0441 \u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u0435\u0439 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440&nbsp;<code>detail<\/code>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u043e\u0436\u0435\u0442 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f&nbsp;<code>True<\/code>&nbsp;(\u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0430 \u0440\u0430\u0431\u043e\u0442\u0430 \u0441 \u043e\u0434\u043d\u0438\u043c \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u043c) \u0438\u043b\u0438&nbsp;<code>False<\/code>&nbsp;(\u0440\u0430\u0431\u043e\u0442\u0430\u0435\u043c \u0441 \u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u0435\u0439).<\/p>\n\n\n\n<p>URL \u044d\u043d\u0434\u043f\u043e\u0438\u043d\u0442\u0430 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0438\u0437 \u0434\u0432\u0443\u0445 \u0447\u0430\u0441\u0442\u0435\u0439:&nbsp;<code>&lt;URL-\u043f\u0440\u0435\u0444\u0438\u043a\u0441 \u0440\u0435\u0441\u0443\u0440\u0441\u0430&gt;\/&lt;\u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u043c\u0435\u0442\u043e\u0434\u0430&gt;\/<\/code>.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code><em># \u041a \u0442\u0430\u043a\u043e\u043c\u0443 \u043c\u0435\u0442\u043e\u0434\u0443 \u043c\u043e\u0436\u043d\u043e \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u044c\u0441\u044f \u0447\u0435\u0440\u0435\u0437 \u044d\u043d\u0434\u043f\u043e\u0438\u043d\u0442 cats\/cats_for_sale\/<\/em>\n@action()\ndef cats_for_sale()\n    ... <\/code><\/pre>\n\n\n\n<p>\u0415\u0441\u043b\u0438 URL \u044d\u043d\u0434\u043f\u043e\u0438\u043d\u0442\u0430 \u043d\u0435 \u0434\u043e\u043b\u0436\u0435\u043d \u0441\u043e\u0432\u043f\u0430\u0434\u0430\u0442\u044c \u0441 \u0438\u043c\u0435\u043d\u0435\u043c \u043c\u0435\u0442\u043e\u0434\u0430, URL \u043c\u043e\u0436\u043d\u043e \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c: \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043d\u0443\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0434\u0430\u0442\u044c \u0432 \u0434\u0435\u043a\u043e\u0440\u0430\u0442\u043e\u0440 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442&nbsp;<code>url_path<\/code>&nbsp;\u0441 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u043c.<\/p>\n\n\n\n<p>\u0420\u0435\u0448\u0438\u043c \u0437\u0430\u0434\u0430\u0447\u0443 \u0441 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435\u043c \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0445 \u043f\u044f\u0442\u0438 \u0431\u0435\u043b\u044b\u0445 \u043a\u043e\u0442\u0438\u043a\u043e\u0432. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043e\u043f\u0438\u0448\u0435\u043c \u043c\u0435\u0442\u043e\u0434&nbsp;<code>recent_white_cats<\/code>&nbsp;\u0434\u043b\u044f \u0432\u044c\u044e\u0441\u0435\u0442\u0430&nbsp;<code>CatViewSet<\/code>.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>from rest_framework.decorators import action\nfrom rest_framework.response import Response\n\n...\n\nclass CatViewSet(viewsets.ModelViewSet):\n    queryset = Cat.objects.all()\n    serializer_class = CatSerializer\n\n    <em># \u041f\u0438\u0448\u0435\u043c \u043c\u0435\u0442\u043e\u0434, \u0430 \u0432 \u0434\u0435\u043a\u043e\u0440\u0430\u0442\u043e\u0440\u0435 \u0440\u0430\u0437\u0440\u0435\u0448\u0438\u043c \u0440\u0430\u0431\u043e\u0442\u0443 \u0441\u043e \u0441\u043f\u0438\u0441\u043a\u043e\u043c \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432<\/em>\n    <em># \u0438 \u043f\u0435\u0440\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u043c URL \u043d\u0430 \u0431\u043e\u043b\u0435\u0435 \u043f\u0440\u0435\u0437\u0435\u043d\u0442\u0430\u0431\u0435\u043b\u044c\u043d\u044b\u0439<\/em>\n    @action(detail=False, url_path='recent-white-cats')\n    def recent_white_cats(self, request):\n        <em># \u041d\u0443\u0436\u043d\u044b \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 \u043f\u044f\u0442\u044c \u043a\u043e\u0442\u0438\u043a\u043e\u0432 \u0431\u0435\u043b\u043e\u0433\u043e \u0446\u0432\u0435\u0442\u0430<\/em>\n        cats = Cat.objects.filter(color='White')[:5]\n        <em># \u041f\u0435\u0440\u0435\u0434\u0430\u0434\u0438\u043c queryset cats \u0441\u0435\u0440\u0438\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u0443 <\/em>\n        <em># \u0438 \u0440\u0430\u0437\u0440\u0435\u0448\u0438\u043c \u0440\u0430\u0431\u043e\u0442\u0443 \u0441\u043e \u0441\u043f\u0438\u0441\u043a\u043e\u043c \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432<\/em>\n        serializer = self.get_serializer(cats, many=True)\n        return Response(serializer.data) <\/code><\/pre>\n\n\n\n<p>\u0413\u043e\u0442\u043e\u0432\u043e, \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c.<\/p>\n\n\n\n<p>\u041f\u0440\u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0435 GET-\u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u043d\u0430 \u044d\u043d\u0434\u043f\u043e\u0438\u043d\u0442&nbsp;<code>cats\/recent-white-cats\/<\/code>&nbsp;\u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u043f\u043e\u043b\u0443\u0447\u0435\u043d \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0442\u0430\u043a\u043e\u0439 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 (\u043a\u043e\u043d\u0435\u0447\u043d\u043e, \u0435\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0432 \u0431\u0430\u0437\u0435 \u0435\u0441\u0442\u044c \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0431\u0435\u043b\u044b\u0445 \u043a\u043e\u0442\u0438\u043a\u043e\u0432):<\/p>\n\n\n\n<figure class=\"wp-block-gallery columns-1 is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex\"><ul class=\"blocks-gallery-grid\"><li class=\"blocks-gallery-item\"><figure><a href=\"https:\/\/mob25.com\/wp-content\/uploads\/2021\/09\/views_d.png\"><span itemprop=\"image\" itemscope itemtype=\"https:\/\/schema.org\/ImageObject\"><img itemprop=\"url image\" loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"675\" src=\"https:\/\/mob25.com\/wp-content\/uploads\/2021\/09\/views_d-1024x675.png\" alt=\"\" data-id=\"18750\" data-full-url=\"https:\/\/mob25.com\/wp-content\/uploads\/2021\/09\/views_d.png\" data-link=\"https:\/\/mob25.com\/?attachment_id=18750\" class=\"wp-image-18750\" srcset=\"https:\/\/mob25.com\/blog\/wp-content\/uploads\/2021\/09\/views_d-1024x675.png 1024w, https:\/\/mob25.com\/blog\/wp-content\/uploads\/2021\/09\/views_d-300x198.png 300w, https:\/\/mob25.com\/blog\/wp-content\/uploads\/2021\/09\/views_d-768x506.png 768w, https:\/\/mob25.com\/blog\/wp-content\/uploads\/2021\/09\/views_d-1536x1013.png 1536w, https:\/\/mob25.com\/blog\/wp-content\/uploads\/2021\/09\/views_d.png 2000w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><meta itemprop=\"width\" content=\"1024\"><meta itemprop=\"height\" content=\"675\"><\/span><\/a><\/figure><\/li><\/ul><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%D0%A0%D0%B0%D0%B7%D0%BB%D0%B8%D1%87%D0%BD%D1%8B%D0%B5_%D1%81%D0%B5%D1%80%D0%B8%D0%B0%D0%BB%D0%B8%D0%B7%D0%B0%D1%82%D0%BE%D1%80%D1%8B_%D0%B4%D0%BB%D1%8F_%D0%BE%D0%B4%D0%BD%D0%BE%D0%B3%D0%BE_%D0%B2%D1%8C%D1%8E%D1%81%D0%B5%D1%82%D0%B0\"><\/span>\u0420\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0435 \u0441\u0435\u0440\u0438\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u044b \u0434\u043b\u044f \u043e\u0434\u043d\u043e\u0433\u043e \u0432\u044c\u044e\u0441\u0435\u0442\u0430<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>\u0412 Kittygram \u0434\u043b\u044f \u0441\u0435\u0440\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0438 \u0434\u0435\u0441\u0435\u0440\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043a\u0430\u0436\u0434\u043e\u0439 \u043c\u043e\u0434\u0435\u043b\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0441\u044f \u043b\u0438\u0448\u044c \u043e\u0434\u0438\u043d \u0441\u0435\u0440\u0438\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440. \u041d\u043e \u0435\u0441\u043b\u0438 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043e\u043b\u044f \u0441\u0435\u0440\u0438\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u0430 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f \u0447\u0442\u0435\u043d\u0438\u044f, \u0442\u043e \u043f\u043e \u0444\u0430\u043a\u0442\u0443 \u0434\u043b\u044f \u0447\u0442\u0435\u043d\u0438\u044f \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u043e\u0434\u0438\u043d \u043d\u0430\u0431\u043e\u0440 \u043f\u043e\u043b\u0435\u0439, \u0430 \u0434\u043b\u044f \u0437\u0430\u043f\u0438\u0441\u0438 \u2014 \u0434\u0440\u0443\u0433\u043e\u0439. \u042d\u0442\u043e \u0440\u0430\u0432\u043d\u043e\u0441\u0438\u043b\u044c\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044e \u0440\u0430\u0437\u043d\u044b\u0445 \u0441\u0435\u0440\u0438\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u043e\u0432.<\/p>\n\n\n\n<p>\u0414\u0430, \u0442\u0430\u043a \u0442\u043e\u0436\u0435 \u043c\u043e\u0436\u043d\u043e: \u0434\u043b\u044f \u043c\u043e\u0434\u0435\u043b\u0438 \u043c\u043e\u0436\u043d\u043e \u043e\u043f\u0438\u0441\u0430\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0435\u0440\u0438\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u043e\u0432 \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0438\u0445, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0442\u0438\u043f\u0430 \u0437\u0430\u043f\u0440\u043e\u0441\u0430.\u0414\u043e\u043f\u0443\u0441\u0442\u0438\u043c, \u043a\u043e\u0433\u0434\u0430<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>\u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043d\u043e\u0432\u044b\u0439 \u043a\u043e\u0442\u0438\u043a,<\/li><li>\u0437\u0430\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0434\u0435\u0442\u0430\u043b\u044c\u043d\u0430\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043e \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u043c \u043a\u043e\u0442\u0438\u043a\u0435,<\/li><li>\u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043e \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u043c \u043a\u043e\u0442\u0438\u043a\u0435,<\/li><\/ul>\n\n\n\n<p>\u0431\u0443\u0434\u0435\u043c \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c \u0432\u0441\u0435 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0435 \u043f\u043e\u043b\u044f \u043c\u043e\u0434\u0435\u043b\u0438, \u0430 \u0432\u043e\u0442 \u0435\u0441\u043b\u0438 \u0437\u0430\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0441\u043f\u0438\u0441\u043e\u043a \u043a\u043e\u0442\u0438\u043a\u043e\u0432, \u0442\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b \u0442\u043e\u043b\u044c\u043a\u043e id, \u0438\u043c\u044f \u0438 \u0446\u0432\u0435\u0442.<\/p>\n\n\n\n<p>\u041e\u043f\u0438\u0448\u0435\u043c \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0435\u0449\u0451 \u043e\u0434\u0438\u043d \u0441\u0435\u0440\u0438\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0430\u0437\u043e\u0432\u0451\u043c <code>CatListSerializer<\/code>:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>class CatListSerializer(serializers.ModelSerializer):\n    color = serializers.ChoiceField(choices=CHOICES)\n    \n    class Meta:\n        model = Cat\n        fields = ('id', 'name', 'color') <\/code><\/pre>\n\n\n\n<p>\u0414\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u0432\u043e \u0432\u044c\u044e\u0441\u0435\u0442 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0439 \u043c\u0435\u0442\u043e\u0434&nbsp;<code>get_serializer_class<\/code>: \u0432 \u043d\u0451\u043c \u043c\u043e\u0436\u043d\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c, \u043a\u0430\u043a\u043e\u0439 \u0438\u0437 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0445 \u0441\u0435\u0440\u0438\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u043e\u0432 \u0434\u043e\u043b\u0436\u0435\u043d \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>class CatViewSet(viewsets.ModelViewSet):\n    queryset = Cat.objects.all()\n    serializer_class = CatSerializer\n\n    ...\n    \n    def get_serializer_class(self):\n        <em># \u0415\u0441\u043b\u0438 \u0437\u0430\u043f\u0440\u043e\u0448\u0435\u043d\u043d\u043e\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 (action) \u2014 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u0441\u043f\u0438\u0441\u043a\u0430 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432 ('list')<\/em>\n        if self.action == 'list':\n            <em># ...\u0442\u043e \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u043c CatListSerializer<\/em>\n            return CatListSerializer\n        <em># \u0410 \u0435\u0441\u043b\u0438 \u0437\u0430\u043f\u0440\u043e\u0448\u0435\u043d\u043d\u043e\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u2014 \u043d\u0435 'list', \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u043c CatSerializer<\/em>\n        return CatSerializer <\/code><\/pre>\n\n\n\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u0438\u043c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b, \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0432 GET-\u0437\u0430\u043f\u0440\u043e\u0441 \u043d\u0430 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u0441\u043f\u0438\u0441\u043a\u0430 \u0432\u0441\u0435\u0445 \u043a\u043e\u0442\u0438\u043a\u043e\u0432.<\/p>\n\n\n\n<figure class=\"wp-block-gallery columns-1 is-cropped wp-block-gallery-2 is-layout-flex wp-block-gallery-is-layout-flex\"><ul class=\"blocks-gallery-grid\"><li class=\"blocks-gallery-item\"><figure><a href=\"https:\/\/mob25.com\/wp-content\/uploads\/2021\/09\/views_d1.png\"><span itemprop=\"image\" itemscope itemtype=\"https:\/\/schema.org\/ImageObject\"><img itemprop=\"url image\" loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"675\" src=\"https:\/\/mob25.com\/wp-content\/uploads\/2021\/09\/views_d1-1024x675.png\" alt=\"\" data-id=\"18751\" data-full-url=\"https:\/\/mob25.com\/wp-content\/uploads\/2021\/09\/views_d1.png\" data-link=\"https:\/\/mob25.com\/?attachment_id=18751\" class=\"wp-image-18751\" srcset=\"https:\/\/mob25.com\/blog\/wp-content\/uploads\/2021\/09\/views_d1-1024x675.png 1024w, https:\/\/mob25.com\/blog\/wp-content\/uploads\/2021\/09\/views_d1-300x198.png 300w, https:\/\/mob25.com\/blog\/wp-content\/uploads\/2021\/09\/views_d1-768x506.png 768w, https:\/\/mob25.com\/blog\/wp-content\/uploads\/2021\/09\/views_d1-1536x1013.png 1536w, https:\/\/mob25.com\/blog\/wp-content\/uploads\/2021\/09\/views_d1.png 2000w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><meta itemprop=\"width\" content=\"1024\"><meta itemprop=\"height\" content=\"675\"><\/span><\/a><\/figure><\/li><\/ul><\/figure>\n\n\n\n<p>\u041f\u043e \u043e\u0442\u0432\u0435\u0442\u0443 \u0432\u0438\u0434\u043d\u043e, \u0447\u0442\u043e \u043e\u0442\u0440\u0430\u0431\u043e\u0442\u0430\u043b \u043d\u043e\u0432\u044b\u0439 \u0441\u0435\u0440\u0438\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440: \u0432\u0441\u0451 \u043f\u043e \u043f\u043b\u0430\u043d\u0443. \u0410 \u043f\u0440\u0438 \u0437\u0430\u043f\u0440\u043e\u0441\u0435 \u043a \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u043c\u0443 \u043a\u043e\u0442\u0438\u043a\u0443 \u0432\u0441\u0451 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043a\u0430\u043a \u0438 \u0440\u0430\u043d\u044c\u0448\u0435:<\/p>\n\n\n\n<figure class=\"wp-block-gallery columns-1 is-cropped wp-block-gallery-3 is-layout-flex wp-block-gallery-is-layout-flex\"><ul class=\"blocks-gallery-grid\"><li class=\"blocks-gallery-item\"><figure><a href=\"https:\/\/mob25.com\/wp-content\/uploads\/2021\/09\/views_d2.png\"><span itemprop=\"image\" itemscope itemtype=\"https:\/\/schema.org\/ImageObject\"><img itemprop=\"url image\" loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"675\" src=\"https:\/\/mob25.com\/wp-content\/uploads\/2021\/09\/views_d2-1024x675.png\" alt=\"\" data-id=\"18752\" data-full-url=\"https:\/\/mob25.com\/wp-content\/uploads\/2021\/09\/views_d2.png\" data-link=\"https:\/\/mob25.com\/?attachment_id=18752\" class=\"wp-image-18752\" srcset=\"https:\/\/mob25.com\/blog\/wp-content\/uploads\/2021\/09\/views_d2-1024x675.png 1024w, https:\/\/mob25.com\/blog\/wp-content\/uploads\/2021\/09\/views_d2-300x198.png 300w, https:\/\/mob25.com\/blog\/wp-content\/uploads\/2021\/09\/views_d2-768x506.png 768w, https:\/\/mob25.com\/blog\/wp-content\/uploads\/2021\/09\/views_d2-1536x1013.png 1536w, https:\/\/mob25.com\/blog\/wp-content\/uploads\/2021\/09\/views_d2.png 2000w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><meta itemprop=\"width\" content=\"1024\"><meta itemprop=\"height\" content=\"675\"><\/span><\/a><\/figure><\/li><\/ul><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%D0%9D%D0%B5%D1%81%D1%82%D0%B0%D0%BD%D0%B4%D0%B0%D1%80%D1%82%D0%BD%D1%8B%D0%B9_%D0%BD%D0%B0%D0%B1%D0%BE%D1%80_%D1%81%D1%82%D0%B0%D0%BD%D0%B4%D0%B0%D1%80%D1%82%D0%BD%D1%8B%D1%85_%D0%B4%D0%B5%D0%B9%D1%81%D1%82%D0%B2%D0%B8%D0%B9\"><\/span>\u041d\u0435\u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0439 \u043d\u0430\u0431\u043e\u0440 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0445 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>\u0427\u0430\u0449\u0435 \u0432\u0441\u0435\u0433\u043e \u043c\u044b \u043d\u0430\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043b\u0438 \u0432\u044c\u044e\u0441\u0435\u0442\u044b \u043e\u0442&nbsp;<code>ModelViewSet<\/code>. \u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u044d\u0442\u043e \u0434\u0430\u0451\u0442 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c \u0448\u0435\u0441\u0442\u044c \u0442\u0438\u043f\u0438\u0447\u043d\u044b\u0445 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>\u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043d\u043e\u0432\u043e\u0433\u043e \u043e\u0431\u044a\u0435\u043a\u0442\u0430;<\/li><li>\u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043e\u0431 \u043e\u0434\u043d\u043e\u043c \u043e\u0431\u044a\u0435\u043a\u0442\u0435;<\/li><li>\u0443\u0434\u0430\u043b\u0435\u043d\u0438\u0435 \u043e\u0431\u044a\u0435\u043a\u0442\u0430;<\/li><li>\u043f\u043e\u043b\u043d\u043e\u0435 \u0437\u0430\u043c\u0435\u0449\u0435\u043d\u0438\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0433\u043e \u043e\u0431\u044a\u0435\u043a\u0442\u0430;<\/li><li>\u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u043e\u0434\u043d\u043e\u0433\u043e \u0438\u043b\u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u043f\u043e\u043b\u0435\u0439 \u043e\u0431\u044a\u0435\u043a\u0442\u0430;<\/li><li>\u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u0441\u043f\u0438\u0441\u043a\u0430 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432.<\/li><\/ul>\n\n\n\n<p>\u0415\u0441\u043b\u0438 \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u0438\u0437 \u0411\u0414, \u043c\u043e\u0436\u043d\u043e \u0443\u043d\u0430\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043e\u0442&nbsp;<code>ReadOnlyModelViewSet<\/code>. \u0412 \u044d\u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0439 \u043d\u0430\u0431\u043e\u0440 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439 \u0431\u0443\u0434\u0435\u0442 \u0442\u0430\u043a\u0438\u043c:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>\u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043e\u0431 \u043e\u0434\u043d\u043e\u043c \u043e\u0431\u044a\u0435\u043a\u0442\u0435;<\/li><li>\u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u0441\u043f\u0438\u0441\u043a\u0430 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432.<\/li><\/ul>\n\n\n\n<p>\u0410 \u0435\u0441\u043b\u0438 \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0438\u043d\u043e\u0439 \u043d\u0430\u0431\u043e\u0440 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439 \u2014 \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043d\u0443\u0436\u043d\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u043d\u043e\u0432\u044b\u0439 \u043e\u0431\u044a\u0435\u043a\u0442 \u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e\u0431 \u043e\u0434\u043d\u043e\u043c \u043e\u0431\u044a\u0435\u043a\u0442\u0435? \u042d\u0442\u0430 \u0437\u0430\u0434\u0430\u0447\u0430 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0440\u0435\u0448\u0435\u043d\u0430 \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u043c\u0438\u043a\u0441\u0438\u043d\u043e\u0432 (\u043e\u0442 \u0430\u043d\u0433\u043b. mix in, \u00ab\u0441\u043c\u0435\u0448\u0438\u0432\u0430\u0442\u044c\u00bb).<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%D0%9C%D0%B8%D0%BA%D1%81%D0%B8%D0%BD%D1%8B_%D0%B8_%D0%B2%D0%B0%D1%88_%D1%81%D0%BE%D0%B1%D1%81%D1%82%D0%B2%D0%B5%D0%BD%D0%BD%D1%8B%D0%B9_%D0%B1%D0%B0%D0%B7%D0%BE%D0%B2%D1%8B%D0%B9_%D0%BA%D0%BB%D0%B0%D1%81%D1%81_%D0%B4%D0%BB%D1%8F_%D0%B2%D1%8C%D1%8E%D1%81%D0%B5%D1%82%D0%BE%D0%B2\"><\/span>\u041c\u0438\u043a\u0441\u0438\u043d\u044b \u0438 \u0432\u0430\u0448 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u0431\u0430\u0437\u043e\u0432\u044b\u0439 \u043a\u043b\u0430\u0441\u0441 \u0434\u043b\u044f \u0432\u044c\u044e\u0441\u0435\u0442\u043e\u0432<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>\u041d\u0438\u043a\u0442\u043e \u043d\u0435 \u0437\u043d\u0430\u0435\u0442, \u0447\u0442\u043e \u043f\u0440\u0438\u0434\u0451\u0442 \u0432 \u0433\u043e\u043b\u043e\u0432\u0443 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430\u043c \u0438 \u043a\u0430\u043a\u0438\u0435 \u0432\u044c\u044e\u0441\u0435\u0442\u044b \u0438\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u044f\u0442\u0441\u044f, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0433\u043e\u0442\u043e\u0432\u044b\u0445 \u0432\u044c\u044e\u0441\u0435\u0442\u043e\u0432 \u043d\u0430 \u0432\u0441\u0435 \u0441\u043b\u0443\u0447\u0430\u0438 \u0436\u0438\u0437\u043d\u0438 \u043d\u0435\u0442 \u0438 \u0431\u044b\u0442\u044c \u043d\u0435 \u043c\u043e\u0436\u0435\u0442. \u041d\u043e \u0435\u0441\u0442\u044c \u043a\u043b\u0430\u0441\u0441\u044b-\u00ab\u0434\u0435\u0442\u0430\u043b\u0438\u00bb, \u0438\u0437 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u0441\u0442\u0440\u043e \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043b\u044e\u0431\u043e\u0439 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0439 \u0431\u0430\u0437\u043e\u0432\u044b\u0439 \u0432\u044c\u044e\u0441\u0435\u0442:&nbsp;<strong>\u043c\u0438\u043a\u0441\u0438\u043d\u044b<\/strong>.<\/p>\n\n\n\n<p>\u0427\u0442\u043e\u0431\u044b \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0431\u0430\u0437\u043e\u0432\u044b\u0439 \u0432\u044c\u044e\u0441\u0435\u0442 \u0441 \u043e\u0441\u043e\u0431\u044b\u043c \u043d\u0430\u0431\u043e\u0440\u043e\u043c \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439 \u2014 \u043d\u0443\u0436\u043d\u043e \u0443\u043d\u0430\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u044c \u0435\u0433\u043e \u043e\u0442 \u043e\u0434\u043d\u043e\u0433\u043e \u0438\u043b\u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u043c\u0438\u043a\u0441\u0438\u043d\u043e\u0432 \u0441 \u043d\u0443\u0436\u043d\u044b\u043c\u0438 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f\u043c\u0438 \u0438, \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e, \u043e\u0442 \u0431\u0430\u0437\u043e\u0432\u043e\u0433\u043e \u043a\u043b\u0430\u0441\u0441\u0430&nbsp;<code>GenericViewSet<\/code>:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>from rest_framework import mixins\n\n...\n\n<em># \u0421\u043e\u0431\u0438\u0440\u0430\u0435\u043c \u0432\u044c\u044e\u0441\u0435\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u0443\u043c\u0435\u0442\u044c \u0438\u0437\u043c\u0435\u043d\u044f\u0442\u044c \u0438\u043b\u0438 \u0443\u0434\u0430\u043b\u044f\u0442\u044c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u043e\u0431\u044a\u0435\u043a\u0442.<\/em>\n<em># \u0410 \u043d\u0438\u0447\u0435\u0433\u043e \u0431\u043e\u043b\u044c\u0448\u0435 \u043e\u043d \u0443\u043c\u0435\u0442\u044c \u043d\u0435 \u0431\u0443\u0434\u0435\u0442.<\/em>\nclass UpdateDeleteViewSet(mixins.UpdateModelMixin, mixins.DestroyModelMixin,\n                          viewsets.GenericViewSet):\n    pass <\/code><\/pre>\n\n\n\n<p>\u0412 DRF \u0435\u0441\u0442\u044c \u043f\u044f\u0442\u044c \u043f\u0440\u0435\u0434\u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u0445 \u043a\u043b\u0430\u0441\u0441\u043e\u0432 \u043c\u0438\u043a\u0441\u0438\u043d\u043e\u0432, \u043e\u043d\u0438 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0442 \u043f\u044f\u0442\u0438 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044f\u043c \u0441 \u0434\u0430\u043d\u043d\u044b\u043c\u0438:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>CreateModelMixin \u2014 \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043e\u0431\u044a\u0435\u043a\u0442 (\u0434\u043b\u044f \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 POST);<\/li><li>ListModelMixin \u2014 \u0432\u0435\u0440\u043d\u0443\u0442\u044c \u0441\u043f\u0438\u0441\u043e\u043a \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432 (\u0434\u043b\u044f \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 GET);<\/li><li>RetrieveModelMixin \u2014 \u0432\u0435\u0440\u043d\u0443\u0442\u044c \u043e\u0431\u044a\u0435\u043a\u0442 (\u0434\u043b\u044f \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 GET);<\/li><li>UpdateModelMixin \u2014 \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u043e\u0431\u044a\u0435\u043a\u0442 (\u0434\u043b\u044f \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 PUT \u0438 PATCH);<\/li><li>DestroyModelMixin \u2014 \u0443\u0434\u0430\u043b\u0438\u0442\u044c \u043e\u0431\u044a\u0435\u043a\u0442 (\u0434\u043b\u044f \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 DELETE).<\/li><\/ul>\n\n\n\n<p>\u041e\u043f\u0438\u0448\u0435\u043c \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u0431\u0430\u0437\u043e\u0432\u044b\u0439 \u043a\u043b\u0430\u0441\u0441 \u0432\u044c\u044e\u0441\u0435\u0442\u0430: \u043e\u043d \u0431\u0443\u0434\u0435\u0442 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440 \u043e\u0431\u044a\u0435\u043a\u0442\u0430 \u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440 \u043e\u0431\u044a\u0435\u043a\u0442\u0430; \u043d\u0430\u0437\u043e\u0432\u0451\u043c \u0435\u0433\u043e <code>CreateRetrieveViewSet<\/code>.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code><em># cats\/views.py<\/em>\n...\n\nfrom rest_framework import mixins\n\n...\n\nclass CreateRetrieveViewSet(mixins.CreateModelMixin, mixins.RetrieveModelMixin,\n                            viewsets.GenericViewSet):\n    <em># \u0412 \u0442\u0435\u043b\u0435 \u043a\u043b\u0430\u0441\u0441\u0430 \u043d\u0438\u043a\u0430\u043a\u043e\u0439 \u043a\u043e\u0434 \u043d\u0435 \u043d\u0443\u0436\u0435\u043d! \u041f\u0443\u0441\u0442\u044f\u0447\u043e\u043a, \u0430 \u043f\u0440\u0438\u044f\u0442\u043d\u043e.<\/em>\n    pass <\/code><\/pre>\n\n\n\n<p>\u0411\u0430\u0437\u043e\u0432\u044b\u0439 \u0432\u044c\u044e\u0441\u0435\u0442 \u0433\u043e\u0442\u043e\u0432, \u043e\u043d \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0441\u044f \u043d\u0435 \u0445\u0443\u0436\u0435, \u0447\u0435\u043c&nbsp;<code>ModelViewSet<\/code>. \u0422\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e \u0443\u043d\u0430\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043e\u0442 \u044d\u0442\u043e\u0433\u043e \u0431\u0430\u0437\u043e\u0432\u043e\u0433\u043e \u043a\u043b\u0430\u0441\u0441\u0430.\u041e\u043f\u0438\u0448\u0435\u043c \u0432\u044c\u044e\u0441\u0435\u0442&nbsp;<code>LightCatViewSet<\/code>, \u0443\u043d\u0430\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043e\u0442&nbsp;<code>CreateRetrieveViewSet<\/code>.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>class LightCatViewSet(CreateRetrieveViewSet):\n    queryset = Cat.objects.all()\n    serializer_class = CatSerializer <\/code><\/pre>\n\n\n\n<p>\u0417\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u0443\u0435\u043c \u044d\u0442\u043e\u0442 \u0432\u044c\u044e\u0441\u0435\u0442 \u0432 \u0440\u043e\u0443\u0442\u0435\u0440\u0435:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>from cats.views import CatViewSet, LightCatViewSet, OwnerViewSet\n\n...\n\nrouter.register(r'mycats', LightCatViewSet) <\/code><\/pre>\n\n\n\n<p>\u041d\u0443\u0436\u043d\u043e \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u0442\u044c\u0441\u044f, \u0447\u0442\u043e \u0437\u0430 \u0441\u0442\u0440\u0430\u043d\u043d\u044b\u0439 \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441 \u0432 \u043f\u0435\u0440\u0432\u043e\u043c \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0435 \u043c\u0435\u0442\u043e\u0434\u0430&nbsp;<code>register()<\/code>, \u0432\u0435\u0434\u044c \u0442\u0430\u043c \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u0440\u0435\u0444\u0438\u043a\u0441 \u0434\u043b\u044f URL.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%D0%9D%D0%B5%D0%BE%D0%B6%D0%B8%D0%B4%D0%B0%D0%BD%D0%BD%D0%BE%D0%B5_%D0%BE%D1%82%D0%BA%D1%80%D0%BE%D0%B2%D0%B5%D0%BD%D0%B8%D0%B5\"><\/span>\u041d\u0435\u043e\u0436\u0438\u0434\u0430\u043d\u043d\u043e\u0435 \u043e\u0442\u043a\u0440\u043e\u0432\u0435\u043d\u0438\u0435<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>\u041f\u0440\u0438 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u044d\u043d\u0434\u043f\u043e\u0438\u043d\u0442\u043e\u0432 \u0434\u043b\u044f \u0432\u044c\u044e\u0441\u0435\u0442\u0430 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 URL-\u043f\u0440\u0435\u0444\u0438\u043a\u0441\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043d\u0435 \u043e\u0431\u044b\u0447\u043d\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0430, \u0430&nbsp;<strong>\u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u043e\u0435 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0435<\/strong>. \u0417\u0430 \u0441\u0447\u0451\u0442 \u044d\u0442\u043e\u0433\u043e URL-\u043f\u0440\u0435\u0444\u0438\u043a\u0441 \u043c\u043e\u0436\u0435\u0442 \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u0432 URL.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>...\n<em># \u041f\u0440\u0438 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u044d\u043d\u0434\u043f\u043e\u0438\u043d\u0442\u043e\u0432 \u0441 \u0442\u0430\u043a\u0438\u043c URL-\u043f\u0440\u0435\u0444\u0438\u043a\u0441\u043e\u043c<\/em>\nrouter.register(r'profile\/(?P&lt;username&gt;[\\w.@+-]+)\/', AnyViewSet)\n<em># ...\u0432\u044c\u044e\u0441\u0435\u0442 AnyViewSet \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u043d\u0430 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0443 \u0432\u0441\u0435 \u0437\u0430\u043f\u0440\u043e\u0441\u044b \u0441 \u0430\u0434\u0440\u0435\u0441\u043e\u0432<\/em>\n<em># \/profile\/toh@\/<\/em>\n<em># \/profile\/nik.nik\/<\/em>\n<em># \/profile\/leo\/<\/em>\n<em># ...\u0438 \u043f\u043e\u0434\u043e\u0431\u043d\u044b\u0445, \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u043d\u044b\u0445 \u043c\u0430\u0441\u043a\u043e\u0439 \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u043e\u0433\u043e \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u044f.<\/em> <\/code><\/pre>\n\n\n\n<p>\u0412 \u0443\u0440\u043e\u043a\u0435 \u043e \u0440\u043e\u0443\u0442\u0435\u0440\u0430\u0445 \u0432 \u043f\u0435\u0440\u0432\u044b\u0439 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 \u043c\u0435\u0442\u043e\u0434\u0430&nbsp;<code>register()<\/code>&nbsp;\u043c\u044b \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u043b\u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u0441\u0442\u0440\u043e\u043a\u0443, \u043d\u043e \u00ab\u043f\u0440\u043e\u0441\u0442\u043e \u0441\u0442\u0440\u043e\u043a\u0430\u00bb \u2014 \u044d\u0442\u043e \u0447\u0430\u0441\u0442\u043d\u044b\u0439 \u0441\u043b\u0443\u0447\u0430\u0439 \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u043e\u0433\u043e \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u044f, \u0438 Django \u044d\u0442\u0443 \u00ab\u043f\u0440\u043e\u0441\u0442\u043e \u0441\u0442\u0440\u043e\u043a\u0443\u00bb \u0442\u043e\u0436\u0435 \u0438\u043d\u0442\u0435\u0440\u043f\u0440\u0435\u0442\u0438\u0440\u043e\u0432\u0430\u043b \u043a\u0430\u043a regExp.<\/p>\n\n\n\n<p>\u041f\u0440\u0435\u0444\u0438\u043a\u0441&nbsp;<code>r<\/code>&nbsp;\u043f\u0435\u0440\u0435\u0434 \u0441\u0442\u0440\u043e\u043a\u043e\u0439 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442&nbsp;<strong>raw-\u0441\u0442\u0440\u043e\u043a\u0443<\/strong>&nbsp;(\u0438\u043b\u0438&nbsp;<strong>r-\u0441\u0442\u0440\u043e\u043a\u0443<\/strong>, \u0442\u0430\u043a \u043a\u043e\u0440\u043e\u0447\u0435). \u0422\u0430\u043a\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443 \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u0431\u0443\u0434\u0435\u0442 \u0447\u0438\u0442\u0430\u0442\u044c \u043a\u0430\u043a \u043f\u0440\u043e\u0441\u0442\u0443\u044e \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432, \u0438\u0433\u043d\u043e\u0440\u0438\u0440\u0443\u044f escape-\u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 (\u0430\u043d\u0433\u043b.&nbsp;<em>escape sequence)<\/em>&nbsp;\u2014 \u043a\u043e\u043c\u0431\u0438\u043d\u0430\u0446\u0438\u0438 \u043e\u0431\u0440\u0430\u0442\u043d\u043e\u0433\u043e \u0441\u043b\u0435\u0448\u0430 \u0438 \u0441\u0438\u043c\u0432\u043e\u043b\u0430.<\/p>\n\n\n\n<p>\u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, escape-\u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c&nbsp;<code>\\n<\/code>&nbsp;\u0438\u043d\u0442\u0435\u0440\u043f\u0440\u0435\u0442\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u043a\u0430\u043a \u043f\u0435\u0440\u0435\u043d\u043e\u0441 \u0441\u0442\u0440\u043e\u043a\u0438, \u043d\u043e \u0432 raw-\u0441\u0442\u0440\u043e\u043a\u0435 \u044d\u0442\u043e \u0431\u0443\u0434\u0443\u0442 \u043f\u0440\u043e\u0441\u0442\u043e \u0434\u0432\u0430 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0445 \u0441\u0438\u043c\u0432\u043e\u043b\u0430 \u0431\u0435\u0437 \u0432\u0441\u044f\u043a\u043e\u0433\u043e \u0441\u043a\u0440\u044b\u0442\u043e\u0433\u043e \u0441\u043c\u044b\u0441\u043b\u0430; \u0432 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u0432\u0441\u044f r-\u0441\u0442\u0440\u043e\u043a\u0430 \u0431\u0443\u0434\u0435\u0442 \u0441\u0447\u0438\u0442\u0430\u043d\u0430 \u043a\u0430\u043a \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u043e\u0435 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0435.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%D0%92%D0%B5%D1%80%D0%BD%D1%91%D0%BC%D1%81%D1%8F_%D0%BA_%D0%BD%D0%B0%D1%88%D0%B8%D0%BC_%D0%BC%D0%B8%D0%BA%D1%81%D0%B8%D0%BD%D0%B0%D0%BC\"><\/span>\u0412\u0435\u0440\u043d\u0451\u043c\u0441\u044f \u043a \u043d\u0430\u0448\u0438\u043c \u043c\u0438\u043a\u0441\u0438\u043d\u0430\u043c<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>\u0411\u0430\u0437\u043e\u0432\u044b\u0439 \u0432\u044c\u044e\u0441\u0435\u0442 \u0441\u043e\u0431\u0440\u0430\u043d, \u043d\u0430\u0441\u043b\u0435\u0434\u043d\u0438\u043a \u043e\u043f\u0438\u0441\u0430\u043d \u0438 \u043f\u0440\u0438\u043c\u0435\u043d\u0451\u043d \u0432 \u043a\u043e\u0434\u0435.<\/p>\n\n\n\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u044c\u0442\u0435 \u0440\u0430\u0431\u043e\u0442\u0443 \u043d\u043e\u0432\u043e\u0433\u043e \u0432\u044c\u044e\u0441\u0435\u0442\u0430: \u0441\u0434\u0435\u043b\u0430\u0439\u0442\u0435 \u0437\u0430\u043f\u0440\u043e\u0441\u044b \u043d\u0430 \u043d\u043e\u0432\u044b\u0439 \u044d\u043d\u0434\u043f\u043e\u0438\u043d\u0442&nbsp;<code>mycats\/<\/code>.<\/p>\n\n\n\n<p>GET-\u0437\u0430\u043f\u0440\u043e\u0441 \u043a \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u043c\u0443 \u043a\u043e\u0442\u0438\u043a\u0443 \u043e\u0442\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u0442 \u043d\u0430 \u00ab\u043e\u0442\u043b\u0438\u0447\u043d\u043e\u00bb:<\/p>\n\n\n\n<figure class=\"wp-block-gallery columns-1 is-cropped wp-block-gallery-4 is-layout-flex wp-block-gallery-is-layout-flex\"><ul class=\"blocks-gallery-grid\"><li class=\"blocks-gallery-item\"><figure><a href=\"https:\/\/mob25.com\/wp-content\/uploads\/2021\/09\/views_d3.png\"><span itemprop=\"image\" itemscope itemtype=\"https:\/\/schema.org\/ImageObject\"><img itemprop=\"url image\" loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"675\" src=\"https:\/\/mob25.com\/wp-content\/uploads\/2021\/09\/views_d3-1024x675.png\" alt=\"\" data-id=\"18753\" data-full-url=\"https:\/\/mob25.com\/wp-content\/uploads\/2021\/09\/views_d3.png\" data-link=\"https:\/\/mob25.com\/?attachment_id=18753\" class=\"wp-image-18753\" srcset=\"https:\/\/mob25.com\/blog\/wp-content\/uploads\/2021\/09\/views_d3-1024x675.png 1024w, https:\/\/mob25.com\/blog\/wp-content\/uploads\/2021\/09\/views_d3-300x198.png 300w, https:\/\/mob25.com\/blog\/wp-content\/uploads\/2021\/09\/views_d3-768x506.png 768w, https:\/\/mob25.com\/blog\/wp-content\/uploads\/2021\/09\/views_d3-1536x1013.png 1536w, https:\/\/mob25.com\/blog\/wp-content\/uploads\/2021\/09\/views_d3.png 2000w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><meta itemprop=\"width\" content=\"1024\"><meta itemprop=\"height\" content=\"675\"><\/span><\/a><\/figure><\/li><\/ul><\/figure>\n\n\n\n<p>\u0410 \u0432\u043e\u0442 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0441\u043f\u0438\u0441\u043e\u043a \u043a\u043e\u0442\u0438\u043a\u043e\u0432 \u0447\u0435\u0440\u0435\u0437 \u044d\u0442\u043e\u0442 \u044d\u043d\u0434\u043f\u043e\u0438\u043d\u0442 \u043d\u0435\u043b\u044c\u0437\u044f:<\/p>\n\n\n\n<figure class=\"wp-block-gallery columns-1 is-cropped wp-block-gallery-5 is-layout-flex wp-block-gallery-is-layout-flex\"><ul class=\"blocks-gallery-grid\"><li class=\"blocks-gallery-item\"><figure><a href=\"https:\/\/mob25.com\/wp-content\/uploads\/2021\/09\/views_d4.png\"><span itemprop=\"image\" itemscope itemtype=\"https:\/\/schema.org\/ImageObject\"><img itemprop=\"url image\" loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"675\" src=\"https:\/\/mob25.com\/wp-content\/uploads\/2021\/09\/views_d4-1024x675.png\" alt=\"\" data-id=\"18754\" data-full-url=\"https:\/\/mob25.com\/wp-content\/uploads\/2021\/09\/views_d4.png\" data-link=\"https:\/\/mob25.com\/?attachment_id=18754\" class=\"wp-image-18754\" srcset=\"https:\/\/mob25.com\/blog\/wp-content\/uploads\/2021\/09\/views_d4-1024x675.png 1024w, https:\/\/mob25.com\/blog\/wp-content\/uploads\/2021\/09\/views_d4-300x198.png 300w, https:\/\/mob25.com\/blog\/wp-content\/uploads\/2021\/09\/views_d4-768x506.png 768w, https:\/\/mob25.com\/blog\/wp-content\/uploads\/2021\/09\/views_d4-1536x1013.png 1536w, https:\/\/mob25.com\/blog\/wp-content\/uploads\/2021\/09\/views_d4.png 2000w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><meta itemprop=\"width\" content=\"1024\"><meta itemprop=\"height\" content=\"675\"><\/span><\/a><\/figure><\/li><\/ul><\/figure>\n\n\n\n<p>\u0420\u0430\u0431\u043e\u0442\u0430\u0435\u0442! \u0422\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e \u043c\u043e\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0431\u0430\u0437\u043e\u0432\u044b\u0435 \u0432\u044c\u044e\u0441\u0435\u0442\u044b \u0441 \u043b\u044e\u0431\u044b\u043c \u043d\u0430\u0431\u043e\u0440\u043e\u043c \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%D0%9C%D0%BE%D0%B9_%D0%B2%D1%8C%D1%8E%D1%81%D0%B5%D1%82_%E2%80%94_%D0%BC%D0%BE%D0%B8_%D0%BF%D1%80%D0%B0%D0%B2%D0%B8%D0%BB%D0%B0_%D0%BD%D0%B0%D1%81%D0%BB%D0%B5%D0%B4%D0%BE%D0%B2%D0%B0%D0%BD%D0%B8%D0%B5_%D0%BE%D1%82_%D0%BA%D0%BB%D0%B0%D1%81%D1%81%D0%B0_ViewSet\"><\/span>\u041c\u043e\u0439 \u0432\u044c\u044e\u0441\u0435\u0442 \u2014 \u043c\u043e\u0438 \u043f\u0440\u0430\u0432\u0438\u043b\u0430: \u043d\u0430\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0435 \u043e\u0442 \u043a\u043b\u0430\u0441\u0441\u0430 ViewSet<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>\u0412 \u0442\u0435\u0445 \u0441\u043b\u0443\u0447\u0430\u044f\u0445, \u043a\u043e\u0433\u0434\u0430 \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0435 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044f \u0438 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0435\u0439 \u0447\u0442\u043e-\u0442\u043e \u00ab\u043f\u043e\u0434\u043a\u0440\u0443\u0442\u0438\u0442\u044c\u00bb \u0432\u043e \u0432\u044c\u044e\u0441\u0435\u0442\u0430\u0445, \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043e\u0442 \u0431\u0430\u0437\u043e\u0432\u043e\u0433\u043e \u043a\u043b\u0430\u0441\u0441\u0430&nbsp;<code>ViewSet<\/code>. \u0418\u043c\u0435\u043d\u043d\u043e \u043e\u0442 \u043d\u0435\u0433\u043e \u043d\u0430\u0441\u043b\u0435\u0434\u0443\u0435\u0442\u0441\u044f, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043a\u043b\u0430\u0441\u0441&nbsp;<code>ModelViewSet<\/code>.\u041a\u043b\u0430\u0441\u0441&nbsp;<code>ViewSet<\/code>, \u0432 \u0441\u0432\u043e\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c, \u043d\u0430\u0441\u043b\u0435\u0434\u0443\u0435\u0442\u0441\u044f \u043e\u0442&nbsp;<code>APIView<\/code>.<\/p>\n\n\n\n<p>\u041f\u0440\u0438 \u0440\u0430\u0431\u043e\u0442\u0435 \u0441 \u043d\u0438\u0437\u043a\u043e\u0443\u0440\u043e\u0432\u043d\u0435\u0432\u044b\u043c\u0438 \u0432\u044c\u044e\u0441\u0435\u0442\u0430\u043c\u0438 \u0432\u0441\u0435 \u043d\u0443\u0436\u043d\u044b\u0435 \u043c\u0435\u0442\u043e\u0434\u044b \u0432\u0430\u043c \u043f\u0440\u0438\u0434\u0451\u0442\u0441\u044f \u043e\u043f\u0438\u0441\u0430\u0442\u044c \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e.<\/p>\n\n\n\n<p>\u0412 \u043a\u043b\u0430\u0441\u0441\u0435&nbsp;<code>ViewSet<\/code>&nbsp;\u0435\u0441\u0442\u044c \u0448\u0435\u0441\u0442\u044c \u043f\u0440\u0435\u0434\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u044b\u0445 \u043c\u0435\u0442\u043e\u0434\u043e\u0432:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>list(self, request)<\/strong>&nbsp;\u2014 \u0434\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0441\u043f\u0438\u0441\u043a\u0430 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432 \u0438\u0437&nbsp;<em>queryset;<\/em><\/li><li><strong>create(self, request)<\/strong>&nbsp;\u2014 \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043e\u0431\u044a\u0435\u043a\u0442\u0430 \u0432 \u043c\u043e\u0434\u0435\u043b\u0438;<\/li><li><strong>retrieve(self, request, pk=None)<\/strong>&nbsp;\u2014 \u0434\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u043e\u0433\u043e \u043e\u0431\u044a\u0435\u043a\u0442\u0430 \u0438\u0437&nbsp;<em>queryset<\/em>;<\/li><li><strong>update(self, request, pk=None)<\/strong>&nbsp;\u2014 \u0434\u043b\u044f \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0438\u0441\u0438 (\u043f\u043e\u043b\u043d\u043e\u0433\u043e \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f) \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u043e\u0433\u043e \u043e\u0431\u044a\u0435\u043a\u0442\u0430 \u0438\u0437&nbsp;<em>queryset<\/em>;<\/li><li><strong>partial_update(self, request, pk=None)<\/strong>&nbsp;\u2014 \u0434\u043b\u044f \u0447\u0430\u0441\u0442\u0438\u0447\u043d\u043e\u0433\u043e \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u043e\u0431\u044a\u0435\u043a\u0442\u0430 \u0438\u0437&nbsp;<em>queryset<\/em>;<\/li><li><strong>destroy(self, request, pk=None)<\/strong>&nbsp;\u2014 \u0434\u043b\u044f \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u044f \u043e\u0434\u043d\u043e\u0433\u043e \u0438\u0437 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432&nbsp;<em>queryset.<\/em><\/li><\/ul>\n\n\n\n<p>\u0427\u0442\u043e\u0431\u044b \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u044c \u043b\u044e\u0431\u043e\u0439 \u0438\u0437 \u044d\u0442\u0438\u0445 \u043c\u0435\u0442\u043e\u0434\u043e\u0432, \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u043e\u043f\u0438\u0441\u0430\u0442\u044c \u0435\u0433\u043e; \u0432 \u043a\u043b\u0430\u0441\u0441\u0435&nbsp;<code>ViewSet<\/code>&nbsp;\u044d\u0442\u0438 \u043c\u0435\u0442\u043e\u0434\u044b \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u044b, \u043d\u043e \u043d\u0435 \u043e\u043f\u0438\u0441\u0430\u043d\u044b.<\/p>\n\n\n\n<p>\u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438 \u043d\u0443\u0436\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0432\u044c\u044e\u0441\u0435\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u0441\u0435\u0440\u0438\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043e\u0431\u044a\u0435\u043a\u0442 \u043e\u0434\u043d\u043e\u0433\u043e \u043a\u043e\u0442\u0438\u043a\u0430 (\u043c\u0435\u0442\u043e\u0434\u043e\u043c&nbsp;<code>retrieve()<\/code>) \u0438 \u043f\u043e\u043b\u043d\u044b\u0439 \u0441\u043f\u0438\u0441\u043e\u043a \u0432\u0441\u0435\u0445 \u043a\u043e\u0442\u0438\u043a\u043e\u0432 (\u043c\u0435\u0442\u043e\u0434\u043e\u043c&nbsp;<code>list()<\/code>). \u042d\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0442\u0430\u043a:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>from rest_framework import viewsets\nfrom rest_framework.response import Response\n\nfrom django.shortcuts import get_object_or_404\n\nfrom .models import Cat\nfrom .serializers import CatSerializer\n\n\nclass CatViewSet(viewsets.ViewSet):\n    def list(self, request):\n        queryset = Cat.objects.all()\n        serializer = CatSerializer(queryset, many=True)\n        return Response(serializer.data)\n\n    def retrieve(self, request, pk=None):\n        queryset = Cat.objects.all()\n        cat = get_object_or_404(queryset, pk=pk)\n        serializer = CatSerializer(cat)\n        return Response(serializer.data) <\/code><\/pre>\n\n\n\n<p>\u041f\u043e\u0445\u043e\u0436\u0435 \u043d\u0430 \u0442\u043e, \u043a\u0430\u043a \u043c\u044b \u0440\u0430\u0431\u043e\u0442\u0430\u043b\u0438 \u0432 APIView, \u0441 \u0442\u043e\u0439 \u0440\u0430\u0437\u043d\u0438\u0446\u0435\u0439, \u0447\u0442\u043e \u0437\u0434\u0435\u0441\u044c \u043f\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u044e\u0442 \u043f\u043e\u043b\u044f&nbsp;<em>queryset<\/em>&nbsp;\u0438&nbsp;<em>serializer<\/em>.<\/p>\n\n\n\n<p>\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044e \u043f\u043e \u043f\u0440\u0435\u0434\u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u043c \u043c\u0435\u0442\u043e\u0434\u0430\u043c \u043a\u043b\u0430\u0441\u0441\u0430&nbsp;<code>ViewSet<\/code>&nbsp;\u043c\u043e\u0436\u043d\u043e&nbsp;<a href=\"https:\/\/www.django-rest-framework.org\/api-guide\/viewsets\/#viewset-actions\" target=\"_blank\" rel=\"noreferrer noopener\">\u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043d\u0430 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u043c \u0441\u0430\u0439\u0442\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u0430<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0411\u044b\u0442\u0443\u0435\u0442 \u043c\u043d\u0435\u043d\u0438\u0435, \u0447\u0442\u043e \u0443 \u043a\u043e\u0442\u0438\u043a\u043e\u0432 \u0441 \u0434\u043e\u043c\u0438\u043d\u0438\u0440\u0443\u044e\u0449\u0438\u043c \u0431\u0435\u043b\u044b\u043c \u043e\u043a\u0440\u0430\u0441\u043e\u043c \u0433\u043e\u043b\u0443\u0431\u043e\u0439 \u0446\u0432\u0435\u0442 \u0433\u043b\u0430\u0437 \u0431\u043e\u043b\u0435\u0435 \u0433\u043b\u0443\u0431\u043e\u043a\u0438\u0439, \u0447\u0435\u043c \u0443 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0445, \u0438 \u044d\u0442\u043e \u0441\u0447\u0438\u0442\u0430\u0435\u0442\u0441\u044f \u0434\u043e\u0441\u0442\u043e\u0438\u043d\u0441\u0442\u0432\u043e\u043c. \u0412\u043e\u0442 \u0438\u043c\u0435\u043d\u043d\u043e \u043e\u043d\u0438 \u0438 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442 \u0438\u043d\u0442\u0435\u0440\u0435\u0441 \u0434\u043b\u044f \u043d\u0430\u0448\u0438\u0445 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439. \u0412 \u0441\u0432\u044f\u0437\u0438 \u0441 \u043f\u043e\u0432\u044b\u0448\u0435\u043d\u043d\u044b\u043c \u0441\u043f\u0440\u043e\u0441\u043e\u043c \u043d\u0430 \u0431\u0435\u043b\u044b\u0445 \u043a\u043e\u0442\u0438\u043a\u043e\u0432 \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0440\u0430\u0441\u0448\u0438\u0440\u0438\u0442\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 API: \u043f\u043e \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u043c\u0443 \u0437\u0430\u043f\u0440\u043e\u0441\u0443 \u043d\u0443\u0436\u043d\u043e \u043e\u0442\u0434\u0430\u0432\u0430\u0442\u044c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e \u043f\u044f\u0442\u0438 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0445 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u0445 \u043a\u043e\u0442\u0438\u043a\u0430\u0445 \u0431\u0435\u043b\u043e\u0433\u043e \u0446\u0432\u0435\u0442\u0430. [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[187],"tags":[],"class_list":["post-18749","post","type-post","status-publish","format-standard","","category-uroki"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u0412\u044c\u044e\u0441\u0435\u0442\u044b \u0432 Django. \u0420\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u043d\u044b\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438<\/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:\/\/mob25.com\/blog\/vjusety-v-django-rasshirennye-vozmozhnosti\/\" \/>\n<meta property=\"og:locale\" content=\"ru_RU\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u0412\u044c\u044e\u0441\u0435\u0442\u044b \u0432 Django. \u0420\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u043d\u044b\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438\" \/>\n<meta property=\"og:description\" content=\"\u0411\u044b\u0442\u0443\u0435\u0442 \u043c\u043d\u0435\u043d\u0438\u0435, \u0447\u0442\u043e \u0443 \u043a\u043e\u0442\u0438\u043a\u043e\u0432 \u0441 \u0434\u043e\u043c\u0438\u043d\u0438\u0440\u0443\u044e\u0449\u0438\u043c \u0431\u0435\u043b\u044b\u043c \u043e\u043a\u0440\u0430\u0441\u043e\u043c \u0433\u043e\u043b\u0443\u0431\u043e\u0439 \u0446\u0432\u0435\u0442 \u0433\u043b\u0430\u0437 \u0431\u043e\u043b\u0435\u0435 \u0433\u043b\u0443\u0431\u043e\u043a\u0438\u0439, \u0447\u0435\u043c \u0443 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0445, \u0438 \u044d\u0442\u043e \u0441\u0447\u0438\u0442\u0430\u0435\u0442\u0441\u044f \u0434\u043e\u0441\u0442\u043e\u0438\u043d\u0441\u0442\u0432\u043e\u043c. \u0412\u043e\u0442 \u0438\u043c\u0435\u043d\u043d\u043e \u043e\u043d\u0438 \u0438 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442 \u0438\u043d\u0442\u0435\u0440\u0435\u0441 \u0434\u043b\u044f \u043d\u0430\u0448\u0438\u0445 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439. \u0412 \u0441\u0432\u044f\u0437\u0438 \u0441 \u043f\u043e\u0432\u044b\u0448\u0435\u043d\u043d\u044b\u043c \u0441\u043f\u0440\u043e\u0441\u043e\u043c \u043d\u0430 \u0431\u0435\u043b\u044b\u0445 \u043a\u043e\u0442\u0438\u043a\u043e\u0432 \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0440\u0430\u0441\u0448\u0438\u0440\u0438\u0442\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 API: \u043f\u043e \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u043c\u0443 \u0437\u0430\u043f\u0440\u043e\u0441\u0443 \u043d\u0443\u0436\u043d\u043e \u043e\u0442\u0434\u0430\u0432\u0430\u0442\u044c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e \u043f\u044f\u0442\u0438 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0445 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u0445 \u043a\u043e\u0442\u0438\u043a\u0430\u0445 \u0431\u0435\u043b\u043e\u0433\u043e \u0446\u0432\u0435\u0442\u0430. [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/mob25.com\/blog\/vjusety-v-django-rasshirennye-vozmozhnosti\/\" \/>\n<meta property=\"og:site_name\" content=\"\u0418\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0435 \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0438\" \/>\n<meta property=\"article:published_time\" content=\"2022-06-17T21:35:12+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-05-09T18:47:49+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/mob25.com\/wp-content\/uploads\/2021\/09\/views_d-1024x675.png\" \/>\n<meta name=\"author\" content=\"violet\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/mob25.com\/blog\/vjusety-v-django-rasshirennye-vozmozhnosti\/\",\"url\":\"https:\/\/mob25.com\/blog\/vjusety-v-django-rasshirennye-vozmozhnosti\/\",\"name\":\"\u0412\u044c\u044e\u0441\u0435\u0442\u044b \u0432 Django. \u0420\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u043d\u044b\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438\",\"isPartOf\":{\"@id\":\"https:\/\/mob25.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/mob25.com\/blog\/vjusety-v-django-rasshirennye-vozmozhnosti\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/mob25.com\/blog\/vjusety-v-django-rasshirennye-vozmozhnosti\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/mob25.com\/wp-content\/uploads\/2021\/09\/views_d-1024x675.png\",\"datePublished\":\"2022-06-17T21:35:12+00:00\",\"dateModified\":\"2023-05-09T18:47:49+00:00\",\"author\":{\"@id\":\"https:\/\/mob25.com\/blog\/#\/schema\/person\/493391ea0717532d228de3cda6d7cf45\"},\"breadcrumb\":{\"@id\":\"https:\/\/mob25.com\/blog\/vjusety-v-django-rasshirennye-vozmozhnosti\/#breadcrumb\"},\"inLanguage\":\"ru-RU\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/mob25.com\/blog\/vjusety-v-django-rasshirennye-vozmozhnosti\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ru-RU\",\"@id\":\"https:\/\/mob25.com\/blog\/vjusety-v-django-rasshirennye-vozmozhnosti\/#primaryimage\",\"url\":\"https:\/\/mob25.com\/wp-content\/uploads\/2021\/09\/views_d-1024x675.png\",\"contentUrl\":\"https:\/\/mob25.com\/wp-content\/uploads\/2021\/09\/views_d-1024x675.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/mob25.com\/blog\/vjusety-v-django-rasshirennye-vozmozhnosti\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u0413\u043b\u0430\u0432\u043d\u0430\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430\",\"item\":\"https:\/\/mob25.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u0412\u044c\u044e\u0441\u0435\u0442\u044b \u0432 Django. \u0420\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u043d\u044b\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/mob25.com\/blog\/#website\",\"url\":\"https:\/\/mob25.com\/blog\/\",\"name\":\"\u0418\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0435 \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0438\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/mob25.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ru-RU\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/mob25.com\/blog\/#\/schema\/person\/493391ea0717532d228de3cda6d7cf45\",\"name\":\"violet\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ru-RU\",\"@id\":\"https:\/\/mob25.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/d4571412769d757e8ecacdf5967ea55865839b6d95042f5fc535566d9d3533d0?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/d4571412769d757e8ecacdf5967ea55865839b6d95042f5fc535566d9d3533d0?s=96&d=mm&r=g\",\"caption\":\"violet\"},\"url\":\"https:\/\/mob25.com\/blog\/author\/nkl\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u0412\u044c\u044e\u0441\u0435\u0442\u044b \u0432 Django. \u0420\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u043d\u044b\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438","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:\/\/mob25.com\/blog\/vjusety-v-django-rasshirennye-vozmozhnosti\/","og_locale":"ru_RU","og_type":"article","og_title":"\u0412\u044c\u044e\u0441\u0435\u0442\u044b \u0432 Django. \u0420\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u043d\u044b\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438","og_description":"\u0411\u044b\u0442\u0443\u0435\u0442 \u043c\u043d\u0435\u043d\u0438\u0435, \u0447\u0442\u043e \u0443 \u043a\u043e\u0442\u0438\u043a\u043e\u0432 \u0441 \u0434\u043e\u043c\u0438\u043d\u0438\u0440\u0443\u044e\u0449\u0438\u043c \u0431\u0435\u043b\u044b\u043c \u043e\u043a\u0440\u0430\u0441\u043e\u043c \u0433\u043e\u043b\u0443\u0431\u043e\u0439 \u0446\u0432\u0435\u0442 \u0433\u043b\u0430\u0437 \u0431\u043e\u043b\u0435\u0435 \u0433\u043b\u0443\u0431\u043e\u043a\u0438\u0439, \u0447\u0435\u043c \u0443 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0445, \u0438 \u044d\u0442\u043e \u0441\u0447\u0438\u0442\u0430\u0435\u0442\u0441\u044f \u0434\u043e\u0441\u0442\u043e\u0438\u043d\u0441\u0442\u0432\u043e\u043c. \u0412\u043e\u0442 \u0438\u043c\u0435\u043d\u043d\u043e \u043e\u043d\u0438 \u0438 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442 \u0438\u043d\u0442\u0435\u0440\u0435\u0441 \u0434\u043b\u044f \u043d\u0430\u0448\u0438\u0445 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439. \u0412 \u0441\u0432\u044f\u0437\u0438 \u0441 \u043f\u043e\u0432\u044b\u0448\u0435\u043d\u043d\u044b\u043c \u0441\u043f\u0440\u043e\u0441\u043e\u043c \u043d\u0430 \u0431\u0435\u043b\u044b\u0445 \u043a\u043e\u0442\u0438\u043a\u043e\u0432 \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0440\u0430\u0441\u0448\u0438\u0440\u0438\u0442\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 API: \u043f\u043e \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u043c\u0443 \u0437\u0430\u043f\u0440\u043e\u0441\u0443 \u043d\u0443\u0436\u043d\u043e \u043e\u0442\u0434\u0430\u0432\u0430\u0442\u044c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e \u043f\u044f\u0442\u0438 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0445 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u0445 \u043a\u043e\u0442\u0438\u043a\u0430\u0445 \u0431\u0435\u043b\u043e\u0433\u043e \u0446\u0432\u0435\u0442\u0430. [&hellip;]","og_url":"https:\/\/mob25.com\/blog\/vjusety-v-django-rasshirennye-vozmozhnosti\/","og_site_name":"\u0418\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0435 \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0438","article_published_time":"2022-06-17T21:35:12+00:00","article_modified_time":"2023-05-09T18:47:49+00:00","og_image":[{"url":"https:\/\/mob25.com\/wp-content\/uploads\/2021\/09\/views_d-1024x675.png","type":"","width":"","height":""}],"author":"violet","twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/mob25.com\/blog\/vjusety-v-django-rasshirennye-vozmozhnosti\/","url":"https:\/\/mob25.com\/blog\/vjusety-v-django-rasshirennye-vozmozhnosti\/","name":"\u0412\u044c\u044e\u0441\u0435\u0442\u044b \u0432 Django. \u0420\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u043d\u044b\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438","isPartOf":{"@id":"https:\/\/mob25.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/mob25.com\/blog\/vjusety-v-django-rasshirennye-vozmozhnosti\/#primaryimage"},"image":{"@id":"https:\/\/mob25.com\/blog\/vjusety-v-django-rasshirennye-vozmozhnosti\/#primaryimage"},"thumbnailUrl":"https:\/\/mob25.com\/wp-content\/uploads\/2021\/09\/views_d-1024x675.png","datePublished":"2022-06-17T21:35:12+00:00","dateModified":"2023-05-09T18:47:49+00:00","author":{"@id":"https:\/\/mob25.com\/blog\/#\/schema\/person\/493391ea0717532d228de3cda6d7cf45"},"breadcrumb":{"@id":"https:\/\/mob25.com\/blog\/vjusety-v-django-rasshirennye-vozmozhnosti\/#breadcrumb"},"inLanguage":"ru-RU","potentialAction":[{"@type":"ReadAction","target":["https:\/\/mob25.com\/blog\/vjusety-v-django-rasshirennye-vozmozhnosti\/"]}]},{"@type":"ImageObject","inLanguage":"ru-RU","@id":"https:\/\/mob25.com\/blog\/vjusety-v-django-rasshirennye-vozmozhnosti\/#primaryimage","url":"https:\/\/mob25.com\/wp-content\/uploads\/2021\/09\/views_d-1024x675.png","contentUrl":"https:\/\/mob25.com\/wp-content\/uploads\/2021\/09\/views_d-1024x675.png"},{"@type":"BreadcrumbList","@id":"https:\/\/mob25.com\/blog\/vjusety-v-django-rasshirennye-vozmozhnosti\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u0413\u043b\u0430\u0432\u043d\u0430\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430","item":"https:\/\/mob25.com\/blog\/"},{"@type":"ListItem","position":2,"name":"\u0412\u044c\u044e\u0441\u0435\u0442\u044b \u0432 Django. \u0420\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u043d\u044b\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438"}]},{"@type":"WebSite","@id":"https:\/\/mob25.com\/blog\/#website","url":"https:\/\/mob25.com\/blog\/","name":"\u0418\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0435 \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0438","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/mob25.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ru-RU"},{"@type":"Person","@id":"https:\/\/mob25.com\/blog\/#\/schema\/person\/493391ea0717532d228de3cda6d7cf45","name":"violet","image":{"@type":"ImageObject","inLanguage":"ru-RU","@id":"https:\/\/mob25.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/d4571412769d757e8ecacdf5967ea55865839b6d95042f5fc535566d9d3533d0?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/d4571412769d757e8ecacdf5967ea55865839b6d95042f5fc535566d9d3533d0?s=96&d=mm&r=g","caption":"violet"},"url":"https:\/\/mob25.com\/blog\/author\/nkl\/"}]}},"_links":{"self":[{"href":"https:\/\/mob25.com\/blog\/wp-json\/wp\/v2\/posts\/18749","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mob25.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mob25.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mob25.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mob25.com\/blog\/wp-json\/wp\/v2\/comments?post=18749"}],"version-history":[{"count":0,"href":"https:\/\/mob25.com\/blog\/wp-json\/wp\/v2\/posts\/18749\/revisions"}],"wp:attachment":[{"href":"https:\/\/mob25.com\/blog\/wp-json\/wp\/v2\/media?parent=18749"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mob25.com\/blog\/wp-json\/wp\/v2\/categories?post=18749"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mob25.com\/blog\/wp-json\/wp\/v2\/tags?post=18749"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}