{
  "openapi": "3.1.0",
  "info": {
    "title": "Repair Rite public service directory",
    "version": "1.0.0",
    "description": "Find our services and check online intake. Customers review requests in the linked forms. Our team confirms appointments directly."
  },
  "servers": [
    {
      "url": "https://repairriteautocare.com"
    }
  ],
  "paths": {
    "/service-catalog.json": {
      "get": {
        "operationId": "getServiceCatalog",
        "summary": "Find our service categories and customer request links.",
        "responses": {
          "200": {
            "description": "Successful read.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "schemaVersion",
                    "business",
                    "services",
                    "intake",
                    "links"
                  ],
                  "properties": {
                    "schemaVersion": {
                      "type": "integer",
                      "enum": [
                        1
                      ]
                    },
                    "business": {
                      "type": "object",
                      "required": [
                        "name",
                        "legalName",
                        "phone",
                        "locality",
                        "region",
                        "country",
                        "timeZone",
                        "serviceLocationNote",
                        "website",
                        "contactHours"
                      ],
                      "properties": {
                        "name": {
                          "type": "string"
                        },
                        "legalName": {
                          "type": "string"
                        },
                        "phone": {
                          "type": "string"
                        },
                        "locality": {
                          "type": "string"
                        },
                        "region": {
                          "type": "string"
                        },
                        "country": {
                          "type": "string"
                        },
                        "timeZone": {
                          "type": "string"
                        },
                        "serviceLocationNote": {
                          "type": "string"
                        },
                        "website": {
                          "type": "string",
                          "format": "uri"
                        },
                        "contactHours": {
                          "type": "object",
                          "required": [
                            "days",
                            "opens",
                            "closes"
                          ],
                          "properties": {
                            "days": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "opens": {
                              "type": "string"
                            },
                            "closes": {
                              "type": "string"
                            }
                          }
                        }
                      }
                    },
                    "services": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "id",
                          "name",
                          "description",
                          "url",
                          "requestUrl",
                          "detailsToPrepare"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "enum": [
                              "repair",
                              "fleet",
                              "inspection"
                            ]
                          },
                          "name": {
                            "type": "string"
                          },
                          "description": {
                            "type": "string"
                          },
                          "url": {
                            "type": "string",
                            "format": "uri"
                          },
                          "requestUrl": {
                            "type": "string",
                            "format": "uri"
                          },
                          "detailsToPrepare": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          }
                        }
                      }
                    },
                    "intake": {
                      "type": "object",
                      "required": [
                        "statusUrl",
                        "confirmationNote"
                      ],
                      "properties": {
                        "statusUrl": {
                          "type": "string",
                          "format": "uri"
                        },
                        "confirmationNote": {
                          "type": "string"
                        }
                      }
                    },
                    "links": {
                      "type": "object",
                      "required": [
                        "contact",
                        "contactCard",
                        "privacy",
                        "googleMaps",
                        "agentGuide",
                        "mcp"
                      ],
                      "properties": {
                        "contact": {
                          "type": "string",
                          "format": "uri"
                        },
                        "contactCard": {
                          "type": "string",
                          "format": "uri"
                        },
                        "privacy": {
                          "type": "string",
                          "format": "uri"
                        },
                        "googleMaps": {
                          "type": "string",
                          "format": "uri"
                        },
                        "agentGuide": {
                          "type": "string",
                          "format": "uri"
                        },
                        "mcp": {
                          "type": "string",
                          "format": "uri"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/intake-status.json": {
      "get": {
        "operationId": "getIntakeStatus",
        "summary": "Check whether online requests are open now.",
        "responses": {
          "200": {
            "description": "Successful read.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "accepting"
                  ],
                  "properties": {
                    "accepting": {
                      "type": "boolean"
                    }
                  }
                }
              }
            }
          },
          "default": {
            "description": "Status unavailable. Use the shop's call or text option."
          }
        }
      }
    }
  }
}
