console log all movements to json code example
Example: How do you access the payload of the response
response.getBody()
response.body()
Request:
- GET HTTP method
- API endpoint/URL: IP:8000/api/hello
- No headers but we could add:
Accept - Json
Response:
We verified the response:
- status code -> 200
- Headers:
- ContentType
- Date
- Content-length
- Body/PayLoad: that it contains expected data.