{
  "openapi": "3.0.0",
  "info": {
    "title": "test application",
    "version": "1.0.0",
    "description": "Loopback 4 project for Fyllo Sensors",
    "contact": {
      "name": "Ankit Singh",
      "email": "ankitsingh.ujn@gmail.com"
    }
  },
  "paths": {
    "/MsgBrokers/auth": {
      "post": {
        "x-controller-name": "MsgBrokerController",
        "x-operation-name": "auth",
        "tags": [
          "MsgBrokerController"
        ],
        "responses": {
          "200": {
            "description": "MsgBroker model instance",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MsgBroker"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "imei": {
                    "type": "string"
                  }
                },
                "required": [
                  "imei"
                ]
              }
            }
          }
        },
        "operationId": "MsgBrokerController.auth"
      }
    },
    "/MsgBrokers/auth2": {
      "get": {
        "x-controller-name": "MsgBrokerController",
        "x-operation-name": "auth2",
        "tags": [
          "MsgBrokerController"
        ],
        "responses": {
          "200": {
            "description": "MsgBroker model instance",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MsgBroker"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "imei",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "operationId": "MsgBrokerController.auth2"
      }
    },
    "/MsgBrokers/count": {
      "get": {
        "x-controller-name": "MsgBrokerController",
        "x-operation-name": "count",
        "tags": [
          "MsgBrokerController"
        ],
        "responses": {
          "200": {
            "description": "MsgBroker model count",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/loopback.Count"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "where",
            "in": "query",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "title": "MsgBroker.WhereFilter",
                  "additionalProperties": true,
                  "x-typescript-type": "@loopback/repository#Where<MsgBroker>"
                }
              }
            }
          }
        ],
        "operationId": "MsgBrokerController.count"
      }
    },
    "/MsgBrokers/{id}": {
      "put": {
        "x-controller-name": "MsgBrokerController",
        "x-operation-name": "replaceById",
        "tags": [
          "MsgBrokerController"
        ],
        "responses": {
          "204": {
            "description": "No Content",
            "content": {
              "application/json": {
                "schema": {
                  "description": "MsgBroker PUT success"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MsgBroker"
              }
            }
          },
          "x-parameter-index": 1
        },
        "operationId": "MsgBrokerController.replaceById"
      },
      "patch": {
        "x-controller-name": "MsgBrokerController",
        "x-operation-name": "updateById",
        "tags": [
          "MsgBrokerController"
        ],
        "responses": {
          "204": {
            "description": "No Content",
            "content": {
              "application/json": {
                "schema": {
                  "description": "MsgBroker PATCH success"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MsgBrokerPartial"
              }
            }
          },
          "x-parameter-index": 1
        },
        "operationId": "MsgBrokerController.updateById"
      },
      "get": {
        "x-controller-name": "MsgBrokerController",
        "x-operation-name": "findById",
        "tags": [
          "MsgBrokerController"
        ],
        "responses": {
          "200": {
            "description": "MsgBroker model instance",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MsgBrokerWithRelations"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "filter",
            "in": "query",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MsgBroker.Filter"
                }
              }
            }
          }
        ],
        "operationId": "MsgBrokerController.findById"
      },
      "delete": {
        "x-controller-name": "MsgBrokerController",
        "x-operation-name": "deleteById",
        "tags": [
          "MsgBrokerController"
        ],
        "responses": {
          "204": {
            "description": "No Content",
            "content": {
              "application/json": {
                "schema": {
                  "description": "MsgBroker DELETE success"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "operationId": "MsgBrokerController.deleteById"
      }
    },
    "/MsgBrokers": {
      "post": {
        "x-controller-name": "MsgBrokerController",
        "x-operation-name": "create",
        "tags": [
          "MsgBrokerController"
        ],
        "responses": {
          "200": {
            "description": "MsgBroker model instance",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MsgBroker"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NewMsgBroker"
              }
            }
          }
        },
        "operationId": "MsgBrokerController.create"
      },
      "patch": {
        "x-controller-name": "MsgBrokerController",
        "x-operation-name": "updateAll",
        "tags": [
          "MsgBrokerController"
        ],
        "responses": {
          "200": {
            "description": "MsgBroker PATCH success count",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/loopback.Count"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "where",
            "in": "query",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "title": "MsgBroker.WhereFilter",
                  "additionalProperties": true,
                  "x-typescript-type": "@loopback/repository#Where<MsgBroker>"
                }
              }
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MsgBrokerPartial"
              }
            }
          }
        },
        "operationId": "MsgBrokerController.updateAll"
      },
      "get": {
        "x-controller-name": "MsgBrokerController",
        "x-operation-name": "find",
        "tags": [
          "MsgBrokerController"
        ],
        "responses": {
          "200": {
            "description": "Array of MsgBroker model instances",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MsgBrokerWithRelations"
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "filter",
            "in": "query",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MsgBroker.Filter1"
                }
              }
            }
          }
        ],
        "operationId": "MsgBrokerController.find"
      }
    },
    "/device-firmwares/count": {
      "get": {
        "x-controller-name": "DeviceFirmwareController",
        "x-operation-name": "count",
        "tags": [
          "DeviceFirmwareController"
        ],
        "responses": {
          "200": {
            "description": "DeviceFirmware model count",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/loopback.Count"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "where",
            "in": "query",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "title": "DeviceFirmware.WhereFilter",
                  "additionalProperties": true,
                  "x-typescript-type": "@loopback/repository#Where<DeviceFirmware>"
                }
              }
            }
          }
        ],
        "operationId": "DeviceFirmwareController.count"
      }
    },
    "/device-firmwares/{id}": {
      "put": {
        "x-controller-name": "DeviceFirmwareController",
        "x-operation-name": "replaceById",
        "tags": [
          "DeviceFirmwareController"
        ],
        "responses": {
          "204": {
            "description": "No Content",
            "content": {
              "application/json": {
                "schema": {
                  "description": "DeviceFirmware PUT success"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DeviceFirmware"
              }
            }
          },
          "x-parameter-index": 1
        },
        "operationId": "DeviceFirmwareController.replaceById"
      },
      "patch": {
        "x-controller-name": "DeviceFirmwareController",
        "x-operation-name": "updateById",
        "tags": [
          "DeviceFirmwareController"
        ],
        "responses": {
          "204": {
            "description": "No Content",
            "content": {
              "application/json": {
                "schema": {
                  "description": "DeviceFirmware PATCH success"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DeviceFirmwarePartial"
              }
            }
          },
          "x-parameter-index": 1
        },
        "operationId": "DeviceFirmwareController.updateById"
      },
      "get": {
        "x-controller-name": "DeviceFirmwareController",
        "x-operation-name": "findById",
        "tags": [
          "DeviceFirmwareController"
        ],
        "responses": {
          "200": {
            "description": "DeviceFirmware model instance",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeviceFirmwareWithRelations"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "filter",
            "in": "query",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeviceFirmware.Filter"
                }
              }
            }
          }
        ],
        "operationId": "DeviceFirmwareController.findById"
      },
      "delete": {
        "x-controller-name": "DeviceFirmwareController",
        "x-operation-name": "deleteById",
        "tags": [
          "DeviceFirmwareController"
        ],
        "responses": {
          "204": {
            "description": "No Content",
            "content": {
              "application/json": {
                "schema": {
                  "description": "DeviceFirmware DELETE success"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "operationId": "DeviceFirmwareController.deleteById"
      }
    },
    "/device-firmwares": {
      "post": {
        "x-controller-name": "DeviceFirmwareController",
        "x-operation-name": "create",
        "tags": [
          "DeviceFirmwareController"
        ],
        "responses": {
          "200": {
            "description": "DeviceFirmware model instance",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeviceFirmware"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NewDeviceFirmware"
              }
            }
          }
        },
        "operationId": "DeviceFirmwareController.create"
      },
      "patch": {
        "x-controller-name": "DeviceFirmwareController",
        "x-operation-name": "updateAll",
        "tags": [
          "DeviceFirmwareController"
        ],
        "responses": {
          "200": {
            "description": "DeviceFirmware PATCH success count",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/loopback.Count"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "where",
            "in": "query",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "title": "DeviceFirmware.WhereFilter",
                  "additionalProperties": true,
                  "x-typescript-type": "@loopback/repository#Where<DeviceFirmware>"
                }
              }
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DeviceFirmwarePartial"
              }
            }
          }
        },
        "operationId": "DeviceFirmwareController.updateAll"
      },
      "get": {
        "x-controller-name": "DeviceFirmwareController",
        "x-operation-name": "find",
        "tags": [
          "DeviceFirmwareController"
        ],
        "responses": {
          "200": {
            "description": "Array of DeviceFirmware model instances",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DeviceFirmwareWithRelations"
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "filter",
            "in": "query",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeviceFirmware.Filter1"
                }
              }
            }
          }
        ],
        "operationId": "DeviceFirmwareController.find"
      }
    },
    "/firmware/{type}/{imei}": {
      "get": {
        "x-controller-name": "FirmwareController",
        "x-operation-name": "getLatestFirmware",
        "tags": [
          "FirmwareController"
        ],
        "responses": {
          "200": {
            "description": "The file content",
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "type",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "imei",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "operationId": "FirmwareController.getLatestFirmware"
      }
    },
    "/firmware/{type}": {
      "post": {
        "x-controller-name": "FirmwareController",
        "x-operation-name": "create",
        "tags": [
          "FirmwareController"
        ],
        "responses": {
          "200": {
            "description": "Firmware model instance",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Firmware"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "type",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "x-parser": "stream",
              "schema": {
                "type": "object"
              }
            }
          },
          "description": "multipart/form-data value.",
          "required": true,
          "x-parameter-index": 1
        },
        "operationId": "FirmwareController.create"
      }
    },
    "/firmware/{id}": {
      "delete": {
        "x-controller-name": "FirmwareController",
        "x-operation-name": "deleteById",
        "tags": [
          "FirmwareController"
        ],
        "responses": {
          "204": {
            "description": "No Content",
            "content": {
              "application/json": {
                "schema": {
                  "description": "Firmware DELETE success"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "operationId": "FirmwareController.deleteById"
      }
    },
    "/firmware": {
      "get": {
        "x-controller-name": "FirmwareController",
        "x-operation-name": "find",
        "tags": [
          "FirmwareController"
        ],
        "responses": {
          "200": {
            "description": "Array of Firmware model instances",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/FirmwareWithRelations"
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "filter",
            "in": "query",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Firmware.Filter"
                }
              }
            }
          }
        ],
        "operationId": "FirmwareController.find"
      }
    },
    "/ping": {
      "get": {
        "x-controller-name": "PingController",
        "x-operation-name": "ping",
        "tags": [
          "PingController"
        ],
        "responses": {
          "200": {
            "description": "Ping Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PingResponse"
                }
              }
            }
          }
        },
        "operationId": "PingController.ping"
      }
    },
    "/plots/{plotId}/recalibrate": {
      "post": {
        "x-controller-name": "FirmwareController",
        "x-operation-name": "recalibratePlot",
        "tags": [
          "FirmwareController"
        ],
        "responses": {
          "200": {
            "description": "Recalibrate device",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "plotId": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "plotId",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "startDate",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "operationId": "FirmwareController.recalibratePlot"
      }
    }
  },
  "components": {
    "securitySchemes": {
      "jwt": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      }
    },
    "schemas": {
      "DeviceFirmware": {
        "title": "DeviceFirmware",
        "type": "object",
        "properties": {
          "displayName": {
            "type": "string"
          },
          "created_date": {
            "type": "string",
            "format": "date-time"
          },
          "modified_date": {
            "type": "string",
            "format": "date-time"
          },
          "updated_date": {
            "type": "string",
            "format": "date-time"
          },
          "id": {
            "type": "string"
          },
          "imei": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "version": {
            "type": "number"
          },
          "firmwareId": {
            "type": "string"
          }
        },
        "required": [
          "imei",
          "type",
          "version"
        ],
        "additionalProperties": false
      },
      "NewDeviceFirmware": {
        "title": "NewDeviceFirmware",
        "type": "object",
        "description": "(tsType: Omit<DeviceFirmware, 'id'>, schemaOptions: { title: 'NewDeviceFirmware', exclude: [ 'id' ] })",
        "properties": {
          "displayName": {
            "type": "string"
          },
          "created_date": {
            "type": "string",
            "format": "date-time"
          },
          "modified_date": {
            "type": "string",
            "format": "date-time"
          },
          "updated_date": {
            "type": "string",
            "format": "date-time"
          },
          "imei": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "version": {
            "type": "number"
          },
          "firmwareId": {
            "type": "string"
          }
        },
        "required": [
          "imei",
          "type",
          "version"
        ],
        "additionalProperties": false,
        "x-typescript-type": "Omit<DeviceFirmware, 'id'>"
      },
      "FirmwareWithRelations": {
        "title": "FirmwareWithRelations",
        "type": "object",
        "description": "(tsType: FirmwareWithRelations, schemaOptions: { includeRelations: true })",
        "properties": {
          "displayName": {
            "type": "string"
          },
          "created_date": {
            "type": "string",
            "format": "date-time"
          },
          "modified_date": {
            "type": "string",
            "format": "date-time"
          },
          "updated_date": {
            "type": "string",
            "format": "date-time"
          },
          "id": {
            "type": "string"
          },
          "version": {
            "type": "number"
          },
          "type": {
            "type": "string"
          },
          "data": {
            "type": "buffer"
          },
          "deviceFirmwareId": {
            "type": "string"
          }
        },
        "required": [
          "version",
          "type",
          "data"
        ],
        "additionalProperties": false,
        "x-typescript-type": "FirmwareWithRelations"
      },
      "DeviceFirmwareWithRelations": {
        "title": "DeviceFirmwareWithRelations",
        "type": "object",
        "description": "(tsType: DeviceFirmwareWithRelations, schemaOptions: { includeRelations: true })",
        "properties": {
          "displayName": {
            "type": "string"
          },
          "created_date": {
            "type": "string",
            "format": "date-time"
          },
          "modified_date": {
            "type": "string",
            "format": "date-time"
          },
          "updated_date": {
            "type": "string",
            "format": "date-time"
          },
          "id": {
            "type": "string"
          },
          "imei": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "version": {
            "type": "number"
          },
          "firmwareId": {
            "type": "string"
          },
          "firmware": {
            "$ref": "#/components/schemas/FirmwareWithRelations"
          }
        },
        "required": [
          "imei",
          "type",
          "version"
        ],
        "additionalProperties": false,
        "x-typescript-type": "DeviceFirmwareWithRelations"
      },
      "DeviceFirmwarePartial": {
        "title": "DeviceFirmwarePartial",
        "type": "object",
        "description": "(tsType: Partial<DeviceFirmware>, schemaOptions: { partial: true })",
        "properties": {
          "displayName": {
            "type": "string"
          },
          "created_date": {
            "type": "string",
            "format": "date-time"
          },
          "modified_date": {
            "type": "string",
            "format": "date-time"
          },
          "updated_date": {
            "type": "string",
            "format": "date-time"
          },
          "id": {
            "type": "string"
          },
          "imei": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "version": {
            "type": "number"
          },
          "firmwareId": {
            "type": "string"
          }
        },
        "additionalProperties": false,
        "x-typescript-type": "Partial<DeviceFirmware>"
      },
      "Firmware": {
        "title": "Firmware",
        "type": "object",
        "properties": {
          "displayName": {
            "type": "string"
          },
          "created_date": {
            "type": "string",
            "format": "date-time"
          },
          "modified_date": {
            "type": "string",
            "format": "date-time"
          },
          "updated_date": {
            "type": "string",
            "format": "date-time"
          },
          "id": {
            "type": "string"
          },
          "version": {
            "type": "number"
          },
          "type": {
            "type": "string"
          },
          "data": {
            "type": "buffer"
          },
          "deviceFirmwareId": {
            "type": "string"
          }
        },
        "required": [
          "version",
          "type",
          "data"
        ],
        "additionalProperties": false
      },
      "MsgBroker": {
        "title": "MsgBroker",
        "type": "object",
        "properties": {
          "bkr": {
            "type": "string"
          },
          "port": {
            "type": "string"
          },
          "usr": {
            "type": "string"
          },
          "pwd": {
            "type": "string"
          },
          "cli": {
            "type": "string"
          },
          "host": {
            "type": "string"
          },
          "prt": {
            "type": "string"
          },
          "topic": {
            "type": "string"
          }
        },
        "required": [
          "port",
          "host",
          "topic"
        ],
        "additionalProperties": false
      },
      "NewMsgBroker": {
        "title": "NewMsgBroker",
        "type": "object",
        "description": "(tsType: Omit<MsgBroker, 'bkr'>, schemaOptions: { title: 'NewMsgBroker', exclude: [ 'bkr' ] })",
        "properties": {
          "port": {
            "type": "string"
          },
          "usr": {
            "type": "string"
          },
          "pwd": {
            "type": "string"
          },
          "cli": {
            "type": "string"
          },
          "host": {
            "type": "string"
          },
          "prt": {
            "type": "string"
          },
          "topic": {
            "type": "string"
          }
        },
        "required": [
          "port",
          "host",
          "topic"
        ],
        "additionalProperties": false,
        "x-typescript-type": "Omit<MsgBroker, 'bkr'>"
      },
      "MsgBrokerWithRelations": {
        "title": "MsgBrokerWithRelations",
        "type": "object",
        "description": "(tsType: MsgBrokerWithRelations, schemaOptions: { includeRelations: true })",
        "properties": {
          "bkr": {
            "type": "string"
          },
          "port": {
            "type": "string"
          },
          "usr": {
            "type": "string"
          },
          "pwd": {
            "type": "string"
          },
          "cli": {
            "type": "string"
          },
          "host": {
            "type": "string"
          },
          "prt": {
            "type": "string"
          },
          "topic": {
            "type": "string"
          }
        },
        "required": [
          "port",
          "host",
          "topic"
        ],
        "additionalProperties": false,
        "x-typescript-type": "MsgBrokerWithRelations"
      },
      "MsgBrokerPartial": {
        "title": "MsgBrokerPartial",
        "type": "object",
        "description": "(tsType: Partial<MsgBroker>, schemaOptions: { partial: true })",
        "properties": {
          "bkr": {
            "type": "string"
          },
          "port": {
            "type": "string"
          },
          "usr": {
            "type": "string"
          },
          "pwd": {
            "type": "string"
          },
          "cli": {
            "type": "string"
          },
          "host": {
            "type": "string"
          },
          "prt": {
            "type": "string"
          },
          "topic": {
            "type": "string"
          }
        },
        "additionalProperties": false,
        "x-typescript-type": "Partial<MsgBroker>"
      },
      "loopback.Count": {
        "type": "object",
        "title": "loopback.Count",
        "x-typescript-type": "@loopback/repository#Count",
        "properties": {
          "count": {
            "type": "number"
          }
        }
      },
      "MsgBroker.Filter": {
        "type": "object",
        "title": "MsgBroker.Filter",
        "properties": {
          "offset": {
            "type": "integer",
            "minimum": 0
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "example": 100
          },
          "skip": {
            "type": "integer",
            "minimum": 0
          },
          "order": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            ]
          },
          "fields": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "bkr": {
                    "type": "boolean"
                  },
                  "port": {
                    "type": "boolean"
                  },
                  "usr": {
                    "type": "boolean"
                  },
                  "pwd": {
                    "type": "boolean"
                  },
                  "cli": {
                    "type": "boolean"
                  },
                  "host": {
                    "type": "boolean"
                  },
                  "prt": {
                    "type": "boolean"
                  },
                  "topic": {
                    "type": "boolean"
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "bkr",
                    "port",
                    "usr",
                    "pwd",
                    "cli",
                    "host",
                    "prt",
                    "topic"
                  ],
                  "example": "bkr"
                },
                "uniqueItems": true
              }
            ],
            "title": "MsgBroker.Fields"
          }
        },
        "additionalProperties": false,
        "x-typescript-type": "@loopback/repository#Filter<MsgBroker>"
      },
      "MsgBroker.Filter1": {
        "type": "object",
        "title": "MsgBroker.Filter",
        "properties": {
          "offset": {
            "type": "integer",
            "minimum": 0
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "example": 100
          },
          "skip": {
            "type": "integer",
            "minimum": 0
          },
          "order": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            ]
          },
          "where": {
            "title": "MsgBroker.WhereFilter",
            "type": "object",
            "additionalProperties": true
          },
          "fields": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "bkr": {
                    "type": "boolean"
                  },
                  "port": {
                    "type": "boolean"
                  },
                  "usr": {
                    "type": "boolean"
                  },
                  "pwd": {
                    "type": "boolean"
                  },
                  "cli": {
                    "type": "boolean"
                  },
                  "host": {
                    "type": "boolean"
                  },
                  "prt": {
                    "type": "boolean"
                  },
                  "topic": {
                    "type": "boolean"
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "bkr",
                    "port",
                    "usr",
                    "pwd",
                    "cli",
                    "host",
                    "prt",
                    "topic"
                  ],
                  "example": "bkr"
                },
                "uniqueItems": true
              }
            ],
            "title": "MsgBroker.Fields"
          }
        },
        "additionalProperties": false,
        "x-typescript-type": "@loopback/repository#Filter<MsgBroker>"
      },
      "DeviceFirmware.ScopeFilter": {
        "type": "object",
        "properties": {
          "offset": {
            "type": "integer",
            "minimum": 0
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "example": 100
          },
          "skip": {
            "type": "integer",
            "minimum": 0
          },
          "order": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            ]
          },
          "where": {
            "type": "object",
            "additionalProperties": true
          },
          "fields": {
            "oneOf": [
              {
                "type": "object",
                "properties": {},
                "additionalProperties": true
              },
              {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "uniqueItems": true
              }
            ]
          },
          "include": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {},
              "additionalProperties": true
            }
          }
        },
        "additionalProperties": false,
        "title": "DeviceFirmware.ScopeFilter"
      },
      "DeviceFirmware.IncludeFilter.Items": {
        "title": "DeviceFirmware.IncludeFilter.Items",
        "type": "object",
        "properties": {
          "relation": {
            "type": "string"
          },
          "scope": {
            "$ref": "#/components/schemas/DeviceFirmware.ScopeFilter"
          }
        }
      },
      "DeviceFirmware.Filter": {
        "type": "object",
        "title": "DeviceFirmware.Filter",
        "properties": {
          "offset": {
            "type": "integer",
            "minimum": 0
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "example": 100
          },
          "skip": {
            "type": "integer",
            "minimum": 0
          },
          "order": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            ]
          },
          "fields": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "displayName": {
                    "type": "boolean"
                  },
                  "created_date": {
                    "type": "boolean"
                  },
                  "modified_date": {
                    "type": "boolean"
                  },
                  "updated_date": {
                    "type": "boolean"
                  },
                  "id": {
                    "type": "boolean"
                  },
                  "imei": {
                    "type": "boolean"
                  },
                  "type": {
                    "type": "boolean"
                  },
                  "version": {
                    "type": "boolean"
                  },
                  "firmwareId": {
                    "type": "boolean"
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "displayName",
                    "created_date",
                    "modified_date",
                    "updated_date",
                    "id",
                    "imei",
                    "type",
                    "version",
                    "firmwareId"
                  ],
                  "example": "displayName"
                },
                "uniqueItems": true
              }
            ],
            "title": "DeviceFirmware.Fields"
          },
          "include": {
            "title": "DeviceFirmware.IncludeFilter",
            "type": "array",
            "items": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/DeviceFirmware.IncludeFilter.Items"
                },
                {
                  "type": "string"
                }
              ]
            }
          }
        },
        "additionalProperties": false,
        "x-typescript-type": "@loopback/repository#Filter<DeviceFirmware>"
      },
      "DeviceFirmware.Filter1": {
        "type": "object",
        "title": "DeviceFirmware.Filter",
        "properties": {
          "offset": {
            "type": "integer",
            "minimum": 0
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "example": 100
          },
          "skip": {
            "type": "integer",
            "minimum": 0
          },
          "order": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            ]
          },
          "where": {
            "title": "DeviceFirmware.WhereFilter",
            "type": "object",
            "additionalProperties": true
          },
          "fields": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "displayName": {
                    "type": "boolean"
                  },
                  "created_date": {
                    "type": "boolean"
                  },
                  "modified_date": {
                    "type": "boolean"
                  },
                  "updated_date": {
                    "type": "boolean"
                  },
                  "id": {
                    "type": "boolean"
                  },
                  "imei": {
                    "type": "boolean"
                  },
                  "type": {
                    "type": "boolean"
                  },
                  "version": {
                    "type": "boolean"
                  },
                  "firmwareId": {
                    "type": "boolean"
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "displayName",
                    "created_date",
                    "modified_date",
                    "updated_date",
                    "id",
                    "imei",
                    "type",
                    "version",
                    "firmwareId"
                  ],
                  "example": "displayName"
                },
                "uniqueItems": true
              }
            ],
            "title": "DeviceFirmware.Fields"
          },
          "include": {
            "title": "DeviceFirmware.IncludeFilter",
            "type": "array",
            "items": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/DeviceFirmware.IncludeFilter.Items"
                },
                {
                  "type": "string"
                }
              ]
            }
          }
        },
        "additionalProperties": false,
        "x-typescript-type": "@loopback/repository#Filter<DeviceFirmware>"
      },
      "Firmware.Filter": {
        "type": "object",
        "title": "Firmware.Filter",
        "properties": {
          "offset": {
            "type": "integer",
            "minimum": 0
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "example": 100
          },
          "skip": {
            "type": "integer",
            "minimum": 0
          },
          "order": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            ]
          },
          "where": {
            "title": "Firmware.WhereFilter",
            "type": "object",
            "additionalProperties": true
          },
          "fields": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "displayName": {
                    "type": "boolean"
                  },
                  "created_date": {
                    "type": "boolean"
                  },
                  "modified_date": {
                    "type": "boolean"
                  },
                  "updated_date": {
                    "type": "boolean"
                  },
                  "id": {
                    "type": "boolean"
                  },
                  "version": {
                    "type": "boolean"
                  },
                  "type": {
                    "type": "boolean"
                  },
                  "data": {
                    "type": "boolean"
                  },
                  "deviceFirmwareId": {
                    "type": "boolean"
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "displayName",
                    "created_date",
                    "modified_date",
                    "updated_date",
                    "id",
                    "version",
                    "type",
                    "data",
                    "deviceFirmwareId"
                  ],
                  "example": "displayName"
                },
                "uniqueItems": true
              }
            ],
            "title": "Firmware.Fields"
          }
        },
        "additionalProperties": false,
        "x-typescript-type": "@loopback/repository#Filter<Firmware>"
      },
      "PingResponse": {
        "type": "object",
        "title": "PingResponse",
        "properties": {
          "greeting": {
            "type": "string"
          },
          "date": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "headers": {
            "type": "object",
            "properties": {
              "Content-Type": {
                "type": "string"
              }
            },
            "additionalProperties": true
          }
        }
      }
    }
  },
  "security": [
    {
      "jwt": []
    }
  ],
  "servers": [
    {
      "url": "https://sensor.fyllo.in"
    }
  ]
}