Gesetzbuch Deutschland

Gesetzbuch Deutschland · GPT-Aktionen

German Laws Website Content Fetcher

API for fetching content from the Gesetze-im-Internet website

  • GET /{searchPath}Fetch content based on the specified path
Ursprüngliches API-Schema
{
  "openapi": "3.1.0",
  "info": {
    "title": "German Laws Website Content Fetcher",
    "description": "API for fetching content from the Gesetze-im-Internet website",
    "version": "v1.0.0"
  },
  "servers": [
    {
      "url": "https://www.gesetze-im-internet.de"
    }
  ],
  "paths": {
    "/{searchPath}": {
      "get": {
        "summary": "Fetch content based on the specified path",
        "operationId": "fetchContent",
        "parameters": [
          {
            "name": "searchPath",
            "in": "path",
            "required": true,
            "description": "Path to search or retrieve data from the website",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Content retrieved from the specified path",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              },
              "application/pdf": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "application/xml": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Content not found at the specified path"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {}
  }
}