Tools for API dev

All

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/

https://curl.haxx.se/

 

 

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s