{
 "openapi": "3.1.0",
 "info": {
  "title": "FacilityDesk ERP-Schnittstelle",
  "description": "Herstellerneutrale, NUR LESENDE REST-Schnittstelle (JSON, CSV, DATEV-nahe CSV fuer Arbeitszeiten) plus signierte Webhooks. Keine Kosten-/Materialdaten. Ressourcen: tickets (Scope tickets:read), tasks (Scope tasks:read), proofs (Scope proofs:read), time-entries (Scope time:read), objects (Scope objects:read), billing-areas (Scope objects:read). Authentifizierung: Authorization: Bearer fdk_… . Die Anbindung erfolgt durch die IT des Kunden.",
  "version": "1.0.0"
 },
 "servers": [
  {
   "url": "https://facility-desk.de/api/erp/v1"
  }
 ],
 "paths": {
  "/me": {
   "get": {
    "tags": [
     "erp"
    ],
    "summary": "Me",
    "operationId": "me_me_get",
    "parameters": [
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Me Me Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/{resource}": {
   "get": {
    "tags": [
     "erp"
    ],
    "summary": "List Resource",
    "operationId": "list_resource__resource__get",
    "parameters": [
     {
      "name": "resource",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Resource"
      }
     },
     {
      "name": "updated_since",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string",
         "format": "date-time"
        },
        {
         "type": "null"
        }
       ],
       "description": "ISO-8601, nur Datensaetze mit updated_at danach",
       "title": "Updated Since"
      },
      "description": "ISO-8601, nur Datensaetze mit updated_at danach"
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "maximum": 500,
       "minimum": 1,
       "default": 100,
       "title": "Limit"
      }
     },
     {
      "name": "offset",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "maximum": 1000000,
       "minimum": 0,
       "default": 0,
       "title": "Offset"
      }
     },
     {
      "name": "format",
      "in": "query",
      "required": false,
      "schema": {
       "type": "string",
       "pattern": "^(json|csv|datev)$",
       "default": "json",
       "title": "Format"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  }
 },
 "components": {
  "schemas": {
   "HTTPValidationError": {
    "properties": {
     "detail": {
      "items": {
       "$ref": "#/components/schemas/ValidationError"
      },
      "type": "array",
      "title": "Detail"
     }
    },
    "type": "object",
    "title": "HTTPValidationError"
   },
   "ValidationError": {
    "properties": {
     "loc": {
      "items": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "integer"
        }
       ]
      },
      "type": "array",
      "title": "Location"
     },
     "msg": {
      "type": "string",
      "title": "Message"
     },
     "type": {
      "type": "string",
      "title": "Error Type"
     },
     "input": {
      "title": "Input"
     },
     "ctx": {
      "type": "object",
      "title": "Context"
     }
    },
    "type": "object",
    "required": [
     "loc",
     "msg",
     "type"
    ],
    "title": "ValidationError"
   }
  },
  "securitySchemes": {
   "bearer": {
    "type": "http",
    "scheme": "bearer"
   }
  }
 },
 "security": [
  {
   "bearer": []
  }
 ]
}
