{"id":49,"date":"2024-12-04T22:07:10","date_gmt":"2024-12-04T22:07:10","guid":{"rendered":"https:\/\/anderlini.com\/?p=49"},"modified":"2024-12-04T22:07:10","modified_gmt":"2024-12-04T22:07:10","slug":"installazione-swagger-per-linterrogazione-di-endpoint-api-in-progetti-asp-net-api","status":"publish","type":"post","link":"https:\/\/anderlini.com\/?p=49","title":{"rendered":"Installazione Swagger per l&#8217;interrogazione di endpoint Api in progetti Asp.Net Api"},"content":{"rendered":"\n<p>Premessa importante. Quello che leggerete non \u00e8 altro che una serie di appunti per mio uso. Non hanno certo la pretesa di essere completi e\/o particolarmente corretti nel senso che possono essere pieni di errori. Se comunque potranno essere utili a qualcuno tanto meglio.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>Per installare Swagger in un progetto Asp.Net Web Api in modo tale da poter poi &#8220;interrogare&#8221; direttamente gli endpoint senza bisogno d&#8217;altro occorre installare i seguenti NuGet<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\"Swashbuckle.AspNetCore.Swagger\"\n\"Swashbuckle.AspNetCore.SwaggerGen\"\n\"Swashbuckle.AspNetCore.SwaggerUI\"<\/code><\/pre>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Premessa importante. Quello che leggerete non \u00e8 altro che una serie di appunti per mio uso. Non hanno certo la pretesa di essere completi e\/o particolarmente corretti nel senso che possono essere pieni di errori. Se comunque potranno essere utili a qualcuno tanto meglio. Per installare Swagger in un progetto Asp.Net Web Api in modo [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[8,7],"class_list":["post-49","post","type-post","status-publish","format-standard","hentry","category-programmazione","tag-asp-net","tag-visual-studio"],"_links":{"self":[{"href":"https:\/\/anderlini.com\/index.php?rest_route=\/wp\/v2\/posts\/49","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/anderlini.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/anderlini.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/anderlini.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/anderlini.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=49"}],"version-history":[{"count":1,"href":"https:\/\/anderlini.com\/index.php?rest_route=\/wp\/v2\/posts\/49\/revisions"}],"predecessor-version":[{"id":50,"href":"https:\/\/anderlini.com\/index.php?rest_route=\/wp\/v2\/posts\/49\/revisions\/50"}],"wp:attachment":[{"href":"https:\/\/anderlini.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=49"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/anderlini.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=49"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/anderlini.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=49"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}