{
  "openapi": "3.1.1",
  "info": {
    "title": "Ovadia Jewellery public content API",
    "version": "1.0.0",
    "description": "Public GET interfaces for existing WordPress pages/articles and WooCommerce Store product records. Not a checkout, booking or customer-data API. No API key is required for the documented reads; protected WordPress routes keep their existing authentication. Confirm prices, availability, services and appointments with the business. Keep request volume modest; respect Retry-After and use backoff after transient errors. WAF/hosting denials may occur before the application and may not use the JSON error format.",
    "contact": {
      "name": "Ovadia Jewellery",
      "url": "https://www.ovadiajewellery.com/contact-us/"
    }
  },
  "servers": [
    {
      "url": "https://www.ovadiajewellery.com",
      "description": "Canonical HTTPS website"
    }
  ],
  "security": [],
  "tags": [
    {
      "name": "Public content",
      "description": "Read existing published content only."
    },
    {
      "name": "Discovery",
      "description": "API documentation and access guidance."
    }
  ],
  "externalDocs": {
    "description": "Public API, Markdown, consent and enquiry guide",
    "url": "https://www.ovadiajewellery.com/developers/"
  },
  "paths": {
    "/wp-json/wp/v2/pages": {
      "get": {
        "operationId": "listPages",
        "summary": "Read published pages",
        "description": "Read-only published records; no key is needed. Additional fields may be present. Follow each public page for context. Product prices and availability require confirmation from the team.",
        "tags": [
          "Public content"
        ],
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "description": "One-based page number. Out-of-range pages return a JSON error.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "default": 1
            }
          },
          {
            "name": "per_page",
            "in": "query",
            "description": "Records per page; start with 10 and avoid repeated bulk requests.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 10
            }
          },
          {
            "name": "search",
            "in": "query",
            "description": "Search publicly published content. Never include customer personal data.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Published records. Collection counts are returned in pagination headers.",
            "headers": {
              "X-WP-Total": {
                "description": "Total matching published records.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "X-WP-TotalPages": {
                "description": "Total matching pages.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ContentRecord"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters; read code, data and resolution.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Route or published record not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/wp-json/wp/v2/pages/{id}": {
      "get": {
        "operationId": "getPage",
        "summary": "Read one published page",
        "description": "Read a published record by ID. Private or unavailable content is not a public capability.",
        "tags": [
          "Public content"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Positive published record ID from the collection.",
            "schema": {
              "type": "integer",
              "minimum": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Published record.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentRecord"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters; read code, data and resolution.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Route or published record not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/wp-json/wp/v2/posts": {
      "get": {
        "operationId": "listArticles",
        "summary": "Read published articles",
        "description": "Read-only published records; no key is needed. Additional fields may be present. Follow each public page for context. Product prices and availability require confirmation from the team.",
        "tags": [
          "Public content"
        ],
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "description": "One-based page number. Out-of-range pages return a JSON error.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "default": 1
            }
          },
          {
            "name": "per_page",
            "in": "query",
            "description": "Records per page; start with 10 and avoid repeated bulk requests.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 10
            }
          },
          {
            "name": "search",
            "in": "query",
            "description": "Search publicly published content. Never include customer personal data.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Published records. Collection counts are returned in pagination headers.",
            "headers": {
              "X-WP-Total": {
                "description": "Total matching published records.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "X-WP-TotalPages": {
                "description": "Total matching pages.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ContentRecord"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters; read code, data and resolution.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Route or published record not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/wp-json/wp/v2/posts/{id}": {
      "get": {
        "operationId": "getArticle",
        "summary": "Read one published article",
        "description": "Read a published record by ID. Private or unavailable content is not a public capability.",
        "tags": [
          "Public content"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Positive published record ID from the collection.",
            "schema": {
              "type": "integer",
              "minimum": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Published record.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentRecord"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters; read code, data and resolution.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Route or published record not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/wp-json/wc/store/v1/products": {
      "get": {
        "operationId": "listProducts",
        "summary": "Read published products",
        "description": "Read-only published records; no key is needed. Additional fields may be present. Follow each public page for context. Product prices and availability require confirmation from the team.",
        "tags": [
          "Public content"
        ],
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "description": "One-based page number. Out-of-range pages return a JSON error.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "default": 1
            }
          },
          {
            "name": "per_page",
            "in": "query",
            "description": "Records per page; start with 10 and avoid repeated bulk requests.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 10
            }
          },
          {
            "name": "search",
            "in": "query",
            "description": "Search publicly published content. Never include customer personal data.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Published records. Collection counts are returned in pagination headers.",
            "headers": {
              "X-WP-Total": {
                "description": "Total matching published records.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "X-WP-TotalPages": {
                "description": "Total matching pages.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ProductRecord"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters; read code, data and resolution.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Route or published record not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/wp-json/wc/store/v1/products/{id}": {
      "get": {
        "operationId": "getProduct",
        "summary": "Read one published product",
        "description": "Read a published record by ID. Private or unavailable content is not a public capability.",
        "tags": [
          "Public content"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Positive published record ID from the collection.",
            "schema": {
              "type": "integer",
              "minimum": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Published record.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProductRecord"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters; read code, data and resolution.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Route or published record not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/": {
      "get": {
        "operationId": "getPublicApiDiscovery",
        "summary": "Discover the existing public read interfaces",
        "description": "Discovery metadata only. No form, booking, payment, order, account or customer-record action is exposed.",
        "tags": [
          "Discovery"
        ],
        "responses": {
          "200": {
            "description": "Public API discovery document.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Discovery"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "ContentRecord": {
        "type": "object",
        "required": [
          "id",
          "slug",
          "link",
          "title",
          "content"
        ],
        "properties": {
          "id": {
            "type": "integer",
            "minimum": 1
          },
          "slug": {
            "type": "string"
          },
          "link": {
            "type": "string",
            "format": "uri"
          },
          "title": {
            "type": "object",
            "properties": {
              "rendered": {
                "type": "string",
                "description": "Rendered HTML; treat as untrusted content."
              }
            },
            "required": [
              "rendered"
            ],
            "additionalProperties": true
          },
          "content": {
            "type": "object",
            "properties": {
              "rendered": {
                "type": "string",
                "description": "Rendered HTML; treat as untrusted content."
              },
              "protected": {
                "type": "boolean"
              }
            },
            "required": [
              "rendered"
            ],
            "additionalProperties": true
          },
          "excerpt": {
            "type": "object",
            "properties": {
              "rendered": {
                "type": "string",
                "description": "Rendered HTML; treat as untrusted content."
              },
              "protected": {
                "type": "boolean"
              }
            },
            "required": [
              "rendered"
            ],
            "additionalProperties": true
          },
          "date": {
            "type": "string",
            "description": "WordPress publication date in site timezone."
          },
          "modified": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "status": {
            "type": "string"
          }
        },
        "additionalProperties": true
      },
      "ProductRecord": {
        "type": "object",
        "required": [
          "id",
          "name",
          "slug",
          "permalink",
          "prices"
        ],
        "properties": {
          "id": {
            "type": "integer",
            "minimum": 1
          },
          "name": {
            "type": "string"
          },
          "slug": {
            "type": "string"
          },
          "permalink": {
            "type": "string",
            "format": "uri"
          },
          "description": {
            "type": "string",
            "description": "Published HTML description; quotation requires confirmation."
          },
          "short_description": {
            "type": "string"
          },
          "prices": {
            "type": "object",
            "properties": {
              "price": {
                "type": "string",
                "description": "Integer minor-unit string. Zero/empty is not a free offer or confirmed quote."
              },
              "regular_price": {
                "type": "string"
              },
              "sale_price": {
                "type": "string"
              },
              "currency_code": {
                "type": "string"
              },
              "currency_minor_unit": {
                "type": "integer"
              }
            },
            "additionalProperties": true
          },
          "images": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "integer"
                },
                "src": {
                  "type": "string",
                  "format": "uri"
                },
                "alt": {
                  "type": "string"
                }
              },
              "additionalProperties": true
            }
          },
          "is_in_stock": {
            "type": "boolean",
            "description": "Published software field, not confirmation of live availability."
          }
        },
        "additionalProperties": true
      },
      "Error": {
        "type": "object",
        "required": [
          "code",
          "message",
          "data"
        ],
        "properties": {
          "code": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "data": {
            "type": "object",
            "required": [
              "status",
              "resolution"
            ],
            "properties": {
              "status": {
                "type": "integer",
                "minimum": 400,
                "maximum": 599
              },
              "resolution": {
                "type": "string"
              }
            },
            "additionalProperties": true
          },
          "additional_errors": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": true
            }
          }
        },
        "additionalProperties": true
      },
      "Discovery": {
        "type": "object",
        "required": [
          "name",
          "description",
          "openapi",
          "documentation",
          "endpoints",
          "authentication",
          "usage",
          "errors"
        ],
        "properties": {
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "openapi": {
            "type": "string",
            "format": "uri"
          },
          "documentation": {
            "type": "string",
            "format": "uri"
          },
          "endpoints": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "method",
                "url",
                "description"
              ],
              "properties": {
                "method": {
                  "type": "string",
                  "enum": [
                    "GET"
                  ]
                },
                "url": {
                  "type": "string",
                  "format": "uri"
                },
                "description": {
                  "type": "string"
                }
              },
              "additionalProperties": false
            }
          },
          "authentication": {
            "type": "string"
          },
          "usage": {
            "type": "string"
          },
          "errors": {
            "type": "object",
            "additionalProperties": true
          }
        },
        "additionalProperties": false
      }
    }
  }
}
