{"id":88,"date":"2024-07-30T11:00:37","date_gmt":"2024-07-30T08:00:37","guid":{"rendered":"https:\/\/blog.stefchev.com\/?p=88"},"modified":"2024-07-30T11:00:37","modified_gmt":"2024-07-30T08:00:37","slug":"xml-%d0%be%d1%82%d0%b3%d0%be%d0%b2%d0%be%d1%80-%d0%be%d1%82-spring-rest-api","status":"publish","type":"post","link":"https:\/\/blog.stefchev.com\/?p=88","title":{"rendered":"XML \u043e\u0442\u0433\u043e\u0432\u043e\u0440 \u043e\u0442 Spring Rest Api"},"content":{"rendered":"<p>\u041f\u043e \u043f\u043e\u0434\u0440\u0430\u0437\u0431\u0438\u0440\u0430\u043d\u0435 \u0432\u0441\u044f\u043a\u043e Rest Web Api \u043f\u0438\u0441\u0430\u043d\u043e \u0441\u044a\u0441 Spring \u043d\u0438 \u0432\u0440\u044a\u0449\u0430 \u043e\u0442\u0433\u043e\u0432\u043e\u0440 \u043f\u043e\u0434 \u0444\u043e\u0440\u043c\u0430\u0442\u0430 \u043d\u0430 JSON \u0444\u043e\u0440\u043c\u0430\u0442 \u0438 \u0442\u043e\u0432\u0430 \u0435 \u0441\u044a\u0432\u0441\u0435\u043c \u043f\u0440\u0430\u0432\u0438\u043b\u043d\u043e \u043a\u0430\u0442\u043e \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442. \u041f\u043e\u043d\u044f\u043a\u043e\u0433\u0430 \u043e\u0431\u0430\u0447\u0435 \u0435 \u043d\u0430\u043b\u043e\u0436\u0438\u0442\u0435\u043b\u043d\u043e \u043d\u0430\u0448\u0438\u0442\u0435 \u043e\u0442\u0433\u043e\u0432\u043e\u0440\u0438 \u0434\u0430 \u0441\u0435 \u0432\u0440\u044a\u0449\u0430\u0442 \u0432\u044a\u0432 \u0444\u043e\u0440\u043c\u0430\u0442 XML. \u041a\u0430\u043a \u043c\u043e\u0436\u0435 \u0434\u0430 \u0441\u0442\u0430\u043d\u0435 \u0442\u043e\u0432\u0430?<br \/>\n\u0417\u0430 \u0446\u0435\u043b\u0442\u0430 \u0442\u0440\u044f\u0431\u0432\u0430 \u0434\u0430 \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u0441\u043b\u0435\u0434\u043d\u0430\u0442\u0430 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442 \u043a\u044a\u043c \u043d\u0430\u0448\u0438\u044f\u0442 pom \u0444\u0430\u0439\u043b.<\/p>\n<p>&lt;dependency&gt;<br \/>\n&lt;groupId&gt;com.fasterxml.jackson.dataformat&lt;\/groupId&gt;<br \/>\n&lt;artifactId&gt;jackson-dataformat-xml&lt;\/artifactId&gt;<br \/>\n&lt;version&gt;2.17.2&lt;\/version&gt;<br \/>\n&lt;\/dependency&gt;<\/p>\n<p>\u0421\u043b\u0435\u0434 \u043a\u043e\u0435\u0442\u043e \u0437\u0430 \u0434\u0430 \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u0436\u0435\u043b\u0430\u043d\u0438\u044f \u043e\u0442\u0433\u043e\u0432\u043e\u0440, \u0442\u0440\u044f\u0431\u0432\u0430 \u0434\u0430 \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u0441\u043b\u0435\u0434\u043d\u0438\u044f\u0442 \u0445\u0435\u0434\u044a\u0440 \u043a\u044a\u043c \u043d\u0430\u0448\u0430\u0442\u0430 \u0437\u0430\u044f\u0432\u043a\u0430:<\/p>\n<p>Accept : application\/xml<br \/>\nContent-Type : application\/xml<\/p>\n<p>&lt;version&gt;2.17.2&lt;\/version&gt; &#8211; \u0432\u0435\u0440\u0441\u0438\u0438\u0442\u0435 \u0447\u0435\u0441\u0442\u043e \u0441\u0435 \u043e\u0431\u043d\u043e\u0432\u044f\u0432\u0430\u0442, \u0442\u0430\u043a\u0430, \u0447\u0435 \u043a\u043e\u0433\u0430\u0442\u043e \u0447\u0435\u0442\u0435\u0442\u0435 \u0442\u0430\u0437\u0438 \u0441\u0442\u0430\u0442\u0438\u044f \u0449\u0435 \u0442\u0440\u044f\u0431\u0432\u0430 \u0434\u0430 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u0435 \u0437\u0430 \u043f\u043e \u043d\u043e\u0432\u0430 \u0432\u0435\u0440\u0441\u0438\u044f.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u041f\u043e \u043f\u043e\u0434\u0440\u0430\u0437\u0431\u0438\u0440\u0430\u043d\u0435 \u0432\u0441\u044f\u043a\u043e Rest Web Api \u043f\u0438\u0441\u0430\u043d\u043e \u0441\u044a\u0441 Spring \u043d\u0438 \u0432\u0440\u044a\u0449\u0430 \u043e\u0442\u0433\u043e\u0432\u043e\u0440 \u043f\u043e\u0434 \u0444\u043e\u0440\u043c\u0430\u0442\u0430 \u043d\u0430 JSON \u0444\u043e\u0440\u043c\u0430\u0442 \u0438 \u0442\u043e\u0432\u0430 \u0435 \u0441\u044a\u0432\u0441\u0435\u043c \u043f\u0440\u0430\u0432\u0438\u043b\u043d\u043e \u043a\u0430\u0442\u043e \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442. \u041f\u043e\u043d\u044f\u043a\u043e\u0433\u0430 \u043e\u0431\u0430\u0447\u0435 \u0435 \u043d\u0430\u043b\u043e\u0436\u0438\u0442\u0435\u043b\u043d\u043e \u043d\u0430\u0448\u0438\u0442\u0435 \u043e\u0442\u0433\u043e\u0432\u043e\u0440\u0438 \u0434\u0430 \u0441\u0435 \u0432\u0440\u044a\u0449\u0430\u0442 \u0432\u044a\u0432 \u0444\u043e\u0440\u043c\u0430\u0442 XML. \u041a\u0430\u043a \u043c\u043e\u0436\u0435 \u0434\u0430 \u0441\u0442\u0430\u043d\u0435 \u0442\u043e\u0432\u0430? \u0417\u0430 \u0446\u0435\u043b\u0442\u0430 \u0442\u0440\u044f\u0431\u0432\u0430 \u0434\u0430 \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u0441\u043b\u0435\u0434\u043d\u0430\u0442\u0430 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442 \u043a\u044a\u043c \u043d\u0430\u0448\u0438\u044f\u0442 pom \u0444\u0430\u0439\u043b. &lt;dependency&gt; &lt;groupId&gt;com.fasterxml.jackson.dataformat&lt;\/groupId&gt; &lt;artifactId&gt;jackson-dataformat-xml&lt;\/artifactId&gt; &#8230; <a title=\"XML \u043e\u0442\u0433\u043e\u0432\u043e\u0440 \u043e\u0442 Spring Rest Api\" class=\"read-more\" href=\"https:\/\/blog.stefchev.com\/?p=88\" aria-label=\"Read more about XML \u043e\u0442\u0433\u043e\u0432\u043e\u0440 \u043e\u0442 Spring Rest Api\">\u041f\u0440\u043e\u0434\u044a\u043b\u0436\u0435\u043d\u0438\u0435<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-88","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/blog.stefchev.com\/index.php?rest_route=\/wp\/v2\/posts\/88","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.stefchev.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.stefchev.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.stefchev.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.stefchev.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=88"}],"version-history":[{"count":2,"href":"https:\/\/blog.stefchev.com\/index.php?rest_route=\/wp\/v2\/posts\/88\/revisions"}],"predecessor-version":[{"id":90,"href":"https:\/\/blog.stefchev.com\/index.php?rest_route=\/wp\/v2\/posts\/88\/revisions\/90"}],"wp:attachment":[{"href":"https:\/\/blog.stefchev.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=88"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.stefchev.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=88"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.stefchev.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=88"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}