{
  "openapi": "3.1.0",
  "info": {
    "title": "Naima Wear Store API",
    "version": "1.0.0",
    "description": "WooCommerce Store API for Naima Wear — Argentine activewear brand",
    "contact": {
      "name": "Naima Wear Support",
      "email": "Naicanabal95@gmail.com",
      "url": "https://naimawear.com.ar"
    }
  },
  "x-service-info": {
    "categories": ["fashion", "apparel", "activewear", "ecommerce", "fitness"]
  },
  "servers": [
    {
      "url": "https://naimawear.com.ar/wp-json/wc/store/v1",
      "description": "WooCommerce Store API v1"
    }
  ],
  "paths": {
    "/products": {
      "get": {
        "operationId": "listProducts",
        "summary": "List all products",
        "description": "Returns all Naima Wear products with images, prices and variations",
        "parameters": [
          {
            "name": "search",
            "in": "query",
            "schema": { "type": "string" },
            "description": "Search term"
          },
          {
            "name": "category",
            "in": "query",
            "schema": { "type": "string" },
            "description": "Category slug (calzas, tops, sets, remeras, shorts, jackets)"
          },
          {
            "name": "per_page",
            "in": "query",
            "schema": { "type": "integer", "default": 10 }
          }
        ],
        "responses": {
          "200": {
            "description": "Array of products"
          }
        }
      }
    },
    "/products/{id}": {
      "get": {
        "operationId": "getProduct",
        "summary": "Get a single product",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": { "type": "integer" }
          }
        ],
        "responses": {
          "200": {
            "description": "Product object"
          }
        }
      }
    },
    "/products/categories": {
      "get": {
        "operationId": "listCategories",
        "summary": "List product categories",
        "responses": {
          "200": {
            "description": "Array of categories"
          }
        }
      }
    },
    "/cart": {
      "get": {
        "operationId": "getCart",
        "summary": "Get current cart",
        "responses": {
          "200": {
            "description": "Cart object"
          }
        }
      }
    },
    "/checkout": {
      "post": {
        "operationId": "checkoutOrder",
        "summary": "Process checkout order payment",
        "description": "Payable checkout operation for Naima Wear orders via Machine Payment Protocol (MPP)",
        "x-payment-info": {
          "intent": "charge",
          "method": "card",
          "amount": "0",
          "currency": "ARS",
          "description": "Naima Wear order checkout"
        },
        "responses": {
          "200": {
            "description": "Order confirmation and payment receipt"
          }
        }
      }
    }
  }
}
