{
  "openapi": "3.0.1",
  "info": {
    "title": "rfpapi.ai",
    "description": "API for North American government contracts and RFPs.",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://rfpapi.ai"
    }
  ],
  "paths": {
    "/api/rfps": {
      "get": {
        "summary": "Retrieve a list of government contracts.",
        "operationId": "getRFPs",
        "parameters": [
          {
            "name": "state",
            "in": "query",
            "description": "2-letter state abbreviation (e.g., TX, NY, CA).",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "category",
            "in": "query",
            "description": "Category of the contract (e.g., software, construction).",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response containing an array of contracts.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "results": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "title": {
                            "type": "string"
                          },
                          "agency": {
                            "type": "string"
                          },
                          "state": {
                            "type": "string"
                          },
                          "deadline": {
                            "type": "string"
                          },
                          "description": {
                            "type": "string"
                          },
                          "url": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}