Skip to content
M.Gabała edited this page Apr 28, 2022 · 5 revisions

Welcome to the WebAPI-ASP.NET wiki!

## # Get token to pull a request

To get a token you should send request via Post method on this url: https://localhost:{port}/api/authentication/authenticate with credentials in example: Body: raw as JSON -> { "user" : "Mateusz", "password": "SecretPassword" }

Policy

Make sure RequiredClaim from Program.cs is the same you pass through AuthenticationController.cs. Otherwise you will get 403 Forbidden

Example for use in Postman: GetProducts:

?name=<> / ?searchQuery=<> / ?pageNumber=<> https://localhost:7033/api/products?name=something

Clone this wiki locally