Di

Di · GPT-Aktionen

Contrast Checker

  • GET /contrastGet contrast ratio and WCAG rating
Ursprüngliches API-Schema
{
  "openapi": "3.1.0",
  "info": {
    "title": "Contrast Checker",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://contrast-checker-api.elenes-ai.repl.co"
    }
  ],
  "paths": {
    "/contrast": {
      "get": {
        "operationId": "getContrastInfo",
        "summary": "Get contrast ratio and WCAG rating",
        "parameters": [
          {
            "name": "fg",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "example": "#000000"
            }
          },
          {
            "name": "bg",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "example": "#FFFFFF"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returns contrast ratio and WCAG score"
          }
        }
      }
    }
  }
}