.NET Core API using Swagger UI
.NET Core API that uses Swagger UI and SQLite DB to get data and transfer it using HTTP requests
Package | NuGet Link | Version |
---|---|---|
Microsoft.AspNetCore.Cors | @nuget/packages/Microsoft.AspNetCore.Cors |
|
Microsoft.EntityFrameworkCore.Sqlite | @nuget/packages/Microsoft.EntityFrameworkCore.Sqlite |
|
Swashbuckle.AspNetCore | @nuget/packages/Swashbuckle.AspNetCore |
- .NET Core API
- Swagger UI
- SQLite
git clone the repo using
git clone https://github.com/AmirMeiry/PandoAPI.git
If the next terms are met, the code will run without problems:
- NET 5.0 installed (Required)
- Windows OS
If you are using other OS you will probably have to download the latest Visual Studio 2019.
if you got the following error
A path base can only be configured using IApplicationBuilder.UsePathBase().
Comment out the following code in the file Program.cs
webBuilder.UseUrls("...");
# NuGet Package Manager UI
Microsoft.AspNetCore.Cors
# Package Manager Console
Install-Package Microsoft.AspNetCore.Cors -Version 2.2.0
# NuGet Package Manager UI
Microsoft.EntityFrameworkCore.Sqlite
# Package Manager Console
Install-Package Microsoft.EntityFrameworkCore.Sqlite -Version 5.0.9
# NuGet Package Manager UI
Swashbuckle.AspNetCore
# Package Manager Console
Install-Package Swashbuckle.AspNetCore -Version 5.6.2
- Linkedin - @amirmeiry