restli

command module
v0.0.0-...-43981da Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 1, 2022 License: MIT Imports: 1 Imported by: 0

README

Restli

A REST client CLI tool. Built it with Cobra and Resty

GET

restli GET --url <url>

POST

restli POST --url <url> --body <body>

Windows users must add a backslash before every quote in the body, otherwise, it won't work and it will returns a Bad Request status code.

Example:

restli POST --url "http://localhost:8000/api" --body "{\"name\":\"Carlos\", \"lastname\":\"Marcano\"}"

PUT

restli PUT --url <url> --body <body>

Windows users must add a "" before every quote in the body, otherwise, it won't work and it will returns a Bad Request status code.

Example:

restli PUT --url "http://localhost:8000/api" --body "{\"name\":\"Carlos\", \"lastname\":\"Marcano\"}"

PATCH

restli PATCH --url <url> --body <body>

Windows users must add a "" before every quote in the body, otherwise, it won't work and it will returns a Bad Request status code.

Example:

restli PATCH --url "http://localhost:8000/api" --body "{\"name\":\"Carlos\", \"lastname\":\"Marcano\"}"

DELETE

restli DELETE --url

restli DELETE --url "http://localhost:8000/api"

Documentation

Overview

Copyright © 2022 NAME HERE <EMAIL ADDRESS>

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL