- Install .NET Core 1.1 (.NET Core 1.0.3 SDK - Installer) and MySQL 5.7.17 Installer
- Clone this repo
- Restore nuget packages
- Specify MySQL connection string in
web.config
Add-Migration
{MigrationName} in PM console, or dotnet ef migrations add {MigrationName} using Dotnet-CLIUpdate-Database
, or dotnet ef database update using Dotnet-CLI- Run the server, use Postman, Fiddler, cURL or any tool to test endpoints.
-
Use the seeded admin user to validate tokens, check
ApplicationDbContext.cs
. -
Get Token: Send a POST request to
http://localhost:xxxx/connect/token
with the following fields- grant_type=password
- username=admin[at]test[.]com
- password=Test1234%
You will receive a token in response from server.
-
Access protected routes: Add
Authorization
field in the header of request and set value toBearer
+ token.