{
  "openapi": "3.0.0",
  "info": {
    "title": "ExploreTreatments API",
    "description": "Educational telehealth comparison and treatment information API",
    "version": "1.0.0",
    "contact": {
      "name": "ExploreTreatments",
      "url": "https://www.exploretreatments.com/contact"
    }
  },
  "servers": [
    {
      "url": "https://www.exploretreatments.com",
      "description": "Production server"
    }
  ],
  "paths": {
    "/api/verticals": {
      "get": {
        "summary": "Get all treatment categories",
        "description": "Returns list of all treatment verticals with metadata including name, description, status, and navigation links",
        "operationId": "getVerticals",
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "slug": {
                        "type": "string"
                      },
                      "name": {
                        "type": "string"
                      },
                      "description": {
                        "type": "string"
                      },
                      "status": {
                        "type": "string",
                        "enum": [
                          "live",
                          "coming_soon"
                        ]
                      },
                      "color": {
                        "type": "string"
                      },
                      "metaTitle": {
                        "type": "string"
                      },
                      "metaDescription": {
                        "type": "string"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/guides": {
      "get": {
        "summary": "Get educational guides",
        "description": "Returns educational guides filtered by vertical category",
        "operationId": "getGuides",
        "parameters": [
          {
            "name": "vertical",
            "in": "query",
            "description": "Filter guides by treatment vertical",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "slug": {
                        "type": "string"
                      },
                      "title": {
                        "type": "string"
                      },
                      "description": {
                        "type": "string"
                      },
                      "vertical": {
                        "type": "string"
                      },
                      "readTime": {
                        "type": "string"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/providers": {
      "get": {
        "summary": "Get provider listings",
        "description": "Returns provider information filtered by vertical category",
        "operationId": "getProviders",
        "parameters": [
          {
            "name": "vertical",
            "in": "query",
            "description": "Filter providers by treatment vertical",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "slug": {
                        "type": "string"
                      },
                      "name": {
                        "type": "string"
                      },
                      "description": {
                        "type": "string"
                      },
                      "rating": {
                        "type": "number"
                      },
                      "features": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "url": {
                        "type": "string"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/search": {
      "get": {
        "summary": "Search site content",
        "description": "Search across providers, guides, and verticals",
        "operationId": "searchContent",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "description": "Search query",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "type",
            "in": "query",
            "description": "Filter by content type",
            "schema": {
              "type": "string",
              "enum": [
                "provider",
                "guide",
                "vertical",
                "all"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "results": {
                      "type": "array"
                    },
                    "count": {
                      "type": "number"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/topics": {
      "get": {
        "summary": "Get topic index",
        "description": "Returns keyword and topic index for site navigation",
        "operationId": "getTopics",
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "topic": {
                        "type": "string"
                      },
                      "related_verticals": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/comparison": {
      "get": {
        "summary": "Get comparison articles hub",
        "description": "Returns comparison articles homepage with links to all provider comparisons",
        "operationId": "getComparisonHub",
        "responses": {
          "200": {
            "description": "Successful HTML response with comparison article listings"
          }
        }
      }
    },
    "/comparison/{slug}": {
      "get": {
        "summary": "Get specific comparison article",
        "description": "Returns detailed head-to-head comparison between two providers including pricing, features, and recommendations",
        "operationId": "getComparison",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "description": "Comparison slug in format provider1-vs-provider2",
            "schema": {
              "type": "string"
            },
            "example": "eden-vs-measured"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response with comparison article",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string",
                  "description": "HTML page with structured comparison including quick verdict, pricing breakdown, medication comparison, and FAQs"
                }
              }
            }
          },
          "404": {
            "description": "Comparison not found"
          }
        }
      }
    },
    "/vs": {
      "get": {
        "summary": "Get VS comparison hub",
        "description": "Returns VS-style comparison articles hub",
        "operationId": "getVsHub",
        "responses": {
          "200": {
            "description": "Successful HTML response with VS comparison listings"
          }
        }
      }
    },
    "/vs/{slug}": {
      "get": {
        "summary": "Get specific VS comparison",
        "description": "Returns VS-style comparison article between providers",
        "operationId": "getVsComparison",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "description": "VS comparison slug",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response with VS comparison article"
          },
          "404": {
            "description": "Comparison not found"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Error": {
        "type": "object",
        "properties": {
          "error": {
            "type": "string"
          },
          "message": {
            "type": "string"
          }
        }
      }
    }
  }
}