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

https://github.com/hurricanemark/hplussport.api

Building Web APIs with ASP.NET Core in .NET
https://github.com/hurricanemark/hplussport.api

Last synced: 4 months ago
JSON representation

Building Web APIs with ASP.NET Core in .NET

Awesome Lists containing this project

README

          

# Building Web APIs with ASP.NET Core in .NET

*Development environment: Visual Studio 2022*

*Language: C-Sharp*

*References: LinkedIn Learning by Christian Wenz*


**REST with HTTP Methods (CRUD)**

| HTTP Methods | Function |
|---|---|
| GET | Read data |
| POST | Create new data |
| PUT | Update existing data |
| DELETE | Delete existing data |

**Note**

`modelBuilder.UseInMemoryDatabase` is implemented. Data is flushed when program terminated.

### Runtime output

The **GET** method retrieves all products.
![HttpGet, Route("api/products")](SwaggerOutput.PNG)


The **POST** method creates a new product.
![HttpPOST](SwaggerPUTActionResult.PNG)

### Additional References:

[Hshopsport](https://hplussport.com/shop/)