{
  "id": "httpy",
  "name": "httpy",
  "description": "A programmable command-line HTTP client.",
  "executables": [
    "httpy"
  ],
  "commands": {
    "format": 1,
    "label": "Send HTTP request",
    "description": "Send a request and choose which part of the response to print.",
    "quality": "ai-draft",
    "base": "fig:httpy",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": true,
      "short_attached": true,
      "short_bundles": true
    },
    "source": [
      {
        "id": "fig",
        "kind": "completion",
        "url": "https://github.com/withfig/autocomplete/blob/master/src/httpy.ts",
        "license": "MIT"
      }
    ],
    "field": [
      {
        "id": "url",
        "label": "URL",
        "description": "The scheme defaults to http:// when omitted.",
        "type": "string",
        "position": 0,
        "sources": [
          "fig"
        ]
      },
      {
        "id": "method",
        "label": "Method",
        "type": "string",
        "position": 1,
        "suggestions": [
          {
            "value": "GET",
            "label": "GET"
          },
          {
            "value": "POST",
            "label": "POST"
          },
          {
            "value": "PUT",
            "label": "PUT"
          },
          {
            "value": "DELETE",
            "label": "DELETE"
          }
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "status",
        "label": "Status only",
        "type": "boolean",
        "option": [
          "--status",
          "-S"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "header",
        "label": "Headers only",
        "type": "boolean",
        "option": [
          "--header",
          "-H"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "body",
        "label": "Body only",
        "type": "boolean",
        "option": [
          "--body",
          "-B"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "allow_redirect",
        "label": "Follow redirects",
        "type": "boolean",
        "option": [
          "--allow-redirect",
          "-r"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "verbose",
        "label": "Verbose",
        "type": "boolean",
        "option": [
          "--verbose",
          "-V"
        ],
        "sources": [
          "fig"
        ]
      }
    ],
    "task": [
      {
        "id": "get",
        "label": "Send request",
        "fields": [
          "url",
          "method",
          "allow_redirect",
          "verbose"
        ],
        "required": [
          "url"
        ]
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "url",
          "method",
          "allow_redirect"
        ]
      },
      {
        "id": "advanced",
        "label": "Output",
        "fields": [
          "status",
          "header",
          "body",
          "verbose"
        ]
      }
    ]
  }
}
