{
  "openapi": "3.0.0",
  "info": {
    "title": "kango-hooks",
    "version": "0.0.1",
    "description": "Hooks who use kango for getting data",
    "contact": {}
  },
  "paths": {
    "/carriages": {
      "get": {
        "x-controller-name": "InfoCarriageController",
        "x-operation-name": "find",
        "tags": [
          "InfoCarriageController"
        ],
        "responses": {
          "200": {
            "description": "Array of Carriage model instances",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/InfoCarriageWithRelations"
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "filter",
            "in": "query",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InfoCarriage.Filter"
                }
              }
            }
          }
        ],
        "operationId": "InfoCarriageController.find"
      }
    },
    "/create-carriage": {
      "post": {
        "x-controller-name": "InfoCarriageController",
        "x-operation-name": "postCreateCarriage",
        "tags": [
          "InfoCarriageController"
        ],
        "responses": {
          "200": {
            "description": "Create a carriage for company",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          },
          "x-parameter-index": 1
        },
        "operationId": "InfoCarriageController.postCreateCarriage"
      }
    },
    "/initialize": {
      "post": {
        "x-controller-name": "LoadController",
        "x-operation-name": "postCreateCarriage",
        "tags": [
          "LoadController"
        ],
        "responses": {
          "200": {
            "description": "Initialize all catalogs",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          },
          "x-parameter-index": 1
        },
        "operationId": "LoadController.postCreateCarriage"
      }
    }
  },
  "servers": [
    {
      "url": "https://hooks.kango.dlabs.com.mx"
    }
  ],
  "components": {
    "schemas": {
      "AuthCompanyWithRelations": {
        "title": "AuthCompanyWithRelations",
        "type": "object",
        "description": "(tsType: AuthCompanyWithRelations, schemaOptions: { includeRelations: true })",
        "properties": {
          "IdCompany": {
            "type": "number"
          },
          "CompanyName": {
            "type": "string"
          },
          "Apikey": {
            "type": "string"
          },
          "Disabled": {
            "type": "boolean"
          },
          "CreatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "UpdatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "Carriages": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/InfoCarriageWithRelations"
            }
          }
        },
        "required": [
          "CompanyName",
          "Apikey"
        ],
        "additionalProperties": false,
        "x-typescript-type": "AuthCompanyWithRelations"
      },
      "InfoCarriageWithRelations": {
        "title": "InfoCarriageWithRelations",
        "type": "object",
        "description": "(tsType: InfoCarriageWithRelations, schemaOptions: { includeRelations: true })",
        "properties": {
          "IdCarriage": {
            "type": "number"
          },
          "IdCompany": {
            "type": "number"
          },
          "IdTrip": {
            "type": "number"
          },
          "IdLocation": {
            "type": "number"
          },
          "IdCityOrigin": {
            "type": "number"
          },
          "IdCityDestiny": {
            "type": "number"
          },
          "IdUnitType": {
            "type": "number"
          },
          "Cup": {
            "type": "string"
          },
          "Rate": {
            "type": "number"
          },
          "Weight": {
            "type": "number"
          },
          "Eta": {
            "type": "string",
            "format": "date-time"
          },
          "MultipleLocation": {
            "type": "boolean"
          },
          "CloseCircuit": {
            "type": "boolean"
          },
          "CreatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "UpdatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "LicensePlate": {
            "type": "string"
          },
          "OperatorName": {
            "type": "string"
          },
          "carriageBelongsToCompany": {
            "$ref": "#/components/schemas/AuthCompanyWithRelations"
          }
        },
        "additionalProperties": false,
        "x-typescript-type": "InfoCarriageWithRelations"
      },
      "InfoCarriage.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": "InfoCarriage.ScopeFilter"
      },
      "InfoCarriage.IncludeFilter.Items": {
        "title": "InfoCarriage.IncludeFilter.Items",
        "type": "object",
        "properties": {
          "relation": {
            "type": "string"
          },
          "scope": {
            "$ref": "#/components/schemas/InfoCarriage.ScopeFilter"
          }
        }
      },
      "InfoCarriage.Filter": {
        "type": "object",
        "title": "InfoCarriage.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": "InfoCarriage.WhereFilter",
            "type": "object",
            "additionalProperties": true
          },
          "fields": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "IdCarriage": {
                    "type": "boolean"
                  },
                  "IdCompany": {
                    "type": "boolean"
                  },
                  "IdTrip": {
                    "type": "boolean"
                  },
                  "IdLocation": {
                    "type": "boolean"
                  },
                  "IdCityOrigin": {
                    "type": "boolean"
                  },
                  "IdCityDestiny": {
                    "type": "boolean"
                  },
                  "IdUnitType": {
                    "type": "boolean"
                  },
                  "Cup": {
                    "type": "boolean"
                  },
                  "Rate": {
                    "type": "boolean"
                  },
                  "Weight": {
                    "type": "boolean"
                  },
                  "Eta": {
                    "type": "boolean"
                  },
                  "MultipleLocation": {
                    "type": "boolean"
                  },
                  "CloseCircuit": {
                    "type": "boolean"
                  },
                  "CreatedAt": {
                    "type": "boolean"
                  },
                  "UpdatedAt": {
                    "type": "boolean"
                  },
                  "LicensePlate": {
                    "type": "boolean"
                  },
                  "OperatorName": {
                    "type": "boolean"
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "IdCarriage",
                    "IdCompany",
                    "IdTrip",
                    "IdLocation",
                    "IdCityOrigin",
                    "IdCityDestiny",
                    "IdUnitType",
                    "Cup",
                    "Rate",
                    "Weight",
                    "Eta",
                    "MultipleLocation",
                    "CloseCircuit",
                    "CreatedAt",
                    "UpdatedAt",
                    "LicensePlate",
                    "OperatorName"
                  ],
                  "example": "IdCarriage"
                },
                "uniqueItems": true
              }
            ],
            "title": "InfoCarriage.Fields"
          },
          "include": {
            "title": "InfoCarriage.IncludeFilter",
            "type": "array",
            "items": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/InfoCarriage.IncludeFilter.Items"
                },
                {
                  "type": "string"
                }
              ]
            }
          }
        },
        "additionalProperties": false,
        "x-typescript-type": "@loopback/repository#Filter<InfoCarriage>"
      }
    }
  }
}