Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shehroz4477/basic-rest-api
This repository contains a basic implementation of a RESTful Web API using .NET Core 8 framework. It serves as a foundational template for building robust APIs in the .NET ecosystem. The API provides endpoints for performing CRUD (Create, Read, Update, Delete) operations on a sample resource.
https://github.com/shehroz4477/basic-rest-api
c-sharp csharp dotnet dotnetcore dotnetcore8 dotnetcorewebapi sample visual-studio-code
Last synced: about 1 month ago
JSON representation
This repository contains a basic implementation of a RESTful Web API using .NET Core 8 framework. It serves as a foundational template for building robust APIs in the .NET ecosystem. The API provides endpoints for performing CRUD (Create, Read, Update, Delete) operations on a sample resource.
- Host: GitHub
- URL: https://github.com/shehroz4477/basic-rest-api
- Owner: Shehroz4477
- License: mit
- Created: 2024-05-17T18:23:57.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-05-25T08:50:40.000Z (7 months ago)
- Last Synced: 2024-11-19T08:55:49.499Z (about 1 month ago)
- Topics: c-sharp, csharp, dotnet, dotnetcore, dotnetcore8, dotnetcorewebapi, sample, visual-studio-code
- Language: C#
- Homepage:
- Size: 45.9 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# BASIC-REST-API
## Here is a list of software, SDKs, and tools you need to install:
#### 1. VS Code: https://code.visualstudio.com/download
#### 2. .NET 8 SDK: https://dotnet.microsoft.com/en-us/download## Configuring VS Code
#### 1. C# Dev Kit## Checking the .NET SDK
#### 1. Once you install the .NET SDK, you can check the version by running thefollowing command:
#### dotnet --version
#### 2. You can list all available SDKs by running the following command:
#### dotnet --list-sdks# Creating a simple REST web APIprojectdotnet
#### create a web API project by running the following command:
#### dotnet new webapi -n basic-rest-api -controllers
#### cd basic-rest-api
#### code .# To support HTTPS, you may need to trust the HTTPS development certifi-cate by running the following command:
#### dotnet dev-certs https --trust# Changing the port number
#### 1. open launchSettings.json file in the Properties folder
#### 2. 5000 to 5300 for HTTP
#### 3. 7000 to 7300 for HTTPS