Skip to content

vishavish/Superhero-API

Repository files navigation

Superhero API

This repository contains a simple .NET 6 API with CRUD operations.

Purpose

To keep track of what I have done and something to refer back to.

Build and Run

NOTE: This project requires .NET 6 SDK or higher to run.

Open your terminal at the root of the repository and run:

dotnet run --project ./Superhero.Api/Superhero.Api.csproj

Once you see this in your terminal:

Terminal Success

You can now access the api here: https://localhost:7073/swagger/index.html

Swagger UI

Using Docker

TODO:

Tech Used

Security

  • ASP.NET Core Identity
  • JWT Authentication

Database

  • Entity Framework Core

Validation

  • FluentValidation
  • Entity Framework Core Fluent API

Testing

  • xUnit
  • FluentAssertion
  • FakeItEasy

API Documentation

  • Swagger

Deployment

  • Docker
  • Github Actions -- TODO

Initial Data

Once you run the project, you will notice in the terminal that it also runs the migrations as well as our initial data.

Terminal EF Core Migrations

You can now test the application using the default user:

Username Password
admin Admin123*

Remember to authenticate before accessing other endpoint.

About

This is a sample .NET 6 API.

Resources

License

Stars

Watchers

Forks

Contributors 2

  •  
  •