{
  "ucp": {
    "version": "2026-04-08",
    "services": {
      "dev.ucp.shopping": [
        {
          "version": "2026-04-08",
          "transport": "rest",
          "endpoint": "https://api.szivarvanycipobolt.hu",
          "spec": "https://ucp.dev/specification/overview",
          "schema": "https://ucp.dev/2026-04-08/services/shopping/rest.openapi.json"
        }
      ]
    },
    "capabilities": {
      "dev.ucp.shopping.catalog.search": [
        {
          "version": "2026-04-08",
          "spec": "https://ucp.dev/specs/catalog",
          "schema": "https://ucp.dev/schemas/shopping/catalog-search.json"
        }
      ],
      "dev.ucp.shopping.catalog.lookup": [
        {
          "version": "2026-04-08",
          "spec": "https://ucp.dev/specs/catalog",
          "schema": "https://ucp.dev/schemas/shopping/catalog-lookup.json"
        }
      ],
      "dev.ucp.shopping.cart": [
        {
          "version": "2026-04-08",
          "spec": "https://ucp.dev/specs/cart",
          "schema": "https://ucp.dev/schemas/shopping/cart.json"
        }
      ],
      "dev.ucp.shopping.checkout": [
        {
          "version": "2026-04-08",
          "spec": "https://ucp.dev/specs/checkout",
          "schema": "https://ucp.dev/schemas/shopping/checkout.json"
        }
      ]
    },
    "payment_handlers": {
      "com.google.pay": [
        {
          "id": "szivarvany-gpay-handler",
          "version": "2026-01-23",
          "spec": "https://pay.google.com/gp/p/ucp/2026-01-23/",
          "schema": "https://pay.google.com/gp/p/ucp/2026-01-23/schemas/config.json",
          "config": {
            "api_version": 2,
            "api_version_minor": 0,
            "allowed_payment_methods": ["CARD", "TOKENIZED_CARD"]
          }
        }
      ]
    }
  },
  "signing_keys": [
    {
      "kid": "key-2026-01",
      "kty": "OKP",
      "crv": "Ed25519",
      "x": "11qYAYKxCrf2yD5M1TEg4QVRpC2k4jC_eC5O24pE0fE",
      "use": "sig",
      "alg": "Ed25519"
    }
  ],
  "manifestVersion": "2026-04-08",
  "name": "Szivárvány Cipőbolt API",
  "version": "2026-04-08",
  "description": "E-commerce API documentation for AI-based testing and shoe store management.",
  "baseURL": "https://api.szivarvanycipobolt.hu",
  "auth": {
    "type": "apiKey",
    "location": "cookie",
    "name": "connect.sid"
  },
  "commands": [
    {
      "id": "pingServer",
      "path": "/ping",
      "method": "GET",
      "description": "Checks if the server is alive."
    },
    {
      "id": "userLogin",
      "path": "/auth/login",
      "method": "POST",
      "description": "Authenticates a user and starts a session.",
      "requestBody": {
        "email": { "type": "string", "required": true },
        "password": { "type": "string", "required": true }
      }
    },
    {
      "id": "userLogout",
      "path": "/auth/logout",
      "method": "POST",
      "description": "Ends the current user session."
    },
    {
      "id": "getCurrentUser",
      "path": "/auth/me",
      "method": "GET",
      "description": "Retrieves information about the currently logged-in user."
    },
    {
      "id": "getAllProducts",
      "path": "/products",
      "method": "GET",
      "description": "Retrieves a list of all available products."
    },
    {
      "id": "getProductById",
      "path": "/products/{id}",
      "method": "GET",
      "description": "Retrieves details for a specific product.",
      "parameters": {
        "id": { "type": "integer", "location": "path", "required": true }
      }
    },
    {
      "id": "getAllCategories",
      "path": "/products/category",
      "method": "GET",
      "description": "Retrieves all product categories."
    },
    {
      "id": "getProductsByCategory",
      "path": "/products/category/{id}",
      "method": "GET",
      "description": "Retrieves products belonging to a specific category.",
      "parameters": {
        "id": { "type": "integer", "location": "path", "required": true }
      }
    },
    {
      "id": "createCart",
      "path": "/cart",
      "method": "POST",
      "description": "Creates a new shopping cart.",
      "requestBody": {
        "cart_user_id": { "type": "integer" },
        "cart_status": { "type": "string" },
        "cart_quanity": { "type": "integer" },
        "cart_price": { "type": "number" },
        "cart_cnev": { "type": "string" },
        "cart_email": { "type": "string" },
        "cart_tel": { "type": "string" }
      }
    },
    {
      "id": "getCartById",
      "path": "/cart/{id}",
      "method": "GET",
      "description": "Retrieves details of a specific cart.",
      "parameters": {
        "id": { "type": "integer", "location": "path", "required": true }
      }
    },
    {
      "id": "updateCart",
      "path": "/cart/{id}",
      "method": "POST",
      "description": "Updates cart details.",
      "parameters": {
        "id": { "type": "integer", "location": "path", "required": true }
      }
    },
    {
      "id": "addItemsToCart",
      "path": "/cart/{id}/items",
      "method": "PUT",
      "description": "Adds multiple items to a cart.",
      "parameters": {
        "id": { "type": "integer", "location": "path", "required": true }
      },
      "requestBody": {
        "items": { "type": "array" }
      }
    },
    {
      "id": "removeCartItem",
      "path": "/cart/item/{cartItemId}",
      "method": "DELETE",
      "description": "Removes an item from the cart.",
      "parameters": {
        "cartItemId": { "type": "integer", "location": "path", "required": true }
      }
    },
    {
      "id": "checkoutAndStartPayment",
      "path": "/payment/checkout",
      "method": "POST",
      "description": "Initiates the checkout and payment process.",
      "requestBody": {
        "cartId": { "type": "integer", "required": true },
        "useToken": { "type": "boolean" }
      }
    },
    {
      "id": "getPaymentStatus",
      "path": "/cart/payment/status/{paymentId}",
      "method": "GET",
      "description": "Retrieves the status of a specific payment.",
      "parameters": {
        "paymentId": { "type": "string", "location": "path", "required": true }
      }
    },
    {
      "id": "getTerms",
      "path": "/terms",
      "method": "GET",
      "description": "Retrieves the Terms and Conditions."
    },
    {
      "id": "getPrivacy",
      "path": "/privacy",
      "method": "GET",
      "description": "Retrieves the Privacy Policy."
    }
  ]
}