<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Swagger on Yunier&#39;s Wiki</title>
    <link>http://localhost:1313/tags/swagger/</link>
    <description>Recent content in Swagger on Yunier&#39;s Wiki</description>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate>Thu, 18 May 2023 00:00:00 +0000</lastBuildDate>
    <atom:link href="http://localhost:1313/tags/swagger/rss" rel="self" type="application/rss+xml" />
    <item>
      <title>Use Custom OpenAPI Specification File In .NET</title>
      <link>http://localhost:1313/post/2023/use-custom-openapi-specification-file-in-.net/</link>
      <pubDate>Thu, 18 May 2023 00:00:00 +0000</pubDate>
      <guid>http://localhost:1313/post/2023/use-custom-openapi-specification-file-in-.net/</guid>
      <description>&lt;p&gt;.NET has the ability to auto-generated &lt;a href=&#34;https://swagger.io/specification/&#34;&gt;OpenAPI specifications&lt;/a&gt; based on your code. You can use different decorators on your code like &lt;a href=&#34;https://learn.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.mvc.producesresponsetypeattribute?view=aspnetcore-7.0&#34;&gt;ProducesResponseTypeAttribute&lt;/a&gt; or &lt;a href=&#34;https://learn.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.mvc.consumesattribute?view=aspnetcore-7.0&#34;&gt;ConsumesAttribute&lt;/a&gt; to produce more descriptive response details for web API help pages generated by tools like Swagger.&lt;/p&gt;&#xA;&lt;p&gt;What if you didn&amp;rsquo;t want to use the autogenerated spec, what if you instead wanted to expose an already written spec, perhaps because you follow an &lt;a href=&#34;https://blog.postman.com/what-is-api-first-design/&#34;&gt;API-first&lt;/a&gt; approach to building an API instead of a Code-First approach. How would you expose that OpenAPI file?&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
