Skip to content

dotruby/swagger-demo-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Swagger Demo API

Minimal ASP.NET Core Web API demonstrating Swagger (OpenAPI) running in Docker.

This repository is intended as a small, real-world example showing:

  • how to create a simple ASP.NET Core web service
  • how to add Swagger via a NuGet package
  • how to build and run the service using Docker and Docker Compose

Features

  • ASP.NET Core (.NET 8)
  • Swagger UI (OpenAPI) via Swashbuckle.AspNetCore
  • Docker multi-stage build
  • Docker Compose setup
  • Minimal API style

Getting started

Build and run with Docker Compose

docker compose up --build

The API will be available at:

About

Minimal ASP.NET Core Web API demonstrating Swagger (OpenAPI) running in Docker

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published