apibag
Simple command line tool to make http requests
Install
npm install -g apibag
Demo
Why?
I love postman, but clicking around is not my favorite part of the day. However its persistent history and collections are cool features. And those are something to miss when using cli tools, like httpie or curl.
Let's see if the same experience can be recreated in command line.
Work in progress
apibag can make post and get requests currently, with persistent history, but that's about it! It's a work in progress.
Milestons
- get and post methods work just like httpie
- Separate name spaces / bags can be defined for keeping the history.
- Users can cd into a name space, ls to see all saved requests, cat to see each etc.
How will this work?
I don't know. I'm just trying different ideas. So far an immersing cli tool sounds good. But later we might move it to a normal cli, with atomic single commands.
background:
OmidDo you have any recommendation
File format
// these be http headers, like you know and love emHeader: ValueHeader: {parameterized_value}--- // this is body, can be anything // but it would be nice to have comments // and also use relaxed-json here so it's easier to author{ "foo": "bar"}