This project is a JSON web token authenticator API.
Content
Prerequisities:
https://www.microsoft.com/net/core#windowsvs2017 (Windows) https://www.microsoft.com/net/core#linuxredhat (Linux) https://www.microsoft.com/net/core#macos (MacOS) https://www.microsoft.com/net/core#dockercmd (Docker) https://github.com/MicrosoftArchive/redis/releases (Redis)
Run Linux / MacOS:
dotnet restore dotnet build dotnet [assembly]
Run Windows VS Code:
dotnet restore dotnet build dotnet run
Run Windows Visual Studio:
dotnet restore + build (CTRL + B) dotnet run (debug - F5) dotnet run (release - CTRL + F5)
This API uses MSTest as a test framework. It can be tested by running the commands below:
dotnet test (bash / cmd) run tests (Visual Studio - 2015+) dotnet test (Visual Studio Code Integrated Terminal)
This API works through the url's shown below:
http://localhost:<random_port>/ (API documentation) http://localhost:<random_port>/api/version/<resource> (API)
Available entities:
| Resource | Entity | HTTP Verbs | Query Strings |
|---|---|---|---|
| /token | Token | GET POST |
http://localhost:<random_port>/api/v1/token
http://localhost:<random_port>/api/v1/token/{key}