REST API powered by .NET Core
$ dotnet restore
$ dotnet run
$ docker build --pull -t shiro .
$ docker run --rm -it -p 80:80 --name shiro-app shiro
Swagger dynamically generate API documentation
curl --request POST \
--url http://localhost:80/api/user \
--header 'content-type: application/json' \
--data '{"username": "esneko", "password": "qwerty"}'
curl --request POST \
--url http://localhost:80/api/token \
--header 'content-type: application/json' \
--data '{"username": "esneko", "password": "qwerty"}'
curl --request GET \
--url http://localhost:80/api/user \
--header 'authorization: Bearer __REPLACE_WITH_TOKEN__'