Pre-Requisite:
-
Download PostMan.
Steps:
1.Open Postman click on new.

Figure 1. postman home screen
2.Click on HTTP request.

Figure 2. new HTTP request
3.GET request without parameter.

Figure 3. http request page
a.Select "GET"
b.Enter url (e.g."http://localhost:8080/app/example/hello")
c.Click on send

Figure 4. http GET request without parameter
See the output in figure 4.
4.GET with parameter
a.Select "GET"
b.Enter url (e.g."http://localhost:8080/app/example/hello/yourName")
c.Click on send

Figure 5. http GET request with parameter
See the output in figure 5.
Make sure you use get "http://localhost:8080/app/example/hello/{name}". |
5.Using json "POST"
a.Select "POST"
b.Enter url (e.g."http://localhost:8080/app/example/hello")

Figure 6. Using json "POST"
c.Select Body ⇒ raw ⇒ JSON

Figure 7. select JSON

Figure 8. example json string
d.Enter JSON string (e.g. {"name":"John", "age":30} )
e.Click on send

Figure 9. output json "post"
See the output in figure 9.