Intro
Postman [already post about it]
I already did a post about PostMAN, quite useful tool. There are two versions actually, on for the browser and another for desktop running.
cURL [1]
Straightway to test requests since gives results right on the spot in the console, therefore you can see it or send it to a file.
combined with jSON placeholder
curl https://jsonplaceholder.typicode.com/posts/3
curl -i: gives several things
curl -I: header
to send to file: curl -o test.txt https://jsonplaceholder.typicode.com/posts/3
to send data: curl –data “title=hello&body=Hello World” https://jsonplaceholder.typicode.com/posts
JSONPlaceholder
Basically, a fake API to do tests.
Getting 100 posts:
https://jsonplaceholder.typicode.com/posts
Getting a post with id n
https://jsonplaceholder.typicode.com/posts
– You can actually post data, though it won’t be saved, it will be accepted.
REFs
https://jsonplaceholder.typicode.com/