{
  "openapi": "3.1.0",
  "info": {
    "title": "TRAK connector operations for SAP S/4HANA",
    "version": "1.0.0",
    "description": "Outbound operations used by TRAK. The provider hosts these endpoints. Field lists describe the portion used by the connector."
  },
  "servers": [
    {
      "url": "https://{host}/sap/opu/odata/sap",
      "variables": {
        "host": {
          "default": "sap.example.com",
          "description": "Hostname of your SAP communication arrangement. Adjust the OData service root to the configured deployment."
        }
      }
    }
  ],
  "security": [
    {
      "basic": []
    },
    {
      "bearer": []
    }
  ],
  "paths": {
    "/API_MAINTENANCEORDER;v=2/MaintenanceOrder": {
      "get": {
        "summary": "Read maintenance orders",
        "description": "Row identity: MaintenanceOrder. Display field: MaintenanceOrderDesc.",
        "parameters": [
          {
            "name": "$top",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 200,
              "default": 200
            },
            "description": "Sample size. The adapter bounds this to 1–200 rows."
          }
        ],
        "responses": {
          "200": {
            "description": "A bounded sample of records. Check external IDs and the continuation indicator before relying on the sample.",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "type": "object",
                      "properties": {
                        "value": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "MaintenanceOrder": {
                                "type": "string"
                              },
                              "MaintenanceOrderDesc": {
                                "type": "string"
                              }
                            }
                          }
                        }
                      },
                      "required": [
                        "value"
                      ]
                    },
                    {
                      "type": "object",
                      "properties": {
                        "d": {
                          "type": "object",
                          "properties": {
                            "results": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "MaintenanceOrder": {
                                    "type": "string"
                                  },
                                  "MaintenanceOrderDesc": {
                                    "type": "string"
                                  }
                                }
                              }
                            }
                          },
                          "required": [
                            "results"
                          ]
                        }
                      },
                      "required": [
                        "d"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "default": {
            "description": "Provider error or insufficient access to this entity."
          },
          "401": {
            "description": "ERP rejected the configured credentials."
          },
          "403": {
            "description": "Application lacks permission to this resource."
          },
          "404": {
            "description": "Resource or licensed module could not be found."
          },
          "429": {
            "description": "Rate limit reached; wait before requesting another sample."
          }
        },
        "operationId": "get_api_maintenanceorder_v_2_maintenanceorder"
      }
    },
    "/API_MAINTENANCEORDER;v=2/MaintenanceOrderOperation": {
      "get": {
        "summary": "Read maintenance operations",
        "description": "Row identity: MaintenanceOrder + MaintenanceOrderOperation + MaintenanceOrderSubOperation. Display field: OperationDescription.",
        "parameters": [
          {
            "name": "$top",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 200,
              "default": 200
            },
            "description": "Sample size. The adapter bounds this to 1–200 rows."
          }
        ],
        "responses": {
          "200": {
            "description": "A bounded sample of records. Check external IDs and the continuation indicator before relying on the sample.",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "type": "object",
                      "properties": {
                        "value": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "MaintenanceOrder": {
                                "type": "string"
                              },
                              "MaintenanceOrderOperation": {
                                "type": "string"
                              },
                              "MaintenanceOrderSubOperation": {
                                "type": "string"
                              },
                              "OperationDescription": {
                                "type": "string"
                              }
                            }
                          }
                        }
                      },
                      "required": [
                        "value"
                      ]
                    },
                    {
                      "type": "object",
                      "properties": {
                        "d": {
                          "type": "object",
                          "properties": {
                            "results": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "MaintenanceOrder": {
                                    "type": "string"
                                  },
                                  "MaintenanceOrderOperation": {
                                    "type": "string"
                                  },
                                  "MaintenanceOrderSubOperation": {
                                    "type": "string"
                                  },
                                  "OperationDescription": {
                                    "type": "string"
                                  }
                                }
                              }
                            }
                          },
                          "required": [
                            "results"
                          ]
                        }
                      },
                      "required": [
                        "d"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "default": {
            "description": "Provider error or insufficient access to this entity."
          },
          "401": {
            "description": "ERP rejected the configured credentials."
          },
          "403": {
            "description": "Application lacks permission to this resource."
          },
          "404": {
            "description": "Resource or licensed module could not be found."
          },
          "429": {
            "description": "Rate limit reached; wait before requesting another sample."
          }
        },
        "operationId": "get_api_maintenanceorder_v_2_maintenanceorderoperation"
      }
    },
    "/API_EQUIPMENT/Equipment": {
      "get": {
        "summary": "Read equipment",
        "description": "Row identity: Equipment + ValidityEndDate. Display field: EquipmentName.",
        "parameters": [
          {
            "name": "$top",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 200,
              "default": 200
            },
            "description": "Sample size. The adapter bounds this to 1–200 rows."
          }
        ],
        "responses": {
          "200": {
            "description": "A bounded sample of records. Check external IDs and the continuation indicator before relying on the sample.",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "type": "object",
                      "properties": {
                        "value": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "Equipment": {
                                "type": "string"
                              },
                              "ValidityEndDate": {
                                "type": "string"
                              },
                              "EquipmentName": {
                                "type": "string"
                              }
                            }
                          }
                        }
                      },
                      "required": [
                        "value"
                      ]
                    },
                    {
                      "type": "object",
                      "properties": {
                        "d": {
                          "type": "object",
                          "properties": {
                            "results": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "Equipment": {
                                    "type": "string"
                                  },
                                  "ValidityEndDate": {
                                    "type": "string"
                                  },
                                  "EquipmentName": {
                                    "type": "string"
                                  }
                                }
                              }
                            }
                          },
                          "required": [
                            "results"
                          ]
                        }
                      },
                      "required": [
                        "d"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "default": {
            "description": "Provider error or insufficient access to this entity."
          },
          "401": {
            "description": "ERP rejected the configured credentials."
          },
          "403": {
            "description": "Application lacks permission to this resource."
          },
          "404": {
            "description": "Resource or licensed module could not be found."
          },
          "429": {
            "description": "Rate limit reached; wait before requesting another sample."
          }
        },
        "operationId": "get_api_equipment_equipment"
      }
    }
  },
  "components": {
    "securitySchemes": {
      "bearer": {
        "type": "http",
        "scheme": "bearer"
      },
      "basic": {
        "type": "http",
        "scheme": "basic"
      }
    },
    "schemas": {}
  }
}
