{
  "openapi": "3.1.0",
  "info": {
    "title": "RFP Software Tools Public API",
    "version": "1.0.0",
    "description": "Read-only directory data from the RFP & DDQ Software Guide. No authentication is required.",
    "contact": {
      "name": "RFP Software Tools editorial team",
      "email": "developers@rfp-software-tools.com",
      "url": "https://rfp-software-tools.com/contact"
    }
  },
  "servers": [
    {
      "url": "https://rfp-software-tools.com",
      "description": "Production"
    }
  ],
  "tags": [
    {
      "name": "Directory",
      "description": "Published RFP, DDQ, and security-questionnaire software directory data."
    }
  ],
  "paths": {
    "/api/v1/site.json": {
      "get": {
        "operationId": "getDirectoryIdentity",
        "summary": "Get directory identity and discovery links",
        "description": "Returns the canonical site identity and links to the developer guide, OpenAPI document, and llms.txt.",
        "tags": [
          "Directory"
        ],
        "responses": {
          "200": {
            "description": "Directory identity and agent discovery links.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SiteResponse"
                }
              }
            }
          },
          "404": {
            "description": "The requested API resource does not exist.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/vendors.json": {
      "get": {
        "operationId": "listPublishedVendors",
        "summary": "List published software vendors",
        "description": "Returns the published vendor catalog with stable slugs, summaries, categories, pricing notes, scores, and canonical profile URLs.",
        "tags": [
          "Directory"
        ],
        "responses": {
          "200": {
            "description": "Published vendors in alphabetical order.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VendorListResponse"
                }
              }
            }
          },
          "404": {
            "description": "The requested API resource does not exist.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/categories.json": {
      "get": {
        "operationId": "listSoftwareCategories",
        "summary": "List directory categories",
        "description": "Returns every published software category, its vendor count, member vendors, and canonical category URL.",
        "tags": [
          "Directory"
        ],
        "responses": {
          "200": {
            "description": "Published directory categories.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CategoryListResponse"
                }
              }
            }
          },
          "404": {
            "description": "The requested API resource does not exist.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Meta": {
        "type": "object",
        "required": [
          "apiVersion"
        ],
        "properties": {
          "apiVersion": {
            "type": "string",
            "description": "Version of the public data contract."
          },
          "count": {
            "type": "integer",
            "minimum": 0,
            "description": "Number of records in data."
          },
          "source": {
            "type": "string",
            "format": "uri",
            "description": "Human-readable API documentation."
          }
        }
      },
      "SiteResponse": {
        "type": "object",
        "required": [
          "data",
          "meta"
        ],
        "properties": {
          "data": {
            "type": "object",
            "required": [
              "name",
              "brand",
              "description",
              "url",
              "developerDocumentation",
              "openapi",
              "llms",
              "contact",
              "emails"
            ],
            "properties": {
              "name": {
                "type": "string"
              },
              "brand": {
                "type": "string"
              },
              "description": {
                "type": "string"
              },
              "url": {
                "type": "string",
                "format": "uri"
              },
              "developerDocumentation": {
                "type": "string",
                "format": "uri"
              },
              "openapi": {
                "type": "string",
                "format": "uri"
              },
              "llms": {
                "type": "string",
                "format": "uri"
              },
              "contact": {
                "type": "string",
                "format": "uri",
                "description": "Public contact page for corrections, privacy, and API questions."
              },
              "emails": {
                "type": "object",
                "required": [
                  "corrections",
                  "privacy",
                  "developers"
                ],
                "properties": {
                  "corrections": {
                    "type": "string",
                    "format": "email"
                  },
                  "privacy": {
                    "type": "string",
                    "format": "email"
                  },
                  "developers": {
                    "type": "string",
                    "format": "email"
                  }
                }
              }
            }
          },
          "meta": {
            "$ref": "#/components/schemas/Meta"
          }
        }
      },
      "Vendor": {
        "type": "object",
        "required": [
          "slug",
          "name",
          "tagline",
          "summary",
          "categories",
          "pricing",
          "score",
          "url"
        ],
        "properties": {
          "slug": {
            "type": "string",
            "pattern": "^[a-z0-9-]+$",
            "description": "Stable vendor identifier."
          },
          "name": {
            "type": "string"
          },
          "tagline": {
            "type": "string"
          },
          "summary": {
            "type": "string"
          },
          "categories": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "pricing": {
            "type": "object",
            "required": [
              "model",
              "startingPrice"
            ],
            "properties": {
              "model": {
                "type": "string"
              },
              "startingPrice": {
                "type": "string"
              }
            }
          },
          "score": {
            "type": "number",
            "minimum": 0,
            "description": "Directory editorial score."
          },
          "url": {
            "type": "string",
            "format": "uri"
          }
        }
      },
      "VendorListResponse": {
        "type": "object",
        "required": [
          "data",
          "meta"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Vendor"
            }
          },
          "meta": {
            "$ref": "#/components/schemas/Meta"
          }
        }
      },
      "VendorReference": {
        "type": "object",
        "required": [
          "slug",
          "name"
        ],
        "properties": {
          "slug": {
            "type": "string",
            "pattern": "^[a-z0-9-]+$"
          },
          "name": {
            "type": "string"
          }
        }
      },
      "Category": {
        "type": "object",
        "required": [
          "slug",
          "name",
          "vendorCount",
          "vendors",
          "url"
        ],
        "properties": {
          "slug": {
            "type": "string",
            "pattern": "^[a-z0-9-]+$"
          },
          "name": {
            "type": "string"
          },
          "vendorCount": {
            "type": "integer",
            "minimum": 0
          },
          "vendors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/VendorReference"
            }
          },
          "url": {
            "type": "string",
            "format": "uri"
          }
        }
      },
      "CategoryListResponse": {
        "type": "object",
        "required": [
          "data",
          "meta"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Category"
            }
          },
          "meta": {
            "$ref": "#/components/schemas/Meta"
          }
        }
      },
      "ErrorResponse": {
        "type": "object",
        "required": [
          "error"
        ],
        "properties": {
          "error": {
            "type": "object",
            "required": [
              "code",
              "message",
              "resolution",
              "documentation"
            ],
            "properties": {
              "code": {
                "type": "string",
                "example": "api_not_found"
              },
              "message": {
                "type": "string",
                "example": "The requested API endpoint does not exist."
              },
              "resolution": {
                "type": "string",
                "example": "Use an endpoint declared in the OpenAPI document."
              },
              "documentation": {
                "type": "string",
                "format": "uri",
                "example": "https://rfp-software-tools.com/developers"
              }
            }
          }
        }
      }
    }
  }
}