{"id":297727,"date":"2020-01-27T09:00:12","date_gmt":"2020-01-27T09:00:12","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=297727"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=297727","title":{"rendered":"\u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u044f \u0414\u043b\u044f \u0421\u0430\u043c\u044b\u0445 \u041c\u0430\u043b\u0435\u043d\u044c\u043a\u0438\u0445. \u0417\u0430\u043c\u0435\u0442\u043a\u0438. RESTful API"},"content":{"rendered":"\n<div class=\"post__text post__text-html\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/post\/485618\/\">\u042d\u0442\u0430 \u0441\u0442\u0430\u0442\u044c\u044f \u2014 \u043e\u0434\u043d\u0430 \u0438\u0437 \u043e\u0431\u0435\u0449\u0430\u043d\u043d\u044b\u0445 \u043a\u043e\u0440\u043e\u0442\u043a\u0438\u0445 \u0437\u0430\u043c\u0435\u0442\u043e\u043a \u043f\u043e \u0445\u043e\u0434\u0443 \u0446\u0438\u043a\u043b\u0430 \u0441\u0442\u0430\u0442\u0435\u0439 <a href=\"https:\/\/habr.com\/ru\/search\/?q=%5B%D0%B0%D0%B2%D1%82%D0%BE%D0%BC%D0%B0%D1%82%D0%B8%D0%B7%D0%B0%D1%86%D0%B8%D1%8F%20%D0%B4%D0%BB%D1%8F%20%D1%81%D0%B0%D0%BC%D1%8B%D1%85%20%D0%BC%D0%B0%D0%BB%D0%B5%D0%BD%D1%8C%D0%BA%D0%B8%D1%85%5D&amp;target_type=posts\">\u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u044f \u0414\u043b\u044f \u0421\u0430\u043c\u044b\u0445 \u041c\u0430\u043b\u0435\u043d\u044c\u043a\u0438\u0445<\/a>.<br \/>  \u041f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u043c \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u043c \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0441 IPAM-\u0441\u0438\u0441\u0442\u0435\u043c\u043e\u0439 \u0431\u0443\u0434\u0435\u0442 RESTful API, \u044f \u0440\u0435\u0448\u0438\u043b \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u0442\u044c \u043e \u043d\u0451\u043c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e. <\/p>\n<hr>\n<p>  \u0412\u043e\u0437\u0434\u0430\u044e \u0445\u0432\u0430\u043b\u044b \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u043e\u0440\u0430\u043c \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0433\u043e \u043c\u0438\u0440\u0430 \u2014 \u0443 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u044b. \u0414\u0430 \u0438\u0445 \u043c\u043d\u043e\u0433\u043e \u2014 \u044d\u0442\u043e \u043c\u0438\u043d\u0443\u0441, \u043d\u043e \u043e\u043d\u0438 \u0435\u0441\u0442\u044c \u2014 \u044d\u0442\u043e \u043f\u043b\u044e\u0441.<\/p>\n<p>  \u042d\u0442\u0438 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u044b \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u043e\u0431\u0440\u0435\u043b\u0438 \u0438\u043c\u044f API \u2014 Application Programming Interface.<\/p>\n<p>  \u041e\u0434\u043d\u0438\u043c \u0438\u0437 \u0442\u0430\u043a\u0438\u0445 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043e\u0432 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f RESTful API, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 NetBox.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/639\/c1e\/e86\/639c1ee8692aed286b99deeb01796e89.svg\" width=\"800\"><\/p>\n<p>  \u0415\u0441\u043b\u0438 \u043e\u0447\u0435\u043d\u044c \u043f\u0440\u043e\u0441\u0442\u043e, \u0442\u043e API \u0434\u0430\u0451\u0442 \u043a\u043b\u0438\u0435\u043d\u0442\u0443 \u043d\u0430\u0431\u043e\u0440 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u0432, \u0447\u0435\u0440\u0435\u0437 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0442\u043e\u0442 \u043c\u043e\u0436\u0435\u0442 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u043c. \u0410 \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u043c \u043c\u043e\u0436\u0435\u0442 \u0432\u044b\u0441\u0442\u0443\u043f\u0430\u0442\u044c \u043f\u043e \u0441\u0443\u0442\u0438 \u0447\u0442\u043e \u0443\u0433\u043e\u0434\u043d\u043e: \u0432\u0435\u0431-\u0431\u0440\u0430\u0443\u0437\u0435\u0440, \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u0430\u044f \u043a\u043e\u043d\u0441\u043e\u043b\u044c, \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0430\u043d\u043d\u043e\u0435 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u0435\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435, \u0438\u043b\u0438 \u0432\u043e\u043e\u0431\u0449\u0435 \u043b\u044e\u0431\u043e\u0435 \u0434\u0440\u0443\u0433\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435, \u0443 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0435\u0441\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f \u043a API.<\/p>\n<p>  \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 NetBox, \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043d\u043e\u0432\u043e\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u0432 \u043d\u0435\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c\u0438 \u0441\u043f\u043e\u0441\u043e\u0431\u0430\u043c\u0438: \u0447\u0435\u0440\u0435\u0437 \u0432\u0435\u0431-\u0431\u0440\u0430\u0443\u0437\u0435\u0440, \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0432 curl&#8217;\u043e\u043c \u0437\u0430\u043f\u0440\u043e\u0441 \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u0438, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c Postman, \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u044c\u0441\u044f \u043a \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0435 requests \u0432 \u043f\u0438\u0442\u043e\u043d\u0435, \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f SDK pynetbox \u0438\u043b\u0438 \u043f\u0435\u0440\u0435\u0439\u0442\u0438 \u0432 Swagger.<\/p>\n<p>  \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u043e\u0434\u0438\u043d \u0440\u0430\u0437 \u043d\u0430\u043f\u0438\u0441\u0430\u0432 \u0435\u0434\u0438\u043d\u044b\u0439 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441, \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c \u043d\u0430\u0432\u0441\u0435\u0433\u0434\u0430 \u043e\u0441\u0432\u043e\u0431\u043e\u0436\u0434\u0430\u0435\u0442 \u0441\u0435\u0431\u044f \u043e\u0442 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u0441 \u043a\u0430\u0436\u0434\u044b\u043c \u043d\u043e\u0432\u044b\u043c \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u043c \u0434\u043e\u0433\u043e\u0432\u0430\u0440\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u043a\u0430\u043a \u0435\u0433\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0442\u044c (\u0445\u043e\u0442\u044f, \u044d\u0442\u043e \u0441\u0430\u043c\u0443\u044e \u043c\u0430\u043b\u043e\u0441\u0442\u044c \u043b\u0443\u043a\u0430\u0432\u0441\u0442\u0432\u043e).<\/p>\n<p>  <a name=\"habracut\"><\/a>  <\/p>\n<h1>\u0421\u043e\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u0435<\/h1>\n<p>  <\/p>\n<ul>\n<li>REST, RESTful, API<\/li>\n<li>\u0421\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439 HTTP<br \/> \n<ul>\n<li>\u0421\u0442\u0430\u0440\u0442\u043e\u0432\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0430<\/li>\n<li>\u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0438<\/li>\n<li>\u0422\u0435\u043b\u043e HTTP-\u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f<\/li>\n<\/ul>\n<p>   <\/li>\n<li>\u041c\u0435\u0442\u043e\u0434\u044b<br \/> \n<ul>\n<li>HTTP GET<\/li>\n<li>HTTP POST<\/li>\n<li>HTTP PUT<\/li>\n<li>HTTP PATCH<\/li>\n<li>HTTP DELETE<\/li>\n<\/ul>\n<p>   <\/li>\n<li>\u0421\u043f\u043e\u0441\u043e\u0431\u044b \u0440\u0430\u0431\u043e\u0442\u044b \u0441 RESTful API<br \/> \n<ul>\n<li>CURL<\/li>\n<li>Postman<\/li>\n<li>Python+Requests<\/li>\n<li>SDK Pynebtbox<\/li>\n<li>SWAGGER<\/li>\n<\/ul>\n<p>   <\/li>\n<li>\u041a\u0440\u0438\u0442\u0438\u043a\u0430 REST \u0438 \u0430\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u044b<\/li>\n<li>\u041f\u043e\u043b\u0435\u0437\u043d\u044b\u0435 \u0441\u0441\u044b\u043b\u043a\u0438<\/li>\n<\/ul>\n<h1>REST, RESTful, API<\/h1>\n<p>  \u041d\u0438\u0436\u0435 \u044f \u0434\u0430\u043c \u043e\u0447\u0435\u043d\u044c \u0443\u043f\u0440\u043e\u0449\u0451\u043d\u043d\u043e\u0435 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u0442\u0430\u043a\u043e\u0435 REST. <\/p>\n<p>  \u041d\u0430\u0447\u043d\u0451\u043c \u0441 \u0442\u043e\u0433\u043e, \u0447\u0442\u043e <b>RESTful API<\/b> \u2014 \u044d\u0442\u043e \u0438\u043c\u0435\u043d\u043d\u043e <b>\u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441<\/b> \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f, \u043e\u0441\u043d\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043d\u0430 REST, \u0432 \u0442\u043e \u0432\u0440\u0435\u043c\u044f \u043a\u0430\u043a \u0441\u0430\u043c <b>REST<\/b> (<b>REpresentational State Transfer<\/b>) \u2014 \u044d\u0442\u043e \u043d\u0430\u0431\u043e\u0440 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0439, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0445 \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f WEB-\u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432.<br \/>  \u041e \u043a\u0430\u043a\u0438\u0445 \u0438\u043c\u0435\u043d\u043d\u043e \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u044f\u0445 \u0438\u0434\u0451\u0442 \u0440\u0435\u0447\u044c, \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u0432 <a href=\"https:\/\/www.ics.uci.edu\/~fielding\/pubs\/dissertation\/rest_arch_style.htm\" rel=\"nofollow\">\u0433\u043b\u0430\u0432\u0435 5 \u0434\u0438\u0441\u0441\u0435\u0440\u0442\u0430\u0446\u0438\u0438 \u0420\u043e\u044f \u0424\u0438\u043b\u0434\u0438\u043d\u0433\u0430 Architectural Styles and the Design of Network-based Software Architectures<\/a>. \u041c\u043d\u0435 \u0436\u0435 \u043f\u043e\u0437\u0432\u043e\u043b\u044c\u0442\u0435 \u043f\u0440\u0438\u0432\u0435\u0441\u0442\u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u0442\u0440\u0438 \u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u0437\u043d\u0430\u0447\u0438\u043c\u044b\u0445 (\u0441 \u043c\u043e\u0435\u0439 \u0442\u043e\u0447\u043a\u0438 \u0437\u0440\u0435\u043d\u0438\u044f) \u0438\u0437 \u043d\u0438\u0445:<\/p>\n<ol>\n<li>\u0412 REST-\u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043c\u043e\u0434\u0435\u043b\u044c \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u041a\u043b\u0438\u0435\u043d\u0442-\u0421\u0435\u0440\u0432\u0435\u0440. <\/li>\n<li>\u041a\u0430\u0436\u0434\u044b\u0439 REST-\u0437\u0430\u043f\u0440\u043e\u0441 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0432\u0441\u044e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e, \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u0443\u044e \u0434\u043b\u044f \u0435\u0433\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f. \u0422\u043e \u0435\u0441\u0442\u044c \u0441\u0435\u0440\u0432\u0435\u0440 \u043d\u0435 \u0434\u043e\u043b\u0436\u0435\u043d \u043f\u043e\u043c\u043d\u0438\u0442\u044c \u043d\u0438\u0447\u0435\u0433\u043e \u043e \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0445 \u0437\u0430\u043f\u0440\u043e\u0441\u0430\u0445 \u043a\u043b\u0438\u0435\u043d\u0442\u0430, \u0447\u0442\u043e, \u043a\u0430\u043a \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e, \u0445\u0430\u0440\u0430\u043a\u0442\u0435\u0440\u0438\u0437\u0443\u0435\u0442\u0441\u044f \u0441\u043b\u043e\u0432\u043e\u043c Stateless \u2014 \u043d\u0435 \u0445\u0440\u0430\u043d\u0438\u043c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0438. <\/li>\n<li>\u0415\u0434\u0438\u043d\u044b\u0439 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441. \u0420\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043e\u0442\u0434\u0435\u043b\u0435\u043d\u0430 \u043e\u0442 \u0441\u0435\u0440\u0432\u0438\u0441\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043e\u043d\u043e \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442. \u0422\u043e \u0435\u0441\u0442\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0437\u043d\u0430\u0435\u0442, \u0447\u0442\u043e \u043e\u043d\u043e \u0434\u0435\u043b\u0430\u0435\u0442 \u0438 \u043a\u0430\u043a \u0441 \u043d\u0438\u043c \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c, \u043d\u043e \u043a\u0430\u043a \u0438\u043c\u0435\u043d\u043d\u043e \u043e\u043d\u043e \u044d\u0442\u043e \u0434\u0435\u043b\u0430\u0435\u0442 \u043d\u0435 \u0438\u043c\u0435\u0435\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f. \u041f\u0440\u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f, \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u043e\u0441\u0442\u0430\u0451\u0442\u0441\u044f \u043f\u0440\u0435\u0436\u043d\u0438\u043c, \u0438 \u043a\u043b\u0438\u0435\u043d\u0442\u0430\u043c \u043d\u0435 \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u0434\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0442\u044c\u0441\u044f.<\/li>\n<\/ol>\n<p>  WEB-\u0441\u0435\u0440\u0432\u0438\u0441\u044b, \u0443\u0434\u043e\u0432\u043b\u0435\u0442\u0432\u043e\u0440\u044f\u044e\u0449\u0438\u0435 \u0432\u0441\u0435\u043c \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0430\u043c REST, \u043d\u0430\u0437\u044b\u0432\u0430\u044e\u0442\u0441\u044f <b>RESTful WEB-services<\/b>.<br \/>  \u0410 API, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442 RESTful WEB-\u0441\u0435\u0440\u0432\u0438\u0441\u044b, \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f RESTful API.<\/p>\n<p>  REST \u2014 \u043d\u0435 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b, \u0430, \u0442\u0430\u043a \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u043c\u044b\u0439, \u0441\u0442\u0438\u043b\u044c \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u044b (\u043e\u0434\u0438\u043d \u0438\u0437). \u0420\u0430\u0437\u0432\u0438\u0432\u0430\u0435\u043c\u043e\u043c\u0443 \u0432\u043c\u0435\u0441\u0442\u0435 \u0441 HTTP \u0420\u043e\u0435\u043c \u0424\u0438\u043b\u0434\u0438\u043d\u0433\u043e\u043c, REST&#8217;\u0443 \u0431\u044b\u043b\u043e \u043f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c <b>HTTP 1.1<\/b>, \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0442\u0440\u0430\u043d\u0441\u043f\u043e\u0440\u0442\u0430.<br \/>  \u0410\u0434\u0440\u0435\u0441 \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f (\u0438\u043b\u0438 \u0438\u043d\u044b\u043c \u0441\u043b\u043e\u0432\u043e\u043c \u2014 \u043e\u0431\u044a\u0435\u043a\u0442, \u0438\u043b\u0438 \u0435\u0449\u0451 \u0438\u043d\u044b\u043c \u2014 \u044d\u043d\u0434\u043f\u043e\u0438\u043d\u0442) \u2014 \u044d\u0442\u043e \u043f\u0440\u0438\u0432\u044b\u0447\u043d\u044b\u0439 \u043d\u0430\u043c <a href=\"https:\/\/ru.wikipedia.org\/wiki\/URI\" rel=\"nofollow\"><b>URI<\/b><\/a>.<br \/>  \u0424\u043e\u0440\u043c\u0430\u0442 \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u0435\u043c\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 \u2014 <b>XML<\/b> \u0438\u043b\u0438 <b>JSON<\/b>.<\/p>\n<blockquote><p> \u0414\u043b\u044f \u044d\u0442\u043e\u0439 \u0441\u0435\u0440\u0438\u0438 \u0441\u0442\u0430\u0442\u0435\u0439 \u043d\u0430 linkmeup \u0440\u0430\u0437\u0432\u0451\u0440\u043d\u0443\u0442\u0430 read-only (\u0434\u043b\u044f \u0432\u0430\u0441, \u0434\u043e\u0440\u043e\u0433\u0438\u0435, \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u0438) \u0438\u043d\u0441\u0442\u0430\u043b\u043b\u044f\u0446\u0438\u044f NetBox: <a href=\"http:\/\/netbox.linkmeup.ru\" rel=\"nofollow\">netbox.linkmeup.ru<\/a>:45127.<br \/>   \u041d\u0430 \u0447\u0442\u0435\u043d\u0438\u0435 \u043f\u0440\u0430\u0432\u0430 \u043d\u0435 \u0442\u0440\u0435\u0431\u0443\u044e\u0442\u0441\u044f, \u043d\u043e \u0435\u0441\u043b\u0438 \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u0447\u0438\u0442\u0430\u0442\u044c \u0441 \u0442\u043e\u043a\u0435\u043d\u043e\u043c, \u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u044d\u0442\u0438\u043c: <i>API Token: 90a22967d0bc4bdcd8ca47ec490bbf0b0cb2d9c8<\/i>.  <\/p><\/blockquote>\n<p>  \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0430 \u0440\u0430\u0434\u0438 \u0441\u0434\u0435\u043b\u0430\u0435\u043c \u043e\u0434\u0438\u043d \u0437\u0430\u043f\u0440\u043e\u0441:  <\/p>\n<pre><code class=\"bash\">curl -X GET -H &quot;Authorization: TOKEN 90a22967d0bc4bdcd8ca47ec490bbf0b0cb2d9c8&quot; \\ -H &quot;Accept: application\/json; indent=4&quot; \\ http:\/\/netbox.linkmeup.ru:45127\/api\/dcim\/devices\/1\/<\/code><\/pre>\n<p>  \u0422\u043e \u0435\u0441\u0442\u044c \u0443\u0442\u0438\u043b\u0438\u0442\u043e\u0439 <b>curl<\/b> \u043c\u044b \u0434\u0435\u043b\u0430\u0435\u043c <b>GET<\/b> \u043e\u0431\u044a\u0435\u043a\u0442\u0430 \u043f\u043e \u0430\u0434\u0440\u0435\u0441\u0443 <b><a href=\"http:\/\/netbox.linkmeup.ru\" rel=\"nofollow\">netbox.linkmeup.ru<\/a>:45127\/api\/dcim\/devices\/1\/<\/b> \u0441 \u043e\u0442\u0432\u0435\u0442\u043e\u043c \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 <b>JSON<\/b> \u0438 \u043e\u0442\u0441\u0442\u0443\u043f\u043e\u043c \u0432 <b>4<\/b> \u043f\u0440\u043e\u0431\u0435\u043b\u0430.<br \/>  \u0418\u043b\u0438 \u0447\u0443\u0442\u044c \u0431\u043e\u043b\u0435\u0435 \u0430\u043a\u0430\u0434\u0435\u043c\u0438\u0447\u0435\u0441\u043a\u0438: GET \u0432\u043e\u0432\u0437\u0440\u0430\u0449\u0430\u0435\u0442 \u0442\u0438\u043f\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043e\u0431\u044a\u0435\u043a\u0442 <b>devices<\/b>, \u044f\u0432\u043b\u044f\u044e\u0449\u0438\u0439\u0441\u044f \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u043c \u043e\u0431\u044a\u0435\u043a\u0442\u0430 <b>DCIM<\/b>.<\/p>\n<p>  \u042d\u0442\u043e\u0442 \u0437\u0430\u043f\u0440\u043e\u0441 \u043c\u043e\u0436\u0435\u0442\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u0438 \u0432\u044b \u2014 \u043f\u0440\u043e\u0441\u0442\u043e \u0441\u043a\u043e\u043f\u0438\u0440\u0443\u0439\u0442\u0435 \u0441\u0435\u0431\u0435 \u0432 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b.<\/p>\n<blockquote><p> URL, \u043a \u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443 \u043c\u044b \u043e\u0431\u0440\u0430\u0449\u0430\u0435\u043c\u0441\u044f \u0432 \u0437\u0430\u043f\u0440\u043e\u0441\u0435, \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f <b>Endpoint<\/b>. \u0412 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0441\u043c\u044b\u0441\u043b\u0435 \u044d\u0442\u043e \u043a\u043e\u043d\u0435\u0447\u043d\u044b\u0439 \u043e\u0431\u044a\u0435\u043a\u0442, \u0441 \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c.<br \/>   \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 netbox&#8217;\u0430 \u0441\u043f\u0438\u0441\u043e\u043a \u0432\u0441\u0435\u0445 endpoint&#8217;\u043e\u0432 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c <a href=\"http:\/\/netbox.linkmeup.ru:45127\/api\/docs\/\" rel=\"nofollow\">\u0442\u0443\u0442<\/a>.  <\/p><\/blockquote>\n<blockquote><p> \u0418 \u0435\u0449\u0451 \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043d\u0430 \u0437\u043d\u0430\u043a <b>\/<\/b> \u0432 \u043a\u043e\u043d\u0446\u0435 URL \u2014 \u043e\u043d <b>\u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u0435\u043d<\/b>.  <\/p><\/blockquote>\n<p>  \u0412\u043e\u0442 \u0447\u0442\u043e \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u0432 \u043e\u0442\u0432\u0435\u0442:  <\/p>\n<pre><code class=\"bash\">{ &quot;id&quot;: 1, &quot;name&quot;: &quot;mlg-host-0&quot;, &quot;display_name&quot;: &quot;mlg-host-0&quot;, &quot;device_type&quot;: {     &quot;id&quot;: 4,     &quot;url&quot;: &quot;http:\/\/netbox.linkmeup.ru\/api\/dcim\/device-types\/4\/&quot;,     &quot;manufacturer&quot;: {         &quot;id&quot;: 4,         &quot;url&quot;: &quot;http:\/\/netbox.linkmeup.ru\/api\/dcim\/manufacturers\/4\/&quot;,         &quot;name&quot;: &quot;Hypermacro&quot;,         &quot;slug&quot;: &quot;hypermacro&quot;     },     &quot;model&quot;: &quot;Server&quot;,     &quot;slug&quot;: &quot;server&quot;,     &quot;display_name&quot;: &quot;Hypermacro Server&quot; }, &quot;device_role&quot;: {     &quot;id&quot;: 1,     &quot;url&quot;: &quot;http:\/\/netbox.linkmeup.ru\/api\/dcim\/device-roles\/1\/&quot;,     &quot;name&quot;: &quot;Server&quot;,     &quot;slug&quot;: &quot;server&quot; }, &quot;tenant&quot;: null, &quot;platform&quot;: null, &quot;serial&quot;: &quot;&quot;, &quot;asset_tag&quot;: null, &quot;site&quot;: {     &quot;id&quot;: 6,     &quot;url&quot;: &quot;http:\/\/netbox.linkmeup.ru\/api\/dcim\/sites\/6\/&quot;,     &quot;name&quot;: &quot;\u041c\u0430\u043b\u0430\u0433\u0430&quot;,     &quot;slug&quot;: &quot;mlg&quot; }, &quot;rack&quot;: {     &quot;id&quot;: 1,     &quot;url&quot;: &quot;http:\/\/netbox.linkmeup.ru\/api\/dcim\/racks\/1\/&quot;,     &quot;name&quot;: &quot;A&quot;,     &quot;display_name&quot;: &quot;A&quot; }, &quot;position&quot;: 41, &quot;face&quot;: {     &quot;value&quot;: &quot;front&quot;,     &quot;label&quot;: &quot;Front&quot;,     &quot;id&quot;: 0 }, &quot;parent_device&quot;: null, &quot;status&quot;: {     &quot;value&quot;: &quot;active&quot;,     &quot;label&quot;: &quot;Active&quot;,     &quot;id&quot;: 1 }, &quot;primary_ip&quot;: null, &quot;primary_ip4&quot;: null, &quot;primary_ip6&quot;: null, &quot;cluster&quot;: null, &quot;virtual_chassis&quot;: null, &quot;vc_position&quot;: null, &quot;vc_priority&quot;: null, &quot;comments&quot;: &quot;&quot;, &quot;local_context_data&quot;: null, &quot;tags&quot;: [], &quot;custom_fields&quot;: {}, &quot;config_context&quot;: {}, &quot;created&quot;: &quot;2020-01-14&quot;, &quot;last_updated&quot;: &quot;2020-01-14T18:39:01.288081Z&quot; } <\/code><\/pre>\n<p>  \u042d\u0442\u043e JSON (\u043a\u0430\u043a \u043c\u044b \u0438 \u043f\u0440\u043e\u0441\u0438\u043b\u0438), \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u044e\u0449\u0438\u0439 device \u0441 ID 1: \u043a\u0430\u043a \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f, \u0441 \u043a\u0430\u043a\u043e\u0439 \u0440\u043e\u043b\u044c\u044e, \u043a\u0430\u043a\u043e\u0439 \u043c\u043e\u0434\u0435\u043b\u0438, \u0433\u0434\u0435 \u0441\u0442\u043e\u0438\u0442 \u0438\u0442\u0434.<\/p>\n<p>  \u0422\u0430\u043a \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c HTTP-\u0437\u0430\u043f\u0440\u043e\u0441:  <\/p>\n<pre><code class=\"bash\">    GET \/api\/dcim\/devices\/1\/ HTTP\/1.1     Host: netbox.linkmeup.ru:45127     User-Agent: curl\/7.54.0     Accept: application\/json; indent=4<\/code><\/pre>\n<p>  \u0422\u0430\u043a \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u043e\u0442\u0432\u0435\u0442:  <\/p>\n<pre><code class=\"bash\">    HTTP\/1.1 200 OK     Server: nginx\/1.14.0 (Ubuntu)     Date: Tue, 21 Jan 2020 15:14:22 GMT     Content-Type: application\/json     Content-Length: 1638     Connection: keep-alive          Data<\/code><\/pre>\n<p>  <a href=\"https:\/\/github.com\/eucariot\/ADSM\/blob\/master\/docs\/source\/3_ipam\/dumps\/http_get_devices.pcapng\" rel=\"nofollow\">\u0414\u0430\u043c\u043f \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u0438<\/a>.<\/p>\n<p>  \u0410 \u0442\u0435\u043f\u0435\u0440\u044c \u0440\u0430\u0437\u0431\u0435\u0440\u0451\u043c\u0441\u044f, \u0447\u0442\u043e \u0436\u0435 \u043c\u044b \u043d\u0430\u0442\u0432\u043e\u0440\u0438\u043b\u0438.  <\/p>\n<hr>\n<h1>\u0421\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439 HTTP<\/h1>\n<p>  HTTP-\u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0438\u0437 \u0442\u0440\u0451\u0445 \u0447\u0430\u0441\u0442\u0435\u0439, \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0435\u0440\u0432\u0430\u044f \u0438\u0437 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0439.   <\/p>\n<ul>\n<li>\u0421\u0442\u0430\u0440\u0442\u043e\u0432\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0430<\/li>\n<li>\u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0438<\/li>\n<li>\u0422\u0435\u043b\u043e \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f<\/li>\n<\/ul>\n<h2>\u0421\u0442\u0430\u0440\u0442\u043e\u0432\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0430<\/h2>\n<p>  \u0421\u0442\u0430\u0440\u0442\u043e\u0432\u044b\u0435 \u0441\u0442\u0440\u043e\u043a\u0438 HTTP-\u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u0438 \u043e\u0442\u0432\u0435\u0442\u0430 \u0432\u044b\u0433\u043b\u044f\u0434\u044f\u0442 \u043f\u043e-\u0440\u0430\u0437\u043d\u043e\u043c\u0443.<\/p>\n<h4>HTTP-\u0417\u0430\u043f\u0440\u043e\u0441<\/h4>\n<p>  <\/p>\n<pre><code class=\"bash\">METHOD URI\u00a0HTTP_VERSION<\/code><\/pre>\n<p>  <\/p>\n<blockquote><p> <b>\u041c\u0435\u0442\u043e\u0434<\/b> \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442, \u043a\u0430\u043a\u043e\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u043a\u043b\u0438\u0435\u043d\u0442 \u0445\u043e\u0447\u0435\u0442 \u0441\u043e\u0432\u0435\u0440\u0448\u0438\u0442\u044c: \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435, \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043e\u0431\u044a\u0435\u043a\u0442, \u043e\u0431\u043d\u043e\u0432\u0438\u0442\u044c \u0435\u0433\u043e, \u0443\u0434\u0430\u043b\u0438\u0442\u044c.<br \/>   <b>URI<\/b> \u2014 \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 \u0440\u0435\u0441\u0443\u0440\u0441\u0430, \u043a\u0443\u0434\u0430 \u043a\u043b\u0438\u0435\u043d\u0442 \u043e\u0431\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u0438\u043b\u0438 \u0438\u043d\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438 \u043f\u0443\u0442\u044c \u043a \u0440\u0435\u0441\u0443\u0440\u0441\u0443\/\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0443.<br \/>   <b>HTTP_VERSION<\/b> \u2014 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0432\u0435\u0440\u0441\u0438\u044f HTTP. \u041d\u0430 \u0441\u0435\u0433\u043e\u0434\u043d\u044f\u0448\u043d\u0438\u0439 \u0434\u0435\u043d\u044c \u0434\u043b\u044f REST \u044d\u0442\u043e \u0432\u0441\u0435\u0433\u0434\u0430 1.1.  <\/p><\/blockquote>\n<p>  \u041f\u0440\u0438\u043c\u0435\u0440:  <\/p>\n<pre><code class=\"bash\">GET \/api\/dcim\/devices\/1\/ HTTP\/1.1<\/code><\/pre>\n<h4>HTTP-\u041e\u0442\u0432\u0435\u0442<\/h4>\n<p>  <\/p>\n<pre><code class=\"bash\">HTTP_VERSION STATUS_CODE REASON_PHRASE<\/code><\/pre>\n<p>  <\/p>\n<blockquote><p> <b>HTTP_VERSION<\/b> \u2014 \u0432\u0435\u0440\u0441\u0438\u044f HTTP (1.1).<br \/>   <b>STATUS_CODE<\/b> \u2014 \u0442\u0440\u0438 \u0446\u0438\u0444\u0440\u044b \u043a\u043e\u0434\u0430 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f (200, 404, 502 \u0438\u0442\u0434)<br \/>   <b>REASON_PHRASE<\/b> \u2014 \u041f\u043e\u044f\u0441\u043d\u0435\u043d\u0438\u0435 (OK, NOT FOUND, BAD GATEWAY \u0438\u0442\u0434)  <\/p><\/blockquote>\n<p>  \u041f\u0440\u0438\u043c\u0435\u0440:  <\/p>\n<pre><code class=\"bash\">HTTP\/1.1 200 OK<\/code><\/pre>\n<h2>\u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0438<\/h2>\n<p>  \u0412 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0430\u0445 \u043f\u0435\u0440\u0435\u0434\u0430\u044e\u0442\u0441\u044f \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0434\u0430\u043d\u043d\u043e\u0439 HTTP-\u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u0438. <\/p>\n<p>  \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0432 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u0432\u044b\u0448\u0435 \u0432 HTTP-\u0437\u0430\u043f\u0440\u043e\u0441\u0435 \u044d\u0442\u043e \u0431\u044b\u043b\u0438:  <\/p>\n<pre><code class=\"bash\">    Host: netbox.linkmeup.ru:45127     User-Agent: curl\/7.54.0     Accept: application\/json; indent=4<\/code><\/pre>\n<p>  \u0412 \u043d\u0438\u0445 \u0443\u043a\u0430\u0437\u0430\u043d\u043e, \u0447\u0442\u043e  <\/p>\n<ol>\n<li>\u041e\u0431\u0440\u0430\u0449\u0430\u0435\u043c\u0441\u044f \u043a \u0445\u043e\u0441\u0442\u0443 <b>netbox.linkmeup.ru:45127<\/b>,<\/li>\n<li>\u0417\u0430\u043f\u0440\u043e\u0441 \u0431\u044b\u043b \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d \u0432 <b>curl<\/b>,<\/li>\n<li>\u0410 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u043c \u0434\u0430\u043d\u043d\u044b\u0435 \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 <b>JSON<\/b> \u0441 \u043e\u0442\u0441\u0442\u0443\u043f\u043e\u043c <b>4<\/b>.<\/li>\n<\/ol>\n<p>  \u0410 \u0432\u043e\u0442 \u043a\u0430\u043a\u0438\u0435 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0438 \u0431\u044b\u043b\u0438 \u0432 HTTP-\u043e\u0442\u0432\u0435\u0442\u0435:  <\/p>\n<pre><code class=\"bash\">    Server: nginx\/1.14.0 (Ubuntu)     Date: Tue, 21 Jan 2020 15:14:22 GMT     Content-Type: application\/json     Content-Length: 1638     Connection: keep-alive<\/code><\/pre>\n<p>  \u0412 \u043d\u0438\u0445 \u0443\u043a\u0430\u0437\u0430\u043d\u043e, \u0447\u0442\u043e  <\/p>\n<ol>\n<li>\u0422\u0438\u043f \u0441\u0435\u0440\u0432\u0435\u0440\u0430: <b>nginx \u043d\u0430 Ubuntu<\/b>,<\/li>\n<li>\u0412\u0440\u0435\u043c\u044f \u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043e\u0442\u0432\u0435\u0442\u0430,<\/li>\n<li>\u0424\u043e\u0440\u043c\u0430\u0442 \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 \u043e\u0442\u0432\u0435\u0442\u0435: <b>JSON<\/b><\/li>\n<li>\u0414\u043b\u0438\u043d\u0430 \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 \u043e\u0442\u0432\u0435\u0442\u0435: <b>1638 \u0431\u0430\u0439\u0442\u043e\u0432<\/b><\/li>\n<li>\u0421\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 \u043d\u0435 \u043d\u0443\u0436\u043d\u043e \u0437\u0430\u043a\u0440\u044b\u0432\u0430\u0442\u044c \u2014 \u0435\u0449\u0451 \u0431\u0443\u0434\u0443\u0442 \u0434\u0430\u043d\u043d\u044b\u0435.<\/li>\n<\/ol>\n<p>  \u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0438, \u043a\u0430\u043a \u0432\u044b \u0443\u0436\u0435 \u0437\u0430\u043c\u0435\u0442\u0438\u043b\u0438, \u0432\u044b\u0433\u043b\u044f\u0434\u044f\u0442 \u043a\u0430\u043a \u043f\u0430\u0440\u044b \u0438\u043c\u044f: \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435, \u0440\u0430\u0437\u0434\u0435\u043b\u0451\u043d\u043d\u044b\u0435 \u0437\u043d\u0430\u043a\u043e\u043c &quot;:&quot;.<\/p>\n<p>  <a href=\"https:\/\/en.wikipedia.org\/wiki\/List_of_HTTP_header_fields\" rel=\"nofollow\">\u041f\u043e\u043b\u043d\u044b\u0439 \u0441\u043f\u0438\u0441\u043e\u043a \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0445 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u043e\u0432<\/a>.<\/p>\n<h2>\u0422\u0435\u043b\u043e HTTP-\u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f<\/h2>\n<p>  \u0422\u0435\u043b\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0434\u0430\u043d\u043d\u044b\u0445.<br \/>  \u0412 HTTP-\u043e\u0442\u0432\u0435\u0442\u0435 \u044d\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c HTML-\u0441\u0442\u0440\u0430\u043d\u0438\u0447\u043a\u0430, \u0438\u043b\u0438 \u0432 \u043d\u0430\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 JSON-\u043e\u0431\u044a\u0435\u043a\u0442.<\/p>\n<p>  \u041c\u0435\u0436\u0434\u0443 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0430\u043c\u0438 \u0438 \u0442\u0435\u043b\u043e\u043c \u0434\u043e\u043b\u0436\u043d\u0430 \u0431\u044b\u0442\u044c \u043a\u0430\u043a \u043c\u0438\u043d\u0438\u043c\u0443\u043c \u043e\u0434\u043d\u0430 \u043f\u0443\u0441\u0442\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0430.<\/p>\n<p>  \u041f\u0440\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 \u043c\u0435\u0442\u043e\u0434\u0430 GET \u0432 HTTP-\u0437\u0430\u043f\u0440\u043e\u0441\u0435 \u043e\u0431\u044b\u0447\u043d\u043e \u043d\u0438\u043a\u0430\u043a\u043e\u0433\u043e \u0442\u0435\u043b\u0430 \u043d\u0435\u0442, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u0442\u044c \u043d\u0435\u0447\u0435\u0433\u043e. \u041d\u043e \u0442\u0435\u043b\u043e \u0435\u0441\u0442\u044c \u0432 HTTP-\u043e\u0442\u0432\u0435\u0442\u0435.<br \/>  \u0410 \u0432\u043e\u0442 \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043f\u0440\u0438 POST \u0443\u0436\u0435 \u0438 \u0432 \u0437\u0430\u043f\u0440\u043e\u0441\u0435 \u0431\u0443\u0434\u0435\u0442 \u0442\u0435\u043b\u043e. \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u043e \u043c\u0435\u0442\u043e\u0434\u0430\u0445 \u0438 \u043f\u043e\u0433\u043e\u0432\u043e\u0440\u0438\u043c \u0442\u0435\u043f\u0435\u0440\u044c.  <\/p>\n<hr>\n<p>  <\/p>\n<h1>\u041c\u0435\u0442\u043e\u0434\u044b<\/h1>\n<p>  \u041a\u0430\u043a \u0432\u044b \u0443\u0436\u0435 \u043f\u043e\u043d\u044f\u043b\u0438, \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 WEB-\u0441\u0435\u0440\u0432\u0438\u0441\u0430\u043c\u0438 HTTP \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u043c\u0435\u0442\u043e\u0434\u044b. \u0422\u043e \u0436\u0435 \u0441\u0430\u043c\u043e\u0435 \u043a\u0430\u0441\u0430\u0435\u0442\u0441\u044f \u0438 RESTful API.<br \/>  \u0412\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0435 \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u0438 \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u0442\u0435\u0440\u043c\u0438\u043d\u043e\u043c <b>CRUD \u2014 Create, Read, Update, Delete<\/b>.<br \/>  \u0412\u043e\u0442 \u0441\u043f\u0438\u0441\u043e\u043a \u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u044b\u0445 \u043c\u0435\u0442\u043e\u0434\u043e\u0432 HTTP, \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u044e\u0449\u0438\u0445 CRUD:<\/p>\n<ul>\n<li>HTTP GET<\/li>\n<li>HTTP POST<\/li>\n<li>HTTP PUT<\/li>\n<li>HTTP DELETE<\/li>\n<li>HTTP PATCH<\/li>\n<\/ul>\n<p>  \u041c\u0435\u0442\u043e\u0434\u044b \u0442\u0430\u043a\u0436\u0435 \u043d\u0430\u0437\u044b\u0432\u0430\u044e\u0442\u0441\u044f <b>\u0433\u043b\u0430\u0433\u043e\u043b\u0430\u043c\u0438<\/b>, \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u044e\u0442 \u043d\u0430 \u0442\u043e, \u043a\u0430\u043a\u043e\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0441\u044f.<\/p>\n<p>  <a href=\"https:\/\/en.wikipedia.org\/wiki\/Hypertext_Transfer_Protocol#Request_methods\" rel=\"nofollow\">\u041f\u043e\u043b\u043d\u044b\u0439 \u0441\u043f\u0438\u0441\u043e\u043a \u043c\u0435\u0442\u043e\u0434\u043e\u0432<\/a>.<\/p>\n<p>  \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u043d\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 NetBox \u0440\u0430\u0437\u0431\u0435\u0440\u0451\u043c\u0441\u044f \u0441 \u043a\u0430\u0436\u0434\u044b\u043c \u0438\u0437 \u043d\u0438\u0445.<\/p>\n<h2>HTTP GET<\/h2>\n<p>  \u042d\u0442\u043e \u043c\u0435\u0442\u043e\u0434 \u0434\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438.<\/p>\n<p>  \u0422\u0430\u043a, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043c\u044b \u0437\u0430\u0431\u0438\u0440\u0430\u0435\u043c \u0441\u043f\u0438\u0441\u043e\u043a \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432:<\/p>\n<pre><code class=\"bash\">curl -H &quot;Accept: application\/json; indent=4&quot; \\ http:\/\/netbox.linkmeup.ru:45127\/api\/dcim\/devices\/ <\/code><\/pre>\n<p>  \u041c\u0435\u0442\u043e\u0434 GET <b>\u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u044b\u0439<\/b> (<b>safe<\/b>), \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u043d\u0435 \u043c\u0435\u043d\u044f\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0435, \u0430 \u0442\u043e\u043b\u044c\u043a\u043e \u0437\u0430\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0435\u0442.<br \/>  \u041e\u043d <b>\u0438\u0434\u0435\u043c\u043f\u043e\u0442\u0435\u043d\u0442\u043d\u044b\u0439<\/b> \u0441 \u0442\u043e\u0439 \u0442\u043e\u0447\u043a\u0438 \u0437\u0440\u0435\u043d\u0438\u044f, \u0447\u0442\u043e \u043e\u0434\u0438\u043d \u0438 \u0442\u043e\u0442 \u0436\u0435 \u0437\u0430\u043f\u0440\u043e\u0441 \u0432\u0441\u0435\u0433\u0434\u0430 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u0439 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 (\u0434\u043e \u0442\u0435\u0445 \u043f\u043e\u0440, \u043f\u043e\u043a\u0430 \u0441\u0430\u043c\u0438 \u0434\u0430\u043d\u043d\u044b\u0435 \u043d\u0435 \u043f\u043e\u043c\u0435\u043d\u044f\u043b\u0438\u0441\u044c).<\/p>\n<p>  \u041d\u0430 GET \u0441\u0435\u0440\u0432\u0435\u0440 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u0441 HTTP-\u043a\u043e\u0434\u043e\u043c \u0438 \u0442\u0435\u043b\u043e\u043c \u043e\u0442\u0432\u0435\u0442\u0430 (<b>response code<\/b> \u0438 <b>response body<\/b>).<br \/>  \u0422\u043e \u0435\u0441\u0442\u044c \u0435\u0441\u043b\u0438 \u0432\u0441\u0451 OK, \u0442\u043e \u043a\u043e\u0434 \u043e\u0442\u0432\u0435\u0442\u0430 \u2014 200 (OK).<br \/>  \u0415\u0441\u043b\u0438 URL \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d \u2014 404 (NOT FOUND).<br \/>  \u0415\u0441\u043b\u0438 \u0447\u0442\u043e-\u0442\u043e \u043d\u0435 \u0442\u0430\u043a \u0441 \u0441\u0430\u043c\u0438\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u043c \u0438\u043b\u0438 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430\u043c\u0438, \u044d\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c 500 (SERVER ERROR) \u0438\u043b\u0438 502 (BAD GATEWAY).<br \/>  <a href=\"https:\/\/en.wikipedia.org\/wiki\/List_of_HTTP_status_codes\" rel=\"nofollow\">\u0412\u0441\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0435 \u043a\u043e\u0434\u044b \u043e\u0442\u0432\u0435\u0442\u043e\u0432<\/a>.<\/p>\n<p>  \u0422\u0435\u043b\u043e \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 JSON \u0438\u043b\u0438 XML.<br \/>  <a href=\"https:\/\/github.com\/eucariot\/ADSM\/blob\/master\/docs\/source\/3_ipam\/dumps\/http_get_all_devices.pcapng\" rel=\"nofollow\">\u0414\u0430\u043c\u043f \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u0438<\/a>.<\/p>\n<p>  \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u0435\u0449\u0451 \u043f\u0430\u0440\u0443 \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u0432. \u0422\u0435\u043f\u0435\u0440\u044c \u043c\u044b \u0437\u0430\u043f\u0440\u043e\u0441\u0438\u043c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043f\u043e \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u043c\u0443 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0443 \u043f\u043e \u0435\u0433\u043e \u0438\u043c\u0435\u043d\u0438.  <\/p>\n<pre><code class=\"bash\">curl -X GET -H &quot;Accept: application\/json; indent=4&quot; \\ &quot;http:\/\/netbox.linkmeup.ru:45127\/api\/dcim\/devices\/?name=mlg-leaf-0&quot;<\/code><\/pre>\n<p>  \u0417\u0434\u0435\u0441\u044c, \u0447\u0442\u043e\u0431\u044b \u0437\u0430\u0434\u0430\u0442\u044c \u0443\u0441\u043b\u043e\u0432\u0438\u044f \u043f\u043e\u0438\u0441\u043a\u0430 \u0432 URI \u044f \u0435\u0449\u0451 \u0443\u043a\u0430\u0437\u0430\u043b \u0430\u0442\u0440\u0438\u0442\u0431\u0443\u0442 \u043e\u0431\u044a\u0435\u043a\u0442\u0430 (\u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 <b>name<\/b> \u0438 \u0435\u0433\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 <b>mlg-leaf-0<\/b>). \u041a\u0430\u043a \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0432\u0438\u0434\u0435\u0442\u044c, \u043f\u0435\u0440\u0435\u0434 \u0443\u0441\u043b\u043e\u0432\u0438\u0435\u043c \u0438 \u043f\u043e\u0441\u043b\u0435 \u0441\u043b\u044d\u0448\u0430 \u0438\u0434\u0451\u0442 \u0437\u043d\u0430\u043a <b>&quot;?&quot;<\/b>, \u0430 \u0438\u043c\u044f \u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0440\u0430\u0437\u0434\u0435\u043b\u044f\u044e\u0442\u0441\u044f \u0437\u043d\u0430\u043a\u043e\u043c <b>&quot;=&quot;<\/b>.<\/p>\n<p>  \u0422\u0430\u043a \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0437\u0430\u043f\u0440\u043e\u0441.  <\/p>\n<pre><code class=\"bash\">    GET \/api\/dcim\/devices\/?name=mlg-leaf-0 HTTP\/1.1     Host: netbox.linkmeup.ru:45127     User-Agent: curl\/7.54.0     Accept: application\/json; indent=4<\/code><\/pre>\n<p>  <a href=\"https:\/\/github.com\/eucariot\/ADSM\/blob\/master\/docs\/source\/3_ipam\/dumps\/http_get_device_by_name.pcapng\" rel=\"nofollow\">\u0414\u0430\u043c\u043f \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u0438<\/a>.<\/p>\n<p>  \u0415\u0441\u043b\u0438 \u043d\u0443\u0436\u043d\u043e \u0437\u0430\u0434\u0430\u0442\u044c \u043f\u0430\u0440\u0443 \u0443\u0441\u043b\u043e\u0432\u0438\u0439, \u0442\u043e \u0437\u0430\u043f\u0440\u043e\u0441 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u0442\u0430\u043a:  <\/p>\n<pre><code class=\"bash\">curl -X GET -H &quot;Accept: application\/json; indent=4&quot; \\ &quot;http:\/\/netbox.linkmeup.ru:45127\/api\/dcim\/devices\/?role=leaf&amp;site=mlg&quot;<\/code><\/pre>\n<p>  \u0417\u0434\u0435\u0441\u044c \u043c\u044b \u0437\u0430\u043f\u0440\u043e\u0441\u0438\u043b\u0438 \u0432\u0441\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 \u0441 \u0440\u043e\u043b\u044c\u044e <b>leaf<\/b>, \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0435 \u043d\u0430 \u0441\u0430\u0439\u0442\u0435 <b>mlg<\/b>.<br \/>  \u0422\u043e \u0435\u0441\u0442\u044c \u0434\u0432\u0430 \u0443\u0441\u043b\u043e\u0432\u0438\u044f \u043e\u0442\u0434\u0435\u043b\u044f\u044e\u0442\u0441\u044f \u0434\u0440\u0443\u0433 \u043e\u0442 \u0434\u0440\u0443\u0433\u0430 \u0437\u043d\u0430\u043a\u043e\u043c <b>&quot;&amp;&quot;<\/b>.<\/p>\n<p>  <a href=\"https:\/\/github.com\/eucariot\/ADSM\/blob\/master\/docs\/source\/3_ipam\/dumps\/http_get_device_with_double_conditions.pcapng\" rel=\"nofollow\">\u0414\u0430\u043c\u043f \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u0438<\/a>.<\/p>\n<p>  \u0418\u0437 \u043b\u044e\u0431\u043e\u043f\u044b\u0442\u043d\u043e\u0433\u043e \u0438 \u043f\u0440\u0438\u044f\u0442\u043d\u043e\u0433\u043e \u2014 \u0435\u0441\u043b\u0438 \u0447\u0435\u0440\u0435\u0437 &quot;&amp;&quot; \u0437\u0430\u0434\u0430\u0442\u044c \u0434\u0432\u0430 \u0443\u0441\u043b\u043e\u0432\u0438\u044f \u0441 \u043e\u0434\u043d\u0438\u043c \u0438\u043c\u0435\u043d\u0435\u043c, \u0442\u043e \u043c\u0435\u0436\u0434\u0443 \u043d\u0438\u043c\u0438 \u0431\u0443\u0434\u0435\u0442 \u043d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435 \u043d\u0435 \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u00ab\u0418\u00bb, \u0430 \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u00ab\u0418\u041b\u0418\u00bb.<br \/>  \u0422\u043e \u0435\u0441\u0442\u044c \u0432\u043e\u0442 \u0442\u0430\u043a\u043e\u0439 \u0437\u0430\u043f\u0440\u043e\u0441 \u0438 \u0432 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435 \u0432\u0435\u0440\u043d\u0451\u0442 \u0434\u0432\u0430 \u043e\u0431\u044a\u0435\u043a\u0442\u0430: mlg-leaf-0 \u0438 mlg-spine-0  <\/p>\n<pre><code class=\"bash\">curl -X GET -H &quot;Accept: application\/json; indent=4&quot; \\ &quot;http:\/\/netbox.linkmeup.ru:45127\/api\/dcim\/devices\/?name=mlg-leaf-0&amp;name=mlg-spine-0&quot;<\/code><\/pre>\n<p>  <a href=\"https:\/\/github.com\/eucariot\/ADSM\/blob\/master\/docs\/source\/3_ipam\/dumps\/http_get_device_with_or_operand.pcapng\" rel=\"nofollow\">\u0414\u0430\u043c\u043f \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u0438<\/a>.<\/p>\n<p>  \u041f\u043e\u043f\u0440\u043e\u0431\u0443\u0435\u043c \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u044c\u0441\u044f \u043a \u043d\u0435\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u043c\u0443 URL.<\/p>\n<pre><code class=\"bash\">curl -X GET -H &quot;Accept: application\/json; indent=4&quot; \\ &quot;http:\/\/netbox.linkmeup.ru:45127\/api\/dcim\/IDGAF\/&quot;<\/code><\/pre>\n<p>  <a href=\"https:\/\/github.com\/eucariot\/ADSM\/blob\/master\/docs\/source\/3_ipam\/dumps\/http_get_not_found.pcapng\" rel=\"nofollow\">\u0414\u0430\u043c\u043f \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u0438<\/a>.  <\/p>\n<hr>\n<p>  <\/p>\n<h2>HTTP POST<\/h2>\n<p>  POST \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043d\u043e\u0432\u043e\u0433\u043e \u043e\u0431\u044a\u0435\u043a\u0442\u0430 \u0432 \u043d\u0430\u0431\u043e\u0440\u0435 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432. \u0418\u043b\u0438 \u0431\u043e\u043b\u0435\u0435 \u0441\u043b\u043e\u0436\u043d\u044b\u043c \u044f\u0437\u044b\u043a\u043e\u043c: \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043d\u043e\u0432\u043e\u0433\u043e \u043f\u043e\u0434\u0447\u0438\u043d\u0451\u043d\u043d\u043e\u0433\u043e \u0440\u0435\u0441\u0443\u0440\u0441\u0430.<br \/>  \u0422\u043e \u0435\u0441\u0442\u044c, \u0435\u0441\u043b\u0438 \u0435\u0441\u0442\u044c \u043d\u0430\u0431\u043e\u0440 devices, \u0442\u043e POST \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043d\u043e\u0432\u044b\u0439 \u043e\u0431\u044a\u0435\u043a\u0442 device \u0432\u043d\u0443\u0442\u0440\u0438 devices. <\/p>\n<p>  \u0412\u044b\u0431\u0435\u0440\u0435\u043c \u0442\u043e\u0442 \u0436\u0435 Endpoint \u0438 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e POST \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043d\u043e\u0432\u043e\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e.<\/p>\n<pre><code class=\"bash\">curl -X POST &quot;http:\/\/netbox.linkmeup.ru:45127\/api\/dcim\/devices\/&quot; \\ -H &quot;accept: application\/json&quot;\\ -H &quot;Content-Type: application\/json&quot; \\ -H &quot;Authorization: TOKEN a9aae70d65c928a554f9a038b9d4703a1583594f&quot; \\ -d &quot;{ \\&quot;name\\&quot;: \\&quot;just a simple russian girl\\&quot;, \\&quot;device_type\\&quot;: 1, \\&quot;device_role\\&quot;: 1, \\&quot;site\\&quot;: 3, \\&quot;rack\\&quot;: 3, \\&quot;position\\&quot;: 5, \\&quot;face\\&quot;: \\&quot;front\\&quot;}&quot;<\/code><\/pre>\n<p>  \u0417\u0434\u0435\u0441\u044c \u0443\u0436\u0435 \u043f\u043e\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a <b>Authorization<\/b>, \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0449\u0438\u0439 \u0442\u043e\u043a\u0435\u043d, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0443\u0435\u0442 \u0437\u0430\u043f\u0440\u043e\u0441 \u043d\u0430 \u0437\u0430\u043f\u0438\u0441\u044c, \u0430 \u043f\u043e\u0441\u043b\u0435 \u0434\u0438\u0440\u0435\u043a\u0442\u0438\u0432\u044b <b>-d<\/b> \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d JSON \u0441 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c\u0438 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0435\u043c\u043e\u0433\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430:<\/p>\n<pre><code class=\"bash\">{     &quot;name&quot;: &quot;just a simple russian girl&quot;,     &quot;device_type&quot;: 1,     &quot;device_role&quot;: 1,     &quot;site&quot;: 3,     &quot;rack&quot;: 3,     &quot;position&quot;: 5,     &quot;face&quot;: &quot;front&quot;}<\/code><\/pre>\n<blockquote><p> \u0417\u0430\u043f\u0440\u043e\u0441 \u0443 \u0432\u0430\u0441 \u043d\u0435 \u0441\u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0422\u043e\u043a\u0435\u043d \u0443\u0436\u0435 \u043d\u0435 \u0432\u0430\u043b\u0438\u0434\u0435\u043d \u2014 \u043d\u0435 \u043f\u044b\u0442\u0430\u0439\u0442\u0435\u0441\u044c \u0437\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0432 NetBox.  <\/p><\/blockquote>\n<p>  \u0412 \u043e\u0442\u0432\u0435\u0442 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442 HTTP-\u043e\u0442\u0432\u0435\u0442 \u0441 \u043a\u043e\u0434\u043e\u043c 201 (CREATED) \u0438 JSON&#8217;\u043e\u043c \u0432 \u0442\u0435\u043b\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f, \u0433\u0434\u0435 \u0441\u0435\u0440\u0432\u0435\u0440 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0432\u0441\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u043e \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u043e\u043c \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0435.<\/p>\n<pre><code class=\"bash\">    HTTP\/1.1 201 Created     Server: nginx\/1.14.0 (Ubuntu)     Date: Sat, 18 Jan 2020 11:00:22 GMT     Content-Type: application\/json     Content-Length: 1123     Connection: keep-alive      JSON<\/code><\/pre>\n<p>  <a href=\"https:\/\/github.com\/eucariot\/ADSM\/blob\/master\/docs\/source\/3_ipam\/dumps\/http_post_new_device.pcapng\" rel=\"nofollow\">\u0414\u0430\u043c\u043f \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u0438<\/a>.<\/p>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043d\u043e\u0432\u044b\u043c \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u043c \u0441 \u043c\u0435\u0442\u043e\u0434\u043e\u043c GET \u043c\u043e\u0436\u043d\u043e \u0435\u0433\u043e \u0443\u0432\u0438\u0434\u0435\u0442\u044c \u0432 \u0432\u044b\u0434\u0430\u0447\u0435:  <\/p>\n<pre><code class=\"bash\">curl -X GET -H &quot;Accept: application\/json; indent=4&quot; \\ &quot;http:\/\/netbox.linkmeup.ru:45127\/api\/dcim\/devices\/?q=russian&quot;<\/code><\/pre>\n<p>  <\/p>\n<blockquote><p> \u00abq\u00bb \u0432 NetBox&#8217;\u0435 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043d\u0430\u0439\u0442\u0438 \u0432\u0441\u0435 \u043e\u0431\u044a\u0435\u043a\u0442\u044b, \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0449\u0438\u0435 \u0432 \u0441\u0432\u043e\u0451\u043c \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0438 \u0441\u0442\u0440\u043e\u043a\u0443, \u0438\u0434\u0443\u0449\u0443\u044e \u0434\u0430\u043b\u044c\u0448\u0435.  <\/p><\/blockquote>\n<p>  POST, \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u043e, \u043d\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f <b>\u043d\u0438 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u044b\u043c, \u043d\u0438 \u0438\u0434\u0435\u043c\u043f\u043e\u0442\u0435\u043d\u0442\u043d\u044b\u043c<\/b> \u2014 \u043e\u043d \u043d\u0430\u0432\u0435\u0440\u043d\u044f\u043a\u0430 \u043c\u0435\u043d\u044f\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0435, \u0438 \u0434\u0432\u0430\u0436\u0434\u044b \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u043d\u044b\u0439 \u0437\u0430\u043f\u0440\u043e\u0441 \u043f\u0440\u0438\u0432\u0435\u0434\u0451\u0442 \u0438\u043b\u0438 \u043a \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044e \u0432\u0442\u043e\u0440\u043e\u0433\u043e \u0442\u0430\u043a\u043e\u0433\u043e \u0436\u0435 \u043e\u0431\u044a\u0435\u043a\u0442\u0430, \u0438\u043b\u0438 \u043a \u043e\u0448\u0438\u0431\u043a\u0435.  <\/p>\n<hr>\n<p>  <\/p>\n<h2>HTTP PUT<\/h2>\n<p>  \u042d\u0442\u043e \u043c\u0435\u0442\u043e\u0434 \u0434\u043b\u044f \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0433\u043e \u043e\u0431\u044a\u0435\u043a\u0442\u0430. Endpoint \u0434\u043b\u044f PUT \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0438\u043d\u0430\u0447\u0435, \u0447\u0435\u043c \u0434\u043b\u044f POST \u2014 \u0432 \u043d\u0451\u043c \u0442\u0435\u043f\u0435\u0440\u044c \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442\u0441\u044f \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u0439 \u043e\u0431\u044a\u0435\u043a\u0442.<br \/>  PUT \u043c\u043e\u0436\u0435\u0442 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0442\u044c \u043a\u043e\u0434\u044b 201 \u0438\u043b\u0438 200.<\/p>\n<p>  \u0412\u0430\u0436\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u0441 \u044d\u0442\u0438\u043c \u043c\u0435\u0442\u043e\u0434\u043e\u043c: \u043d\u0443\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u0442\u044c \u0432\u0441\u0435 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u044b, \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 PUT \u0437\u0430\u043c\u0435\u0449\u0430\u0435\u0442 \u0441\u043e\u0431\u043e\u0439 \u0441\u0442\u0430\u0440\u044b\u0439 \u043e\u0431\u044a\u0435\u043a\u0442.<br \/>  \u041f\u043e\u044d\u0442\u043e\u043c\u0443, \u0435\u0441\u043b\u0438 \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u043e\u043f\u044b\u0442\u0430\u0442\u044c\u0441\u044f \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0430\u0442\u0440\u0438\u0431\u0443\u0442 asset_tag \u043d\u0430\u0448\u0435\u043c\u0443 \u043d\u043e\u0432\u043e\u043c\u0443 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0443, \u0442\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u043e\u0448\u0438\u0431\u043a\u0443:<\/p>\n<pre><code class=\"bash\">curl -X PUT &quot;http:\/\/netbox.linkmeup.ru:45127\/api\/dcim\/devices\/18\/&quot; \\ -H &quot;accept: application\/json&quot; \\ -H &quot;Content-Type: application\/json&quot; \\ -H &quot;Authorization: TOKEN a9aae70d65c928a554f9a038b9d4703a1583594f&quot; \\ -d &quot;{ \\&quot;asset_tag\\&quot;: \\&quot;12345678\\&quot;}&quot;<\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"bash\">{&quot;device_type&quot;:[&quot;This field is required.&quot;],&quot;device_role&quot;:[&quot;This field is required.&quot;],&quot;site&quot;:[&quot;This field is required.&quot;]}<\/code><\/pre>\n<p>  \u041d\u043e \u0435\u0441\u043b\u0438 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u044e\u0449\u0438\u0435 \u043f\u043e\u043b\u044f, \u0442\u043e \u0432\u0441\u0451 \u0441\u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442:<\/p>\n<pre><code class=\"bash\">curl -X PUT &quot;http:\/\/netbox.linkmeup.ru:45127\/api\/dcim\/devices\/18\/&quot; \\ -H &quot;accept: application\/json&quot; \\ -H &quot;Content-Type: application\/json&quot; \\ -H &quot;Authorization: TOKEN a9aae70d65c928a554f9a038b9d4703a1583594f&quot; \\ -d &quot;{ \\&quot;name\\&quot;: \\&quot;just a simple russian girl\\&quot;, \\&quot;device_type\\&quot;: 1, \\&quot;device_role\\&quot;: 1, \\&quot;site\\&quot;: 3, \\&quot;rack\\&quot;: 3, \\&quot;position\\&quot;: 5, \\&quot;face\\&quot;: \\&quot;front\\&quot;, \\&quot;asset_tag\\&quot;: \\&quot;12345678\\&quot;}&quot;<\/code><\/pre>\n<p>  <a href=\"https:\/\/github.com\/eucariot\/ADSM\/blob\/master\/docs\/source\/3_ipam\/dumps\/http_put_asset_tag.pcapng\" rel=\"nofollow\">\u0414\u0430\u043c\u043f \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u0438<\/a>.<\/p>\n<blockquote><p>\u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043d\u0430 URL \u0437\u0434\u0435\u0441\u044c \u2014 \u0442\u0435\u043f\u0435\u0440\u044c \u043e\u043d \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442 ID \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043c\u044b \u0445\u043e\u0442\u0438\u043c \u043c\u0435\u043d\u044f\u0442\u044c (<b>18<\/b>).  <\/p><\/blockquote>\n<p>  <\/p>\n<hr>\n<p>  <\/p>\n<h2>HTTP PATCH<\/h2>\n<p>  \u042d\u0442\u043e\u0442 \u043c\u0435\u0442\u043e\u0434 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u0447\u0430\u0441\u0442\u0438\u0447\u043d\u043e\u0433\u043e \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0440\u0435\u0441\u0443\u0440\u0441\u0430.<br \/>  WAT? \u0421\u043f\u0440\u043e\u0441\u0438\u0442\u0435 \u0432\u044b, \u0430 \u043a\u0430\u043a \u0436\u0435 PUT?<\/p>\n<p>  PUT \u2014 \u0438\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043e\u0432\u0430\u0432\u0448\u0438\u0439 \u0432 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u0435 \u043c\u0435\u0442\u043e\u0434, \u043f\u0440\u0435\u0434\u043f\u043e\u043b\u0430\u0433\u0430\u044e\u0449\u0438\u0439 \u043f\u043e\u043b\u043d\u0443\u044e \u0437\u0430\u043c\u0435\u043d\u0443 \u0438\u0437\u043c\u0435\u043d\u044f\u0435\u043c\u043e\u0433\u043e \u043e\u0431\u044a\u0435\u043a\u0442\u0430. \u0421\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0432 \u043c\u0435\u0442\u043e\u0434\u0435 PUT, \u043a\u0430\u043a \u044f \u0438 \u043f\u0438\u0441\u0430\u043b \u0432\u044b\u0448\u0435, \u043f\u0440\u0438\u0434\u0451\u0442\u0441\u044f \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u0434\u0430\u0436\u0435 \u0442\u0435 \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u044b \u043e\u0431\u044a\u0435\u043a\u0442\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0435 \u043c\u0435\u043d\u044f\u044e\u0442\u0441\u044f.<\/p>\n<p>  \u0410 PATCH \u0431\u044b\u043b \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d \u043f\u043e\u0437\u0436\u0435 \u0438 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0442\u0435 \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043c\u0435\u043d\u044f\u044e\u0442\u0441\u044f.<\/p>\n<p>  \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440:<\/p>\n<pre><code class=\"bash\">curl -X PATCH &quot;http:\/\/netbox.linkmeup.ru:45127\/api\/dcim\/devices\/18\/&quot; \\ -H &quot;accept: application\/json&quot; \\ -H &quot;Content-Type: application\/json&quot; \\ -H &quot;Authorization: TOKEN a9aae70d65c928a554f9a038b9d4703a1583594f&quot; \\ -d &quot;{ \\&quot;serial\\&quot;: \\&quot;BREAKINGBAD\\&quot;}&quot;<\/code><\/pre>\n<p>  \u0417\u0434\u0435\u0441\u044c \u0442\u0430\u043a\u0436\u0435 \u0432 URL \u0443\u043a\u0430\u0437\u0430\u043d ID \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430, \u043d\u043e \u0434\u043b\u044f \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0434\u0438\u043d \u0430\u0442\u0440\u0438\u0431\u0443\u0442 <b>serial<\/b>.<\/p>\n<p>  <a href=\"https:\/\/github.com\/eucariot\/ADSM\/blob\/master\/docs\/source\/3_ipam\/dumps\/http_patch_serial.pcapng\" rel=\"nofollow\">\u0414\u0430\u043c\u043f \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u0438<\/a>.  <\/p>\n<hr>\n<p>  <\/p>\n<h2>HTTP DELETE<\/h2>\n<p>  \u041e\u0447\u0435\u0432\u0438\u0434\u043d\u043e, \u0443\u0434\u0430\u043b\u044f\u0435\u0442 \u043e\u0431\u044a\u0435\u043a\u0442.<\/p>\n<p>  \u041f\u0440\u0438\u043c\u0435\u0440.  <\/p>\n<pre><code class=\"bash\">curl -X DELETE &quot;http:\/\/netbox.linkmeup.ru:45127\/api\/dcim\/devices\/21\/&quot; \\ -H &quot;accept: application\/json&quot; \\ -H &quot;Content-Type: application\/json&quot; \\ -H &quot;Authorization: TOKEN a9aae70d65c928a554f9a038b9d4703a1583594f&quot;<\/code><\/pre>\n<p>  \u041c\u0435\u0442\u043e\u0434 DELETE \u0438\u0434\u0435\u043c\u043f\u043e\u0442\u0435\u043d\u0442\u0435\u043d \u0441 \u0442\u043e\u0439 \u0442\u043e\u0447\u043a\u0438 \u0437\u0440\u0435\u043d\u0438\u044f, \u0447\u0442\u043e \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u043d\u044b\u0439 \u0437\u0430\u043f\u0440\u043e\u0441 \u0443\u0436\u0435 \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u043c\u0435\u043d\u044f\u0435\u0442 \u0432 \u0441\u043f\u0438\u0441\u043a\u0435 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432 (\u043d\u043e \u0432\u0435\u0440\u043d\u0451\u0442 \u043a\u043e\u0434 404 (NOT FOUND).<\/p>\n<pre><code class=\"bash\">curl -X DELETE &quot;http:\/\/netbox.linkmeup.ru:45127\/api\/dcim\/devices\/21\/&quot; \\ -H &quot;accept: application\/json&quot; \\ -H &quot;Content-Type: application\/json&quot; \\ -H &quot;Authorization: TOKEN a9aae70d65c928a554f9a038b9d4703a1583594f&quot;<\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"bash\">{&quot;detail&quot;:&quot;Not found.&quot;}<\/code><\/pre>\n<p>  <\/p>\n<hr>\n<p>  <\/p>\n<h1>\u0421\u043f\u043e\u0441\u043e\u0431\u044b \u0440\u0430\u0431\u043e\u0442\u044b \u0441 RESTful API<\/h1>\n<p>  Curl \u2014 \u044d\u0442\u043e, \u043a\u043e\u043d\u0435\u0447\u043d\u043e, \u043e\u0447\u0435\u043d\u044c \u0443\u0434\u043e\u0431\u043d\u043e \u0434\u043b\u044f \u0434\u043e\u0431\u043b\u0435\u0441\u0442\u043d\u044b\u0445 \u0432\u043e\u0438\u043d\u043e\u0432 CLI, \u043d\u043e \u0435\u0441\u0442\u044c \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b \u043f\u043e\u043b\u0443\u0447\u0448\u0435.<\/p>\n<h2>Postman<\/h2>\n<p>  Postman \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0432 \u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u043e\u043c \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0435 \u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0437\u0430\u043f\u0440\u043e\u0441\u044b, \u0432\u044b\u0431\u0438\u0440\u0430\u044f \u043c\u0435\u0442\u043e\u0434\u044b, \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0438, \u0442\u0435\u043b\u043e, \u0438 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u0442 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0432 \u0443\u0434\u043e\u0431\u043e\u0447\u0438\u0442\u0430\u0435\u043c\u043e\u043c \u0432\u0438\u0434\u0435. <br \/>  \u041a\u0440\u043e\u043c\u0435 \u0442\u043e\u0433\u043e \u0437\u0430\u043f\u0440\u043e\u0441\u044b \u0438 URI \u043c\u043e\u0436\u043d\u043e \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0442\u044c \u0438 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0442\u044c\u0441\u044f \u043a \u043d\u0438\u043c \u043f\u043e\u0437\u0436\u0435. <\/p>\n<p>  <a href=\"https:\/\/www.getpostman.com\/downloads\/\" rel=\"nofollow\">\u0421\u043a\u0430\u0447\u0430\u0442\u044c Postman \u043d\u0430 \u043e\u0444.\u0441\u0430\u0439\u0442\u0435<\/a>.<\/p>\n<p>  \u0422\u0430\u043a \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0441\u0434\u0435\u043b\u0430\u0442\u044c GET:<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/b00\/869\/169\/b00869169e3e64b427e224587da49e12.png\" width=\"800\"><br \/>  <i>\u0417\u0434\u0435\u0441\u044c \u0443\u043a\u0430\u0437\u0430\u043d Token \u0432 GET \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f \u043f\u0440\u0438\u043c\u0435\u0440\u0430.<\/i><\/p>\n<p>  \u0410 \u0442\u0430\u043a POST:<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/f1b\/91f\/655\/f1b91f655182e7780ee62d44e8e25ae9.png\" width=\"800\"><\/p>\n<p>  Postman \u0441\u043b\u0443\u0436\u0438\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 RESTful API.  <\/p>\n<blockquote><p> \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043d\u0435 \u043f\u044b\u0442\u0430\u0439\u0442\u0435\u0441\u044c \u0447\u0435\u0440\u0435\u0437 \u043d\u0435\u0433\u043e \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c NETCONF XML, \u043a\u0430\u043a \u044d\u0442\u043e \u0434\u0435\u043b\u0430\u043b \u044f \u043d\u0430 \u0437\u0430\u0440\u0435 \u0441\u0432\u043e\u0435\u0439 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u043a\u0430\u0440\u044c\u0435\u0440\u044b.  <\/p><\/blockquote>\n<p>  \u041e\u0434\u0438\u043d \u0438\u0437 \u043f\u0440\u0438\u044f\u0442\u043d\u044b\u0445 \u0431\u043e\u043d\u0443\u0441\u043e\u0432 \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e API \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0432 Postman \u0438\u043c\u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432\u0441\u0435 \u044d\u043d\u0434\u043f\u043e\u0438\u043d\u0442\u044b \u0438 \u0438\u0445 \u043c\u0435\u0442\u043e\u0434\u044b \u043a\u0430\u043a \u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u044e.<br \/>  \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0432 \u043e\u043a\u043d\u0435 <b>Import<\/b> (File-&gt;Import) \u0432\u044b\u0431\u0435\u0440\u0438\u0442\u0435 <b>Import From Link<\/b> \u0438 \u0432\u0441\u0442\u0430\u0432\u044c\u0442\u0435 \u0432 \u043e\u043a\u043d\u043e URL <a href=\"http:\/\/netbox.linkmeup.ru\" rel=\"nofollow\">netbox.linkmeup.ru<\/a>:45127\/api\/docs\/?format=openapi.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/f9f\/48e\/2d1\/f9f48e2d1923e88995301379e4888b6c.png\" width=\"400\"><\/p>\n<p>  \u0414\u0430\u043b\u0435\u0435, \u0432\u0441\u0451, \u0447\u0442\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u043c\u043e\u0436\u043d\u043e, \u0432\u044b \u043d\u0430\u0439\u0434\u0451\u0442\u0435 \u0432 \u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u044f\u0445.<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/eaa\/616\/c1a\/eaa616c1adfcfacbaf164ea95531fd4e.png\" width=\"200\">  <\/p>\n<hr>\n<h2>Python+requests<\/h2>\n<p>  \u041d\u043e \u0434\u0430\u0436\u0435 \u0447\u0435\u0440\u0435\u0437 Postman \u0432\u044b, \u0441\u043a\u043e\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043e, \u043d\u0435 \u0431\u0443\u0434\u0435\u0442\u0435 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0441\u0432\u043e\u0438\u043c\u0438 Production-\u0441\u0438\u0441\u0442\u0435\u043c\u0430\u043c\u0438. \u041d\u0430\u0432\u0435\u0440\u043d\u044f\u043a\u0430, \u0443 \u0432\u0430\u0441 \u0431\u0443\u0434\u0443\u0442 \u0432\u043d\u0435\u0448\u043d\u0438\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0437\u0430\u0445\u043e\u0442\u044f\u0442 \u0431\u0435\u0437 \u0432\u0430\u0448\u0435\u0433\u043e \u0443\u0447\u0430\u0441\u0442\u0438\u044f \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0441 \u043d\u0438\u043c\u0438.<br \/>  \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0437\u0430\u0445\u043e\u0447\u0435\u0442 \u0437\u0430\u0431\u0440\u0430\u0442\u044c \u0441\u043f\u0438\u0441\u043e\u043a IP-\u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043e\u0432 \u0438\u0437 NetBox. <br \/>  \u0412 Python \u0435\u0441\u0442\u044c \u0447\u0443\u0434\u0435\u0441\u043d\u0430\u044f \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 <b>requests<\/b>, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0443 \u0447\u0435\u0440\u0435\u0437 HTTP.<br \/>  \u041f\u0440\u0438\u043c\u0435\u0440 \u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u0441\u043f\u0438\u0441\u043a\u0430 \u0432\u0441\u0435\u0445 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432:<\/p>\n<pre><code class=\"python\">import requests  HEADERS = {'Content-Type': 'application\/json', 'Accept': 'application\/json'} NB_URL = &quot;http:\/\/netbox.linkmeup.ru:45127&quot;  request_url = f&quot;{NB_URL}\/api\/dcim\/devices\/&quot; devices = requests.get(request_url, headers = HEADERS) print(devices.json())<\/code><\/pre>\n<p>  \u0421\u043d\u043e\u0432\u0430 \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u043d\u043e\u0432\u043e\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e:  <\/p>\n<pre><code class=\"python\">import requests  API_TOKEN = &quot;a9aae70d65c928a554f9a038b9d4703a1583594f&quot; HEADERS = {'Authorization': f'Token {API_TOKEN}', 'Content-Type': 'application\/json', 'Accept': 'application\/json'} NB_URL = &quot;http:\/\/netbox.linkmeup.ru:45127&quot;  request_url = f&quot;{NB_URL}\/api\/dcim\/devices\/&quot;  device_parameters = {     &quot;name&quot;: &quot;just a simple REQUESTS girl&quot;,      &quot;device_type&quot;: 1,      &quot;device_role&quot;: 1,      &quot;site&quot;: 3,  } new_device = requests.post(request_url, headers = HEADERS, json=device_parameters) print(new_device.json())<\/code><\/pre>\n<p>  <\/p>\n<hr>\n<p>  <\/p>\n<h3>Python+NetBox SDK<\/h3>\n<p>  \u0412 \u0441\u043b\u0443\u0447\u0430\u0435 NetBox \u0435\u0441\u0442\u044c \u0442\u0430\u043a\u0436\u0435 Python SDK \u2014 <a href=\"https:\/\/github.com\/digitalocean\/pynetbox\" rel=\"nofollow\">Pynetbox<\/a>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0432\u0441\u0435 Endpoint&#8217;\u044b NetBox \u0432 \u0432\u0438\u0434\u0435 \u043e\u0431\u044a\u0435\u043a\u0442\u0430 \u0438 \u0435\u0433\u043e \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u043e\u0432, \u0434\u0435\u043b\u0430\u044f \u0437\u0430 \u0432\u0430\u0441 \u0432\u0441\u044e \u0433\u0440\u044f\u0437\u043d\u0443\u044e \u0440\u0430\u0431\u043e\u0442\u0443 \u043f\u043e \u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044e URI \u0438 \u043f\u0430\u0440\u0441\u0438\u043d\u0433\u0443 \u043e\u0442\u0432\u0435\u0442\u0430, \u0445\u043e\u0442\u044f \u0438 \u043d\u0435 \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e, \u043a\u043e\u043d\u0435\u0447\u043d\u043e.<\/p>\n<p>  \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0441\u0434\u0435\u043b\u0430\u0435\u043c \u0442\u043e \u0436\u0435, \u0447\u0442\u043e \u0438 \u0432\u044b\u0448\u0435, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e pynetbox.<br \/>  \u0421\u043f\u0438\u0441\u043e\u043a \u0432\u0441\u0435\u0445 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432:  <\/p>\n<pre><code class=\"python\">import pynetbox  NB_URL = &quot;http:\/\/netbox.linkmeup.ru:45127&quot; nb = pynetbox.api(NB_URL)  devices = nb.dcim.devices.all() print(devices)<\/code><\/pre>\n<p>  \u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043d\u043e\u0432\u043e\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e:  <\/p>\n<pre><code class=\"python\">import pynetbox  API_TOKEN = &quot;a9aae70d65c928a554f9a038b9d4703a1583594f&quot; NB_URL = &quot;http:\/\/netbox.linkmeup.ru:45127&quot; nb = pynetbox.api(NB_URL, token = API_TOKEN)  device_parameters = {     &quot;name&quot;: &quot;just a simple PYNETBOX girl&quot;,      &quot;device_type&quot;: 1,      &quot;device_role&quot;: 1,      &quot;site&quot;: 3,  } new_device = nb.dcim.devices.create(**device_parameters) print(new_device)<\/code><\/pre>\n<p>  <a href=\"https:\/\/pynetbox.readthedocs.io\/en\/latest\/\" rel=\"nofollow\">\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f \u043f\u043e Pynetbox<\/a>.  <\/p>\n<hr>\n<p>  <\/p>\n<h2>SWAGGER<\/h2>\n<p>  \u0417\u0430 \u0447\u0442\u043e \u0435\u0449\u0451 \u0441\u0442\u043e\u0438\u0442 \u043f\u043e\u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u0438\u0442\u044c \u0443\u0448\u0435\u0434\u0448\u0435\u0435 \u0434\u0435\u0441\u044f\u0442\u0438\u043b\u0435\u0442\u0438\u0435, \u0442\u0430\u043a \u044d\u0442\u043e \u0437\u0430 \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 API. \u0415\u0441\u043b\u0438 \u0432\u044b \u043f\u0435\u0440\u0435\u0439\u0434\u0451\u0442\u0435 \u043f\u043e <a href=\"http:\/\/netbox.linkmeup.ru:45127\/api\/docs\/\" rel=\"nofollow\">\u044d\u0442\u043e\u043c\u0443 \u043f\u0443\u0442\u0438<\/a>, \u0442\u043e \u043f\u043e\u043f\u0430\u0434\u0451\u0442\u0435 \u0432 Swagger UI \u2014 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044e \u043f\u043e API Netbox.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/c5c\/ec6\/1db\/c5cec61db67db108cc2fce2ba0492d3b.png\" width=\"800\"><\/p>\n<p>  \u041d\u0430 \u044d\u0442\u043e\u0439 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 \u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u0435\u043d\u044b \u0432\u0441\u0435 Endpoint&#8217;\u044b, \u043c\u0435\u0442\u043e\u0434\u044b \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u043d\u0438\u043c\u0438, \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0438 \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u044b \u0438 \u0443\u043a\u0430\u0437\u0430\u043d\u043e, \u043a\u0430\u043a\u0438\u0435 \u0438\u0437 \u043d\u0438\u0445 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u044b. \u041a\u0440\u043e\u043c\u0435 \u0442\u043e\u0433\u043e \u043e\u043f\u0438\u0441\u0430\u043d\u044b \u043e\u0436\u0438\u0434\u0430\u0435\u043c\u044b\u0435 \u043e\u0442\u0432\u0435\u0442\u044b. <\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/4bc\/886\/8e6\/4bc8868e6cfae94427e648abd0a1cd7b.png\" width=\"800\"><\/p>\n<p>  \u041d\u0430 \u044d\u0442\u043e\u0439 \u0436\u0435 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 \u043c\u043e\u0436\u043d\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c \u0438\u043d\u0442\u0435\u0440\u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0435 \u0437\u0430\u043f\u0440\u043e\u0441\u044b, \u043a\u043b\u0438\u043a\u043d\u0443\u0432 \u043d\u0430 <b>Try it out<\/b>.<\/p>\n<blockquote><p>\u041f\u043e \u043a\u0430\u043a\u043e\u0439-\u043e\u0442 \u043f\u0440\u0438\u0447\u0438\u043d\u0435 swagger \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 Base URL \u0431\u0435\u0440\u0451\u0442 \u0438\u043c\u044f \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0431\u0435\u0437 \u043f\u043e\u0440\u0442\u0430, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0444\u0443\u043d\u043a\u0446\u0438\u044f Try it out \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0432 \u043c\u043e\u0438\u0445 \u043f\u0440\u0438\u043c\u0435\u0440\u0430\u0445 \u0441\u043e Swagger&#8217;\u043e\u043c. \u041d\u043e \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u044d\u0442\u043e \u043d\u0430 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0439 \u0438\u043d\u0441\u0442\u0430\u043b\u043b\u044f\u0446\u0438\u0438.  <\/p><\/blockquote>\n<p>  \u041f\u0440\u0438 \u043d\u0430\u0436\u0430\u0442\u0438\u0438 \u043d\u0430 <b>Execute<\/b> Swagger UI \u0441\u0444\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u0442 \u0441\u0442\u0440\u043e\u043a\u0443 curl, \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043c\u043e\u0436\u043d\u043e \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u044b\u0439 \u0437\u0430\u043f\u0440\u043e\u0441 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0438\u0437 \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438.<\/p>\n<p>  \u0412 Swagger UI \u043c\u043e\u0436\u043d\u043e \u0434\u0430\u0436\u0435 \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043e\u0431\u044a\u0435\u043a\u0442:<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/47b\/311\/74f\/47b31174f7b1b8564b2aadea91db89bb.png\" width=\"800\"><\/p>\n<p>  \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0431\u044b\u0442\u044c \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u044b\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u043c, \u043e\u0431\u043b\u0430\u0434\u0430\u044e\u0449\u0438\u043c \u043d\u0443\u0436\u043d\u044b\u043c\u0438 \u043f\u0440\u0430\u0432\u0430\u043c\u0438.<\/p>\n<p>  \u0422\u043e, \u0447\u0442\u043e \u043c\u044b \u0432\u0438\u0434\u0438\u043c \u043d\u0430 \u044d\u0442\u043e\u0439 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 \u2014 \u044d\u0442\u043e Swagger UI \u2014 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f, \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u0430\u044f \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 API.<\/p>\n<p>  \u0421 \u0442\u0440\u0435\u043d\u0434\u0430\u043c\u0438 \u043d\u0430 \u043c\u0438\u043a\u0440\u043e\u0441\u0435\u0440\u0432\u0438\u0441\u043d\u0443\u044e \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0443 \u0432\u0441\u0451 \u0431\u043e\u043b\u0435\u0435 \u0432\u0430\u0436\u043d\u044b\u043c \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u0438\u043c\u0435\u0442\u044c \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 API \u0434\u043b\u044f \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u043c\u0435\u0436\u0434\u0443 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430\u043c\u0438, \u044d\u043d\u0434\u043f\u043e\u0438\u043d\u0442\u044b \u0438 \u043c\u0435\u0442\u043e\u0434\u044b \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043b\u0435\u0433\u043a\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u043a\u0430\u043a \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u0443, \u0442\u0430\u043a \u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044e, \u043d\u0435 \u0440\u043e\u044f\u0441\u044c \u0432 \u0438\u0441\u0445\u043e\u0434\u043d\u043e\u043c \u043a\u043e\u0434\u0435 \u0438\u043b\u0438 PDF-\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438.<br \/>  \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u0441\u0435\u0433\u043e\u0434\u043d\u044f \u0432\u0441\u0451 \u0447\u0430\u0449\u0435 \u0441\u043b\u0435\u0434\u0443\u044e\u0442 \u043f\u0430\u0440\u0430\u0434\u0438\u0433\u043c\u0435 <a href=\"https:\/\/medium.com\/adobetech\/three-principles-of-api-first-design-fa6666d9f694\" rel=\"nofollow\">API First<\/a>, \u043a\u043e\u0433\u0434\u0430 \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u0437\u0430\u0434\u0443\u043c\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u043e\u0431 API, \u0430 \u0443\u0436\u0435 \u043f\u043e\u0442\u043e\u043c \u043e \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438. <br \/>  \u0412 \u044d\u0442\u043e\u043c \u0434\u0438\u0437\u0430\u0439\u043d\u0435 \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u0446\u0438\u0440\u0443\u0435\u0442\u0441\u044f API, \u0430 \u0437\u0430\u0442\u0435\u043c \u0438\u0437 \u043d\u0435\u0433\u043e <b>\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u044e\u0442\u0441\u044f<\/b> \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f, \u043a\u043b\u0438\u0435\u043d\u0442\u0441\u043a\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435, \u0441\u0435\u0440\u0432\u0435\u0440\u043d\u0430\u044f \u0447\u0430\u0441\u0442\u044c \u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b \u0442\u0435\u0441\u0442\u044b.<\/p>\n<p>  Swagger \u2014 \u044d\u0442\u043e \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a \u0438 \u044f\u0437\u044b\u043a \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 (\u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u044b\u043d\u0435 \u043f\u0435\u0440\u0435\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d \u0432 OpenAPI 2.0), \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0449\u0438\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u044d\u0442\u0443 \u0437\u0430\u0434\u0430\u0447\u0443.<br \/>  \u0423\u0433\u043b\u0443\u0431\u043b\u044f\u0442\u044c\u0441\u044f \u0432 \u043d\u0435\u0433\u043e \u044f \u043d\u0435 \u0431\u0443\u0434\u0443. <\/p>\n<p>  \u0417\u0430 \u0431\u043e\u0301\u043b\u044c\u0448\u0438\u043c\u0438 \u0434\u0435\u0442\u0430\u043b\u044f\u043c\u0438 \u0441\u044e\u0434\u0430:<\/p>\n<ul>\n<li><a href=\"https:\/\/swagger.io\/docs\/specification\/\" rel=\"nofollow\">\u0421\u0430\u0439\u0442 Swagger<\/a><\/li>\n<li><a href=\"https:\/\/justcodeit.ru\/swagger-docs-dlya-api-na-laravel\/\" rel=\"nofollow\">\u041f\u0440\u0438\u043c\u0435\u0440 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f<\/a><\/li>\n<li><a href=\"https:\/\/en.wikipedia.org\/wiki\/OpenAPI_Specification\" rel=\"nofollow\">Wiki \u043f\u0440\u043eOpen API<\/a><\/li>\n<\/ul>\n<hr>\n<p>  <\/p>\n<h1>\u041a\u0440\u0438\u0442\u0438\u043a\u0430 REST \u0438 \u0430\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u044b<\/h1>\n<p>  \u0421\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u0438 \u0442\u0430\u043a\u0430\u044f, \u0434\u0430. \u041d\u0435 \u0432\u0441\u0451 \u0432 \u0442\u043e\u043c \u043c\u0438\u0440\u0435 2000-\u0433\u043e \u0433\u043e\u0434\u0430 \u0442\u0430\u043a \u0443\u0436\u0435 \u0440\u0430\u0434\u0443\u0436\u043d\u043e.<br \/>  \u041d\u0435 \u044f\u0432\u043b\u044f\u044f\u0441\u044c \u044d\u043a\u0441\u043f\u0435\u0440\u0442\u043e\u043c, \u043d\u0435 \u0431\u0435\u0440\u0443\u0441\u044c \u043f\u0440\u0435\u0434\u043c\u0435\u0442\u043d\u043e \u0440\u0430\u0441\u043a\u0440\u044b\u0432\u0430\u0442\u044c \u0432\u043e\u043f\u0440\u043e\u0441, \u043d\u043e \u0434\u0430\u043c \u0441\u0441\u044b\u043b\u043a\u0443 \u043d\u0430 \u043d\u0435\u0431\u0435\u0441\u0441\u043f\u043e\u0440\u043d\u0443\u044e <a href=\"https:\/\/habr.com\/ru\/post\/265845\/\">\u0441\u0442\u0430\u0442\u044c\u044e \u043d\u0430 \u0445\u0430\u0431\u0440\u0435<\/a>.<br \/>  \u0410\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u043d\u044b\u043c \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043e\u043c \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0441\u0435\u0433\u043e\u0434\u043d\u044f \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f gRPC. \u0415\u043c\u0443 \u0436\u0435 \u043f\u0440\u043e\u0440\u043e\u0447\u0430\u0442 \u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u0431\u0443\u0434\u0443\u0449\u0435\u0435 \u043d\u0430 \u043d\u0438\u0432\u0435 \u043d\u043e\u0432\u044b\u0445 \u043f\u043e\u0434\u0445\u043e\u0434\u043e\u0432 \u043a \u0440\u0430\u0431\u043e\u0442\u0435 \u0441 \u0441\u0435\u0442\u0435\u0432\u044b\u043c \u043e\u0431\u043e\u0440\u0443\u0434\u043e\u0432\u0430\u043d\u0438\u0435\u043c. \u041d\u043e \u043e \u043d\u0451\u043c \u043c\u044b \u043f\u043e\u0433\u043e\u0432\u043e\u0440\u0438\u043c \u043a\u043e\u0433\u0434\u0430-\u0442\u043e \u0432 \u0431\u0443\u0434\u0443\u0449\u0435\u043c, \u043a\u043e\u0433\u0434\u0430 \u043f\u0440\u0438\u0434\u0451\u0442 \u0435\u0433\u043e \u0447\u0435\u0440\u0451\u0434.<\/p>\n<p>  \u041c\u043e\u0436\u043d\u043e \u0442\u0430\u043a\u0436\u0435 \u0432\u0437\u0433\u043b\u044f\u043d\u0443\u0442\u044c \u043d\u0430 \u043c\u043d\u043e\u0433\u043e\u043e\u0431\u0435\u0449\u0430\u044e\u0449\u0438\u0439 <a href=\"https:\/\/habr.com\/ru\/post\/326986\/\">GraphQL<\/a>, \u043d\u043e \u043d\u0430\u043c \u043e\u043f\u044f\u0442\u044c \u0436\u0435 \u043d\u0435\u0442 \u043d\u0443\u0436\u0434\u044b \u0441 \u043d\u0438\u043c \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043f\u043e\u043a\u0430, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043e\u0441\u0442\u0430\u0451\u0442\u0441\u044f \u043d\u0430 \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u0438\u0437\u0443\u0447\u0435\u043d\u0438\u0435.<\/p>\n<hr>\n<p>  <\/p>\n<blockquote><p> <b>\u0412\u0430\u0436\u043d\u043e<\/b><br \/>   \u0422\u043e\u043a\u0435\u043d a9aae70d65c928a554f9a038b9d4703a1583594f \u0431\u044b\u043b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0445 \u0446\u0435\u043b\u044f\u0445 \u0438 \u0431\u043e\u043b\u044c\u0448\u0435 \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442.<br \/>   \u041f\u0440\u044f\u043c\u043e\u0435 \u0443\u043a\u0430\u0437\u0430\u043d\u0438\u0435 \u0442\u043e\u043a\u0435\u043d\u043e\u0432 \u0432 \u043a\u043e\u0434\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u043d\u0435\u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u043e \u0438 \u0441\u0434\u0435\u043b\u0430\u043d\u043e \u0437\u0434\u0435\u0441\u044c \u043c\u043d\u043e\u0439 \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0430\u0445 \u0443\u043f\u0440\u043e\u0449\u0435\u043d\u0438\u044f \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u0432.  <\/p><\/blockquote>\n<p>  <\/p>\n<hr>\n<p>  <\/p>\n<h1>\u041f\u043e\u043b\u0435\u0437\u043d\u044b\u0435 \u0441\u0441\u044b\u043b\u043a\u0438<\/h1>\n<p>  <\/p>\n<ul>\n<li><a href=\"https:\/\/www.ics.uci.edu\/~fielding\/pubs\/dissertation\/rest_arch_style.htm\" rel=\"nofollow\">\u0418\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u044b\u0439 \u0434\u043e\u043a\u043b\u0430\u0434 \u0420\u043e\u044f \u0424\u0438\u043b\u0434\u0438\u043d\u0433\u0430<\/a><\/li>\n<li><a href=\"https:\/\/medium.com\/adobetech\/three-principles-of-api-first-design-fa6666d9f694\" rel=\"nofollow\">API First<\/a><\/li>\n<li><a href=\"https:\/\/restfulapi.net\/http-methods\/\" rel=\"nofollow\">HTTP-\u043c\u0435\u0442\u043e\u0434\u044b<\/a><\/li>\n<li><a href=\"https:\/\/restfulapi.net\/rest-architectural-constraints\/\" rel=\"nofollow\">\u041f\u0440\u0438\u043d\u0446\u0438\u043f\u044b REST<\/a><\/li>\n<li><a href=\"https:\/\/swagger.io\/docs\/specification\/\" rel=\"nofollow\">\u0421\u0430\u0439\u0442 Swagger<\/a><\/li>\n<li><a href=\"https:\/\/justcodeit.ru\/swagger-docs-dlya-api-na-laravel\/\" rel=\"nofollow\">\u041f\u0440\u0438\u043c\u0435\u0440 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f Swagger<\/a><\/li>\n<li><a href=\"https:\/\/en.wikipedia.org\/wiki\/OpenAPI_Specification\" rel=\"nofollow\">Wiki \u043f\u0440\u043e OpenAPI<\/a><\/li>\n<li><a href=\"https:\/\/habr.com\/ru\/post\/265845\/\">\u041a\u0440\u0438\u0442\u0438\u043a\u0430 REST<\/a><\/li>\n<\/ul>\n<h1>\u0421\u043f\u0430\u0441\u0438\u0431\u044b<\/h1>\n<p>  <\/p>\n<ul>\n<li>\u0410\u043d\u0434\u0440\u0435\u044e \u041f\u0430\u043d\u0444\u0438\u043b\u043e\u0432\u0443 \u0437\u0430 \u0432\u044b\u0447\u0438\u0442\u043a\u0443 \u0438 \u043f\u0440\u0430\u0432\u043a\u0438<\/li>\n<li>\u0410\u043b\u0435\u043a\u0441\u0430\u043d\u0434\u0440\u0443 \u0424\u0430\u0442\u0438\u043d\u0443 \u0437\u0430 \u0432\u044b\u0447\u0438\u0442\u043a\u0443 \u0438 \u043f\u0440\u0430\u0432\u043a\u0438<\/li>\n<\/ul>\n<\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/485618\/\"> https:\/\/habr.com\/ru\/post\/485618\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text-html\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/post\/485618\/\">\u042d\u0442\u0430 \u0441\u0442\u0430\u0442\u044c\u044f \u2014 \u043e\u0434\u043d\u0430 \u0438\u0437 \u043e\u0431\u0435\u0449\u0430\u043d\u043d\u044b\u0445 \u043a\u043e\u0440\u043e\u0442\u043a\u0438\u0445 \u0437\u0430\u043c\u0435\u0442\u043e\u043a \u043f\u043e \u0445\u043e\u0434\u0443 \u0446\u0438\u043a\u043b\u0430 \u0441\u0442\u0430\u0442\u0435\u0439 <a href=\"https:\/\/habr.com\/ru\/search\/?q=%5B%D0%B0%D0%B2%D1%82%D0%BE%D0%BC%D0%B0%D1%82%D0%B8%D0%B7%D0%B0%D1%86%D0%B8%D1%8F%20%D0%B4%D0%BB%D1%8F%20%D1%81%D0%B0%D0%BC%D1%8B%D1%85%20%D0%BC%D0%B0%D0%BB%D0%B5%D0%BD%D1%8C%D0%BA%D0%B8%D1%85%5D&amp;target_type=posts\">\u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u044f \u0414\u043b\u044f \u0421\u0430\u043c\u044b\u0445 \u041c\u0430\u043b\u0435\u043d\u044c\u043a\u0438\u0445<\/a>.<br \/>  \u041f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u043c \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u043c \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0441 IPAM-\u0441\u0438\u0441\u0442\u0435\u043c\u043e\u0439 \u0431\u0443\u0434\u0435\u0442 RESTful API, \u044f \u0440\u0435\u0448\u0438\u043b \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u0442\u044c \u043e \u043d\u0451\u043c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e. <\/p>\n<hr>\n<p>  \u0412\u043e\u0437\u0434\u0430\u044e \u0445\u0432\u0430\u043b\u044b \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u043e\u0440\u0430\u043c \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0433\u043e \u043c\u0438\u0440\u0430 \u2014 \u0443 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u044b. \u0414\u0430 \u0438\u0445 \u043c\u043d\u043e\u0433\u043e \u2014 \u044d\u0442\u043e \u043c\u0438\u043d\u0443\u0441, \u043d\u043e \u043e\u043d\u0438 \u0435\u0441\u0442\u044c \u2014 \u044d\u0442\u043e \u043f\u043b\u044e\u0441.<\/p>\n<p>  \u042d\u0442\u0438 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u044b \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u043e\u0431\u0440\u0435\u043b\u0438 \u0438\u043c\u044f API \u2014 Application Programming Interface.<\/p>\n<p>  \u041e\u0434\u043d\u0438\u043c \u0438\u0437 \u0442\u0430\u043a\u0438\u0445 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043e\u0432 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f RESTful API, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 NetBox.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/639\/c1e\/e86\/639c1ee8692aed286b99deeb01796e89.svg\" width=\"800\"><\/p>\n<p>  \u0415\u0441\u043b\u0438 \u043e\u0447\u0435\u043d\u044c \u043f\u0440\u043e\u0441\u0442\u043e, \u0442\u043e API \u0434\u0430\u0451\u0442 \u043a\u043b\u0438\u0435\u043d\u0442\u0443 \u043d\u0430\u0431\u043e\u0440 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u0432, \u0447\u0435\u0440\u0435\u0437 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0442\u043e\u0442 \u043c\u043e\u0436\u0435\u0442 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u043c. \u0410 \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u043c \u043c\u043e\u0436\u0435\u0442 \u0432\u044b\u0441\u0442\u0443\u043f\u0430\u0442\u044c \u043f\u043e \u0441\u0443\u0442\u0438 \u0447\u0442\u043e \u0443\u0433\u043e\u0434\u043d\u043e: \u0432\u0435\u0431-\u0431\u0440\u0430\u0443\u0437\u0435\u0440, \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u0430\u044f \u043a\u043e\u043d\u0441\u043e\u043b\u044c, \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0430\u043d\u043d\u043e\u0435 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u0435\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435, \u0438\u043b\u0438 \u0432\u043e\u043e\u0431\u0449\u0435 \u043b\u044e\u0431\u043e\u0435 \u0434\u0440\u0443\u0433\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435, \u0443 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0435\u0441\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f \u043a API.<\/p>\n<p>  \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 NetBox, \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043d\u043e\u0432\u043e\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u0432 \u043d\u0435\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c\u0438 \u0441\u043f\u043e\u0441\u043e\u0431\u0430\u043c\u0438: \u0447\u0435\u0440\u0435\u0437 \u0432\u0435\u0431-\u0431\u0440\u0430\u0443\u0437\u0435\u0440, \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0432 curl&#8217;\u043e\u043c \u0437\u0430\u043f\u0440\u043e\u0441 \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u0438, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c Postman, \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u044c\u0441\u044f \u043a \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0435 requests \u0432 \u043f\u0438\u0442\u043e\u043d\u0435, \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f SDK pynetbox \u0438\u043b\u0438 \u043f\u0435\u0440\u0435\u0439\u0442\u0438 \u0432 Swagger.<\/p>\n<p>  \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u043e\u0434\u0438\u043d \u0440\u0430\u0437 \u043d\u0430\u043f\u0438\u0441\u0430\u0432 \u0435\u0434\u0438\u043d\u044b\u0439 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441, \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c \u043d\u0430\u0432\u0441\u0435\u0433\u0434\u0430 \u043e\u0441\u0432\u043e\u0431\u043e\u0436\u0434\u0430\u0435\u0442 \u0441\u0435\u0431\u044f \u043e\u0442 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u0441 \u043a\u0430\u0436\u0434\u044b\u043c \u043d\u043e\u0432\u044b\u043c \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u043c \u0434\u043e\u0433\u043e\u0432\u0430\u0440\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u043a\u0430\u043a \u0435\u0433\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0442\u044c (\u0445\u043e\u0442\u044f, \u044d\u0442\u043e \u0441\u0430\u043c\u0443\u044e \u043c\u0430\u043b\u043e\u0441\u0442\u044c \u043b\u0443\u043a\u0430\u0432\u0441\u0442\u0432\u043e).<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-297727","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/297727","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=297727"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/297727\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=297727"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=297727"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=297727"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}