{
  "openapi": "3.0.0",
  "info": {
    "title": "Maestro API",
    "version": "1.0.0",
    "description": "REST API for searching Maestro's free tools, blog posts, and city coverage for Italian restaurants.",
    "contact": {
      "email": "info@mymaestro.app"
    }
  },
  "servers": [
    {
      "url": "https://www.mymaestro.app"
    }
  ],
  "paths": {
    "/api/v1/tools": {
      "get": {
        "summary": "Search free tools",
        "description": "Search Maestro's free tools for Italian restaurants by keyword.",
        "operationId": "searchTools",
        "tags": [
          "Tools"
        ],
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "description": "Search keyword",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "List of matching tools",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "name": {
                        "type": "string"
                      },
                      "slug": {
                        "type": "string"
                      },
                      "url": {
                        "type": "string",
                        "format": "uri"
                      },
                      "description": {
                        "type": "string"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/blog": {
      "get": {
        "summary": "Search blog posts",
        "description": "Search Maestro's blog posts about restaurant management by keyword (Italian).",
        "operationId": "searchBlog",
        "tags": [
          "Blog"
        ],
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "description": "Search keyword (Italian)",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "List of matching blog posts (up to 5)",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "title": {
                        "type": "string"
                      },
                      "slug": {
                        "type": "string"
                      },
                      "url": {
                        "type": "string",
                        "format": "uri"
                      },
                      "description": {
                        "type": "string"
                      },
                      "readingTime": {
                        "type": "integer"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/cities": {
      "get": {
        "summary": "Search city pages",
        "description": "Search Maestro's city coverage pages by city name or region.",
        "operationId": "searchCities",
        "tags": [
          "Cities"
        ],
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "description": "City name or region (Italian or English)",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "List of matching cities",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "name": {
                        "type": "string"
                      },
                      "slug": {
                        "type": "string"
                      },
                      "url": {
                        "type": "string",
                        "format": "uri"
                      },
                      "region": {
                        "type": "string"
                      },
                      "restaurantCount": {
                        "type": "string"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}