{
  "openapi": "3.1.1",
  "info": {
    "title": "Bloom de Fleur Public Catalogue API",
    "version": "1.0.0",
    "description": "Read-only public flower catalogue and shop information for Bloom de Fleur, Limassol, Cyprus. This API cannot create orders or process payments.",
    "contact": {
      "name": "Bloom de Fleur",
      "url": "https://bloomdefleur.com.cy/contact-us/",
      "email": "fleurbloomde@gmail.com"
    }
  },
  "servers": [
    {
      "url": "https://bloomdefleur.com.cy/wp-json/bloom/v1"
    }
  ],
  "security": [],
  "paths": {
    "/business": {
      "get": {
        "operationId": "getBloomBusiness",
        "summary": "Read Bloom de Fleur shop contact and delivery guidance.",
        "description": "Read Bloom de Fleur shop contact and delivery guidance. Public read-only endpoint. No authentication required. No orders, customers or payment data are exposed. Make sequential requests; use per_page at most 20. Confirm delivery and final totals on the storefront.",
        "parameters": [],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Business"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "404": {
            "description": "Resource or route not found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "503": {
            "description": "Catalogue temporarily unavailable",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/products": {
      "get": {
        "operationId": "listBloomProducts",
        "summary": "List published products visible in the public catalogue.",
        "description": "List published products visible in the public catalogue. Public read-only endpoint. No authentication required. No orders, customers or payment data are exposed. Make sequential requests; use per_page at most 20. Confirm delivery and final totals on the storefront.",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "description": "Page number.",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 1000,
              "default": 1
            }
          },
          {
            "name": "per_page",
            "in": "query",
            "description": "Products per page, capped at 20.",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 20,
              "default": 10
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProductPage"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "404": {
            "description": "Resource or route not found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "503": {
            "description": "Catalogue temporarily unavailable",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/products/{id}": {
      "get": {
        "operationId": "getBloomProduct",
        "summary": "Read a published product visible in the public catalogue.",
        "description": "Read a published product visible in the public catalogue. Public read-only endpoint. No authentication required. No orders, customers or payment data are exposed. Make sequential requests; use per_page at most 20. Confirm delivery and final totals on the storefront.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Public product ID returned by listBloomProducts.",
            "schema": {
              "type": "integer",
              "minimum": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Product"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "404": {
            "description": "Resource or route not found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "503": {
            "description": "Catalogue temporarily unavailable",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Product": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "name",
          "url",
          "price",
          "currency",
          "stock_status",
          "description"
        ],
        "properties": {
          "id": {
            "type": "integer",
            "minimum": 1
          },
          "name": {
            "type": "string",
            "description": "Public product name."
          },
          "url": {
            "type": "string",
            "format": "uri"
          },
          "price": {
            "type": "string",
            "description": "Current WooCommerce price as a decimal string; empty when not priced. Check storefront for final order totals."
          },
          "currency": {
            "type": "string",
            "description": "Shop currency code."
          },
          "stock_status": {
            "type": "string",
            "enum": [
              "instock",
              "outofstock",
              "onbackorder"
            ]
          },
          "description": {
            "type": "string",
            "description": "Plain text short description, which may be empty."
          }
        }
      },
      "Business": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "name",
          "url",
          "telephone",
          "email",
          "address",
          "shop_url",
          "contact_url",
          "delivery_guidance"
        ],
        "properties": {
          "name": {
            "type": "string",
            "description": "name"
          },
          "url": {
            "type": "string",
            "description": "url"
          },
          "telephone": {
            "type": "string",
            "description": "telephone"
          },
          "email": {
            "type": "string",
            "description": "email"
          },
          "shop_url": {
            "type": "string",
            "description": "shop_url"
          },
          "contact_url": {
            "type": "string",
            "description": "contact_url"
          },
          "delivery_guidance": {
            "type": "string",
            "description": "delivery_guidance"
          },
          "address": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "streetAddress",
              "addressLocality",
              "postalCode",
              "addressCountry"
            ],
            "properties": {
              "streetAddress": {
                "type": "string",
                "description": "streetAddress"
              },
              "addressLocality": {
                "type": "string",
                "description": "addressLocality"
              },
              "postalCode": {
                "type": "string",
                "description": "postalCode"
              },
              "addressCountry": {
                "type": "string",
                "description": "addressCountry"
              }
            }
          }
        }
      },
      "ProductPage": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "items",
          "page",
          "per_page",
          "total",
          "total_pages"
        ],
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Product"
            }
          },
          "page": {
            "type": "integer",
            "minimum": 1
          },
          "per_page": {
            "type": "integer",
            "minimum": 1
          },
          "total": {
            "type": "integer",
            "minimum": 0
          },
          "total_pages": {
            "type": "integer",
            "minimum": 0
          }
        }
      },
      "Problem": {
        "type": "object",
        "required": [
          "type",
          "title",
          "status",
          "detail",
          "code",
          "resolution"
        ],
        "properties": {
          "type": {
            "type": "string",
            "format": "uri"
          },
          "title": {
            "type": "string",
            "description": "HTTP status title."
          },
          "status": {
            "type": "integer",
            "minimum": 400,
            "maximum": 599
          },
          "detail": {
            "type": "string",
            "description": "Human-readable explanation."
          },
          "code": {
            "type": "string",
            "description": "Machine-readable error code."
          },
          "resolution": {
            "type": "string",
            "description": "How to resolve the error."
          }
        }
      }
    }
  },
  "externalDocs": {
    "description": "Developer and agent guide",
    "url": "https://bloomdefleur.com.cy/developers/"
  }
}
