sogue / NswagDemoDotNet

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NswagDemoDotNet

NswagDemoDotNet is a sample project that demonstrates the usage of NSwag with ASP.NET Core Web API. It showcases how to generate Swagger documentation and TypeScript client code from the API endpoints using NSwag tooling.

Table of Contents

Installation

To get started with NswagDemoDotNet, you need to have the following prerequisites installed on your machine:

Follow these steps to install and run the project:

  1. Clone this repository to your local machine using the following command:

git clone https://github.com/sogue/NswagDemoDotNet.git

  1. Navigate to the project directory:

cd MyWebAPI

  1. Build the solution using the .NET CLI:

dotnet build

  1. Run the project using the .NET CLI:

dotnet run

  1. Once the project is running, you can access the API endpoints and explore the generated Swagger documentation.

Usage

After starting the project, you can access the following URLs:

The Swagger UI provides an interactive interface to explore the API endpoints, make requests, and view responses.

Documentation

For detailed information on using NSwag with ASP.NET Core Web API, refer to the official NSwag documentation.

Contributing

Contributions to NswagDemoDotNet are welcome! If you encounter any issues or have suggestions for improvements, please open an issue on the GitHub repository. Pull requests are also appreciated.

License

This project is licensed under the MIT License.

About


Languages

Language:C# 100.0%