Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/persteenolsen/dotnet-6-minimal-api
A minimal .NET 6 Web API - created with VS Code
https://github.com/persteenolsen/dotnet-6-minimal-api
dotnet
Last synced: 29 days ago
JSON representation
A minimal .NET 6 Web API - created with VS Code
- Host: GitHub
- URL: https://github.com/persteenolsen/dotnet-6-minimal-api
- Owner: persteenolsen
- License: mit
- Created: 2023-12-17T17:58:45.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-03-19T17:07:20.000Z (10 months ago)
- Last Synced: 2024-11-07T09:46:28.565Z (3 months ago)
- Topics: dotnet
- Language: C#
- Homepage: https://dotnet.minimal.api.persteenolsen.com/products
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# dotnet-6-minimal-api
A minimal Web API created by .NET 6.0
# Create a global json
dotnet new globaljson --sdk-version 6.0.320 --force
# Functionality of the Web App
- A Simple Web API
- Display a list of Products
- Display a Product by a selected Id# Tech used for creating the Web App
- A .NET 6 Web API
- A traditional Webhotel for hosting
- VS Code# Development
dotnet run
# Production
Create a self contained build for production at the remote server / traditionel web hotel
dotnet publish webapi.csproj --configuration Release --runtime win-x86 --self-contained
Upload the build to remote server
At my remote servers the web.config needs to be without the folowing:
hostingModel="inprocess"
# Test the Web API - The Products
- yourhost/products
- yourhost/products/1