This repository provides a REST API that allows a client application to manage a FAQ.
It contains the basic instructions for managing questions:
- Get questions (HTTP GET)
- Insert a new question (HTTP POST)
- Update a question (HTTP PUT)
- Delete a question (HTTP DELETE)
- .NET Core 2.2
- ASP.NET Core 2.2
- Entity Framework Core 2.2
- xUnit
- SQL Server
In order to develop some software should be installed:
- .NET Core 2.2 SDK (Required)
- Visual Studio Code (Optional)
- Visual Studio 2019 (Optional)
- SQL Server (Optional, Azure SQL Database can be used as well)
- Clone the repository
- Open the Windows Command Prompt
- Navigate to the folder where the source code is located and navigate to the Petrol.WebApi folder
- Open the appsettings.json file and update the "sqlDB" connection string.
- Type "dotnet run" and press enter
- Copy the URL with the label "Now listening on" and use it in a tool like PostMan