Skip to content

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.

License

Notifications You must be signed in to change notification settings

Shehroz4477/basic-rest-api

Repository files navigation

BASIC-REST-API

Here is a list of software, SDKs, and tools you need to install:

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

About

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.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages