All Projects → shivkanthb → Curlx

shivkanthb / Curlx

◼️ Supercharge curl with history, collections and more.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Curlx

Unifi Api Client
A PHP API client class to interact with Ubiquiti's UniFi Controller API
Stars: ✭ 602 (+256.21%)
Mutual labels:  api, curl
Python Api Development Fundamentals
Develop a full-stack web application with Python and Flask
Stars: ✭ 44 (-73.96%)
Mutual labels:  api, postman
Unifi Api Browser
Tool to browse data exposed by Ubiquiti's UniFi Controller API (demo: https://api-browser-demo.artofwifi.net/)
Stars: ✭ 677 (+300.59%)
Mutual labels:  api, curl
Dredd
Language-agnostic HTTP API Testing Tool
Stars: ✭ 3,770 (+2130.77%)
Mutual labels:  api, cli-app
Wechatpay Postman Script
微信支付API v3的调试工具
Stars: ✭ 112 (-33.73%)
Mutual labels:  api, postman
Swell
Swell: API development tool that enables developers to test endpoints served over streaming technologies including Server-Sent Events (SSE), WebSockets, HTTP2, GraphQL, and gRPC.
Stars: ✭ 517 (+205.92%)
Mutual labels:  api, postman
Httr
httr: a friendly http package for R
Stars: ✭ 897 (+430.77%)
Mutual labels:  api, curl
Requester
Powerful, modern HTTP/REST client built on top of the Requests library
Stars: ✭ 273 (+61.54%)
Mutual labels:  api, curl
Androidhttp
Android Http网络开发神兵利器
Stars: ✭ 88 (-47.93%)
Mutual labels:  postman, curl
Httplive
HTTP Request & Response Service, Mock HTTP
Stars: ✭ 1,094 (+547.34%)
Mutual labels:  api, postman
Ocrserver
A simple OCR API server, seriously easy to be deployed by Docker, on Heroku as well
Stars: ✭ 359 (+112.43%)
Mutual labels:  api, curl
Postman Bdd
A BDD test framework for Postman and Newman
Stars: ✭ 139 (-17.75%)
Mutual labels:  api, postman
Laravel Api To Postman
Generate a Postman collection automatically from your Laravel API
Stars: ✭ 320 (+89.35%)
Mutual labels:  api, postman
Node Express Mongodb Jwt Rest Api Skeleton
This is a basic API REST skeleton written on JavaScript using async/await. Great for building a starter web API for your front-end (Android, iOS, Vue, react, angular, or anything that can consume an API). Demo of frontend in VueJS here: https://github.com/davellanedam/vue-skeleton-mvp
Stars: ✭ 603 (+256.8%)
Mutual labels:  api, postman
Insomnia
The open-source, cross-platform API client for GraphQL, REST, and gRPC.
Stars: ✭ 18,969 (+11124.26%)
Mutual labels:  api, curl
Bert Ner
Pytorch-Named-Entity-Recognition-with-BERT
Stars: ✭ 829 (+390.53%)
Mutual labels:  postman, curl
setup-linux-debian
Installs essential JavaScript development programs.
Stars: ✭ 16 (-90.53%)
Mutual labels:  curl, postman
Php Curl Class
PHP Curl Class makes it easy to send HTTP requests and integrate with web APIs
Stars: ✭ 2,903 (+1617.75%)
Mutual labels:  api, curl
Activity
A PHP API to log anything anywhere
Stars: ✭ 44 (-73.96%)
Mutual labels:  api, curl
Rocket Api
API敏捷开发框架,用于API接口功能的快速开发。不再定义Controller,Service,Dao,Mybatis,xml,Entity,VO等对象和方法.以springboot starter 形式集成使用
Stars: ✭ 122 (-27.81%)
Mutual labels:  api, postman

curlx is a simple command line HTTP client that keeps track of request history, helps you organize your requests into collections, run and test frequent calls faster and more.

Getting Started

Install curlx

npm install curlx -g

Make sure to have nodejs version 8.0 or above.

Available options

Help

cx help

Displays help menu with a list of available options

History

cx history

Displays list of recent requests made with cx

Collections

cx collections

Displays an iterable list of created collections. Collections are a group of requests.

New

cx new collection

Walks you through a prompt for creating a new collection.

cx new request

Walks you through saving a new request to an existing collection. If the collection does not exist already, create using cx new collection command

Delete

cx delete <id>

Deletes request with request_id present in history

cx delete <collection_name:request_id>

Deletes a request with request_id in collection collection_name

cx delete <collection_name> --collection

Deletes the collection and all its requests

Run

cx run <request_id>

Runs the request with id request_id present in history again

cx run <collection_name:request_id>

Runs the request with id request_id present inside collection collection_name

Make requests

Use cx or curlx just like how you would use cURL.

Here's a simple GET call:

$ cx -X GET "https://httpbin.org/get"

HTTP/1.1 200 OK
Access-Control-Allow-Credentials: true
Access-Control-Allow-Origin: *
Content-Type: application/json
Date: Mon, 25 Mar 2019 06:02:02 GMT
Server: nginx
Content-Length: 202
Connection: keep-alive

{
  "args": {},
  "headers": {
    "Accept": "*/*",
    "Host": "httpbin.org",
    "User-Agent": "curl/7.54.0"
  },
  "origin": "73.222.138.87, 73.222.138.87",
  "url": "https://httpbin.org/get"
}

Sharing

All your collections and history are stored locally in your machine. Navigate to cxdb in your root folder. Example:

$ cd ~/cxdb

$ ls
collections.json history.json

$ cat collections.json
{
  "collections": {
    "Test": [
      {
        "id": "ANRfSkWYU",
        "name": "Post test call",
        "method": "post",
        "command": "curl -i \"-X\" \"POST\" \"https://httpbin.org/post\"",
        "url": "https://httpbin.org/post"
      }
    ],
    "mycoolapp": [
      {
        "id": "KvUx9H9t6",
        "name": "users",
        "method": "get",
        "command": "curl -i 'http://localhost:3000/api/users',
        "url": "http://localhost:3000/api/users"
      }
    ]
  }
}

In this example, There are two collections Test and mycoolapp with 1 request each. To run, say, the users request in mycoolapp,

$ cx run mycoolapp:KvUx9H9t6

HTTP/1.1 200 OK
Access-Control-Allow-Credentials: true
Access-Control-Allow-Origin: *
Content-Type: application/json
Date: Mon, 25 Mar 2019 06:02:02 GMT
Server: nginx
Content-Length: 202
Connection: keep-alive

[{
  "userId": 1,
  "id": 1,
  "name": "Richard Hendricks",
  "company": "Pied Piper"
}, {
  "userId": 2,
  "id": 2,
  "name": "Gavin Belson",
  "company": "Hooli"
}]

Since since are just json files, you can easily share these with another user. Simple add the collections to an existing collection and they will be available via the CLI.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].