Next let’s check out a simple GET request that we’ll make to WordPress to retrieve details for post 1.
- Open up Rest Console in Chrome
- Add the following to the Request URI field under the Target area(FYI: your port number might be different than mine):
- Click on the GET button
- Under the Response section, you should now see the JSON response
We’re going to use this for our first simple example to send a request using Rest-Assured, then we’ll confirm that the response’s body contains a title with the value of “Hello world!”
“title”: “Hello world!”,
Comments
Post a Comment