All Projects → abdfnx → resto

abdfnx / resto

Licence: MIT license
🔗 a CLI app can send pretty HTTP & API requests with TUI

Programming Languages

go
31211 projects - #10 most used programming language
shell
77523 projects
Dockerfile
14818 projects

Projects that are alternatives of or similar to resto

Ftxui
💻 C++ Functional Terminal User Interface. ❤️
Stars: ✭ 433 (+283.19%)
Mutual labels:  tui, user-interface, terminal-based
Httpu
The terminal-first http client
Stars: ✭ 619 (+447.79%)
Mutual labels:  http-client, user-interface, terminal-based
Restclient
🦄 Simple HTTP and REST client for Unity based on Promises, also supports Callbacks! 🎮
Stars: ✭ 675 (+497.35%)
Mutual labels:  http-client, requests
Requests3
Requests 3.0, for Humans and Machines, alike. 🤖
Stars: ✭ 813 (+619.47%)
Mutual labels:  http-client, requests
Snug
Write reusable web API interactions
Stars: ✭ 108 (-4.42%)
Mutual labels:  http-client, requests
cryptgo
A terminal application to watch crypto prices!
Stars: ✭ 123 (+8.85%)
Mutual labels:  tui, terminal-based
Guzzle
Guzzle, an extensible PHP HTTP client
Stars: ✭ 21,384 (+18823.89%)
Mutual labels:  http-client, requests
Saber
⚔️ Saber, PHP异步协程HTTP客户端 | PHP Coroutine HTTP client - Swoole Humanization Library
Stars: ✭ 866 (+666.37%)
Mutual labels:  http-client, requests
axios-for-observable
A RxJS wrapper for axios, same api as axios absolutely
Stars: ✭ 13 (-88.5%)
Mutual labels:  http-client, requests
Grequests
A Go "clone" of the great and famous Requests library
Stars: ✭ 1,843 (+1530.97%)
Mutual labels:  http-client, requests
Python Simple Rest Client
Simple REST client for python 3.6+
Stars: ✭ 143 (+26.55%)
Mutual labels:  http-client, requests
Libhv
🔥 比libevent、libuv更易用的国产网络库。A c/c++ network library for developing TCP/UDP/SSL/HTTP/WebSocket client/server.
Stars: ✭ 3,355 (+2869.03%)
Mutual labels:  http-client, requests
Node Request Retry
💂 Wrap NodeJS request module to retry http requests in case of errors
Stars: ✭ 330 (+192.04%)
Mutual labels:  http-client, requests
Requester
Powerful, modern HTTP/REST client built on top of the Requests library
Stars: ✭ 273 (+141.59%)
Mutual labels:  http-client, requests
Php Curl Class
PHP Curl Class makes it easy to send HTTP requests and integrate with web APIs
Stars: ✭ 2,903 (+2469.03%)
Mutual labels:  http-client, requests
Uplink
A Declarative HTTP Client for Python
Stars: ✭ 824 (+629.2%)
Mutual labels:  http-client, requests
fennch
Modern fetch-based axios-like HTTP client for the browser and node.js
Stars: ✭ 12 (-89.38%)
Mutual labels:  http-client, requests
curly.hpp
Simple cURL C++17 wrapper
Stars: ✭ 48 (-57.52%)
Mutual labels:  http-client, requests
RESTEasy
REST API calls made easier
Stars: ✭ 12 (-89.38%)
Mutual labels:  http-client, requests
Rxios
A RxJS wrapper for axios
Stars: ✭ 119 (+5.31%)
Mutual labels:  http-client, requests

a CLI app can send pretty HTTP & API requests with TUI.

demo

Installation

Using script

  • Shell
curl -fsSL https://git.io/resto | bash
  • PowerShell
iwr -useb https://git.io/resto-win | iex

then restart your powershell

Go package manager

go install github.com/abdfnx/resto@latest

GitHub CLI

gh extension install abdfnx/gh-resto

Via Docker

docker run -it restohq/resto <CMD>

full container:

docker run -it restohq/resto-full

Usage

  • Open Resto UI

    resto
  • Send a request to a URL

    resto get https://api.github.com
  • Send a request to a URL and use resto editor

    resto post https://localhost:3000/v1/login --content-type json --editor
  • Read Body from stdin

    cat schema.graphql | resto post https://api.spacex.land/graphql --content-type graphql --body-stdin
  • Use Authentecation with Basic Auth or Bearer Token

    # Bearer Token
    resto delete https://api.secman.dev/api/logins/13 --content-type json --token TOKEN
    
    # Basic Auth
    resto delete https://api.secman.dev/api/logins/13 --content-type json --username USERNAME --password PASSWORD
  • Save response to a file

    resto get http://localhost:3333/api/v1/hello --save response.json
  • Install binary app from script URL and run it.

    resto install https://yarnpkg.com/install.sh
    resto i https://get.docker.com
  • Send a request from Restofile

    resto run
    
    # from path
    resto run --file ./examples/restofile/basic_request/Restofile
  • Get the latest release/tag from repository

    resto get-latest abdfnx/resto
    
    # use another registry
    resto get-latest 23028539 --registry gitlab.com
    
    # with access token
    resto get-latest spittet/node-postgresql --registry bitbucket.org --token YOUR-ACCESS-TOKEN

Flags

  1. GET & HEAD flags
-H, --headers           Just show the response headers
-j, --just-body         Just show the response body
-p, --password string   The password to use for basic authentication
-s, --save string       Save the response body to a file
-t, --token string      The bearer token to use for authentication
-u, --username string   The username to use for basic authentication
  1. POST, PUT, PATCH, DELETE flags
-b, --body string           The body of the request
-i, --body-stdin            Read the body from stdin
-c, --content-type string   The content type of the body
-e, --editor                Open the editor to edit the body
-H, --headers               Just show the response headers
-j, --just-body             Just show the response body
-p, --password string       The password to use for basic authentication
-s, --save string           Save the response to a file
-t, --token string          The bearer token to use for authentication
-u, --username string       The username to use for basic authentication
  1. install command flags
-H, --hidden         hide the output
-s, --shell string   shell to use default: bash
  1. run command flags
-a, --all           Show all response headers & status
-f, --file string   Path to Restofile (Default: PATH/Restofile)
  1. get-latest command flags
-r, --registry string   The registry to use
-t, --token string      The access token to use it the registry requires authentication

Shortcuts

  • Ctrl+P: Open Resto Panel
  • Ctrl+H: Open Help Guide
  • Ctrl+E: Open Settings
  • Ctrl+S: Save Request Body
  • Ctrl+U: Update Your Resto
  • Ctrl+Q: Quit

Documentation

Refer to our Wiki for the documentation.

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].