package
0.1.6
Repository: https://github.com/abdfnx/resto.git
Documentation: pkg.go.dev

# README

Resto Run command

The resto run command is used to run requests from Restofile

example of Restofile

request {
   method "POST"
   url "https://api.spacex.land/graphql"
   contentType "application/graphql"
}

body {
   openBodyEditor "true"
   # if `openBodyEditor` prop is false or not set
   readFrom "examples/spacex.gql"
}

auth {
   type "bearer"
   token: "MY_TOKEN"
   # or basic auth
   type "basic"
   username: "USERNAME"
   password: "P@$$w0rd"
   # to use from env variable
   password "env:MY_PASSWORD"
}

examples:

resto run

# from file
resto run --file examples/basic_request/Restofile

docs

flags

-a, --all           Show all response headers & status
-f, --file string   Path to Restofile (Default: PATH/Restofile)

# Functions

No description provided by the author