Modular monolithic Web API startup template.
- Visual Studio 2019 v16.3 or later for Windows.
- Visual Studio 2019 for Mac v8.3 or later for macOS.
- Select
AspNetCoreStarterKit.WebApi
project "Set as Startup Project" - Open "Package Manager Console" and select default project as
src/AspNetCoreStarterKit.EntityFramework
- Run
update-database
command to create database. - Run(F5 or CTRL+F5) Web API project first
- Admin user name and password :
admin/123qwe
You can login on swagger ui by using a bearer token. So you can make requests to authorized end-points. Check the following steps.
- In swagger ui, execute
api/login
to get a bearer token. - Copy bearer token that is in
api/login
response. - Click
Authorize
button in swagger ui page. - Enter the token like
Bearer <token>
and clickAuthorize
. - Now you can make requests to authorized end-points.