Skip to content

RachBreeze/2022-24-Days-In-Umbraco

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Creating better API documentation with .NET Core

Code in this repository supports an article I am writing for 24 days in Umbraco that discusses how to document an API using Attributes and Swagger.

It atempts to replicate the "Update an Existing Pet" action found at https://editor.swagger.io/. Whilst demonstrating:

  • Adding XML Comments to the Open API documentation
  • Documenting Enums
  • Documenting responses
  • Adding a licence and description to an OpenAPI specification

Code

The code samples for the article can be found https://github.com/RachBreeze/2022-24-Days-In-Umbraco/tree/main/PetAPI

The article also discusses setting <GenerateDocumentationFile>true</GenerateDocumentationFile> in the .csproj file. The output from doing this is found at https://github.com/RachBreeze/2022-24-Days-In-Umbraco/blob/main/PetAPI.xml

Maintenance and Warranties

As the code in this repository is written to support the article there are currently no plans to upgrade the versions of the NuGet packages referenced with in the code base. It is supplied as is.

About

Source code for 24days.in article on Swagger and Swashbuckle

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages