21- user-service-A (testing part using postman)

 

Steps taken to POST OR GET your API on POSTMAN

1-     Download and Open POSTMAN API.

2-    Choose the method you want to execute  (POST) or  (GET).

3-   Write your URL Path " http://localhost:8081/user" for POST.

4-   Write your URL Path " http://localhost:8081/user/{id}" for GET.

5-    Choose the format which you are submitting data in my case is body-> raw -> json

     This process for POST.

6-   Submit  and wait for Response..

7-   Check your MySQL Workbench to see your changes OR HttpStatus . 


POST Requests

Creating or Posting your 1st entry

Image 1


Creating or Posting your 2nd entry

Image 2


Creating or Posting your 3rd entry

Image 3


Creating or Posting your 4th entry

Image 4


Creating or Posting your 5th entry

Image 5


-------------------------------------------------------------------------------------

Getting all values on SQL Workbench

Image 6


-------------------------------------------------------------------------------------

GET Requests


Getting  value for id=1 on POSTMAN

Image 7



Getting  value for id=2 on POSTMAN

Image 8


Getting  value for id=3 on POSTMAN

Image 9


Getting  value for id=4 on POSTMAN

Image 10


Getting  value for id=5 on POSTMAN

Image 11



Comments

Popular posts from this blog

INDEX OF JAVA 8 and MICROSERVICES BLOG