Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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