File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -138,5 +138,24 @@ public void ConfigureServices(IServiceCollection services)
138138
139139### Testing with PostMan
140140
141+ Before Tesing with PostMan, we need to run our project. Without running the project we can not make the request to our local project.
142+ However, for runnign this project we need to run the below command from our bash
141143
144+ ` dotnet run `
145+
146+ After running this command we will see that our project is running on our local machine with a project port number, for my machine it
147+ was running on the port ` https://localhost:5001/ `
148+
149+ Another thing, from bash we can understand in which port our project is running.
150+
151+ Now I will share two postman request. One request will be a POST request with ` username ` and ` password ` . if this two credentials are
152+ valid then it will give us a bearer Token
153+
154+ picture link 1
155+
156+
157+ After getting the token, we will use that token into this GET request. As a result, it will give us the value of that get request.
158+ if the token is invalid then the get request will not give us any value.
159+
160+ picture link 2
142161
You can’t perform that action at this time.
0 commit comments