AskChloe - The Stylist

AskChloe - The Stylist · Acciones GPT

AskChloe API

  • GET /api/searchSearch items in the store given a query string
Esquema original API
{
  "openapi": "3.0.0",
  "info": {
    "title": "AskChloe API",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://askchloe.app/"
    }
  ],
  "paths": {
    "/api/search": {
      "get": {
        "summary": "Search items in the store given a query string",
        "operationId": "searchItems",
        "parameters": [
          {
            "name": "query",
            "in": "query",
            "description": "Query string to search for",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "gender",
            "in": "query",
            "description": "The gender of item to search for, e.g. men or women",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Search results matching the query",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Item"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad request, query is required",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}