A REST API built to practice .NET Core fundamentals with Authentication and Authorization, Swagger Doc integration and Unit tests.
Features
- A RESTful Web api with .NET CORE 6 using an In-Memory Database provider
- Documented with Swagger with Open API Specification V3 using Swashbuckle
- Authentication and Authorization enabled using JWT Tokens for Access and refresh tokens
- Unit tests with code coverage reporter using XUnit and Cobertura.
Calculating coverage result...
+----------+--------+--------+--------+
| Module | Line | Branch | Method |
+----------+--------+--------+--------+
| HotelAPI | 63.28% | 57.44% | 80.73% |
+----------+--------+--------+--------+
+---------+--------+--------+--------+
| | Line | Branch | Method |
+---------+--------+--------+--------+
| Total | 63.28% | 57.44% | 80.73% |
+---------+--------+--------+--------+
| Average | 63.28% | 57.44% | 80.73% |
+---------+--------+--------+--------+
Install .NET Core 6 and Navigate to the project directory and use the following command to install dependant packages
dotnet restore
Launch the application from Visual Studio or run from the command line using the following command.
dotnet run
To run unit tests, use the following command
dotnet test /p:CollectCoverage=true /p:CoverletOutputFormat=cobertura
Rinka Viswathirupathi
Distributed under the MIT license. See LICENSE
for more information.
https://github.com/Rinkaswiftie/Hotel-REST-API
- Fork it (https://github.com/Rinkaswiftie/Hotel-REST-API/fork)
- Create your feature branch (
git checkout -b feature/fooBar
) - Commit your changes (
git commit -am 'Add some fooBar'
) - Push to the branch (
git push origin feature/fooBar
) - Create a new Pull Request