Skip to content

support Resto file #5

@abdfnx

Description

@abdfnx

it's an great idea to support resto file, but why ?

  1. Send requests from files easily
  2. Save time
  3. a New Feature

so I choose yaml as the file format and the file name is .resto.yml

example

method: "POST"
url: "https://api.spacex.land/graphql"
contentType: "application/graphql"
openBodyEditor: true
# if `openBodyEditor` is false
body: |
   query {
     launchesPast(limit: 2) {
       mission_name
       launch_date_local
       launch_site {
         site_name_long
       }

       links {
         article_link
         video_link
       }

       rocket {
         rocket_name
         first_stage {
           cores {
             flight
             core {
               reuse_count
               status
             }
           }
         }

         second_stage {
           payloads {
             payload_type
             payload_mass_kg
             payload_mass_lbs
           }
         }
       }

       ships {
         name
         home_port
         image
       }
     }
   }
authType: "Bearer"
token: "MY_TOKEN"
# or basic auth
username: "USERNAME"
password: "P@$$w0rd"

that's it 👍

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestquestionFurther information is requested

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions