{
  "openapi": "3.1.0",
  "info": {
    "title": "Still Up Since",
    "version": "1.0.0",
    "description": "Public HTML catalog. Write endpoints are form POSTs, not a general REST API. Submissions are reviewed, not auto-published."
  },
  "servers": [
    {
      "url": "https://stillupsince.com"
    }
  ],
  "paths": {
    "/api/submit": {
      "post": {
        "summary": "Suggest a product",
        "requestBody": {
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "required": [
                  "name"
                ],
                "properties": {
                  "name": {
                    "type": "string"
                  },
                  "url": {
                    "type": "string"
                  },
                  "founded": {
                    "type": "string"
                  },
                  "category": {
                    "type": "string"
                  },
                  "verdict": {
                    "type": "string",
                    "enum": [
                      "still-up",
                      "wobbling",
                      "zombie",
                      "down"
                    ]
                  },
                  "note": {
                    "type": "string"
                  },
                  "company_url": {
                    "type": "string",
                    "description": "Honeypot. Leave empty."
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/vote": {
      "post": {
        "summary": "I still use this. One per hashed IP per 24h."
      }
    }
  }
}