Skip to content

FerroEduardo/superhero-api

Repository files navigation

SuperHeroAPI

test build

API inspired by these tutorials: 1, 2

Swagger: http://localhost:5015/swagger

Routes

Description Method URL Body
Sign in POST /auth/signin { "username": "username", "password": "password" }
Sign up POST /auth/signup { "username": "username", "password": "password" }
Index user super heroes GET /superhero
Show user super hero GET /superhero/:id
Create user super hero POST /superhero { "name": "string", "firstName": "string", "lastName": "string", "place": "string" }
Update user super hero PUT /superhero/:id { "name": "string", "firstName": "string", "lastName": "string", "place": "string" }
Delete user super hero DELETE /superhero/:id

Useful commands

  1. If dotnet-ef is not installed: dotnet tool install --global dotnet-ef
  2. Run migrations: dotnet ef database update

About

Super heroes CRUD with authentication

Resources

Stars

Watchers

Forks

Languages