Skip to Content
Small, Sharp Software Tools
book

Small, Sharp Software Tools

by Brian P. Hogan
June 2019
Intermediate to advanced
328 pages
7h 27m
English
Pragmatic Bookshelf
Content preview from Small, Sharp Software Tools

Working with Data and External APIs

If you develop web-based APIs, or just consume them, there are several tools that can make your life a little easier. The jq command is a command-line utility for parsing JSON responses. The HTTPie program makes reading results easier, and the Siege program lets you test how responsive your APIs are.

In Working with Web APIs, you used json-server[31] as a fake web API. You’ll use that in this section, too, along with the data.json file you created in that section. If you don’t have the file handy, create it again:

 $ ​​cat​​ ​​<<​​ ​​'EOF'​​ ​​>​​ ​​~/data.json
 >​​ ​​{
 >​​ ​​"notes"​​:​​ ​​[
 >​​ ​​{​​ ​​"id"​​:​​ ​​1,​​ ​​"title"​​:​​ ​​"Hello"​​ ​​}
 >​​ ​​]
 >​​ ​​}
 >​​ ​​EOF

Then start ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

The VimL Primer

The VimL Primer

Benjamin Klein
What Employees Want Most in Uncertain Times

What Employees Want Most in Uncertain Times

Kristine W. Powers, Jessica B.B. Diaz

Publisher Resources

ISBN: 9781680507003Errata Page