{
  "openapi": "3.0.0",
  "info": {
    "title": "web-prevencionriesgo-landingpage-api",
    "version": "0.0.1",
    "description": "Visual Studio Code",
    "contact": {
      "name": "hcayul",
      "email": "hcayul@morrisopazo.com"
    }
  },
  "paths": {
    "/contacto": {
      "post": {
        "x-controller-name": "ConContactoController",
        "x-operation-name": "create",
        "tags": [
          "ConContactoController"
        ],
        "responses": {
          "200": {
            "description": "ConContacto model instance",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConContacto"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NewConContacto"
              }
            }
          }
        },
        "operationId": "ConContactoController.create"
      },
      "get": {
        "x-controller-name": "ConContactoController",
        "x-operation-name": "find",
        "tags": [
          "ConContactoController"
        ],
        "responses": {
          "200": {
            "description": "Array of ConContacto model instances",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ConContactoWithRelations"
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "filter",
            "in": "query",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConContacto.Filter"
                }
              }
            }
          }
        ],
        "operationId": "ConContactoController.find"
      }
    },
    "/usuario/login": {
      "post": {
        "x-controller-name": "LoginController",
        "x-operation-name": "login",
        "tags": [
          "LoginController"
        ],
        "responses": {
          "200": {
            "description": "Token",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "token": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "rut",
                  "password"
                ],
                "properties": {
                  "rut": {
                    "type": "string"
                  },
                  "password": {
                    "type": "string",
                    "minLength": 0
                  }
                }
              }
            }
          },
          "description": "The input of login function",
          "required": true
        },
        "operationId": "LoginController.login"
      }
    }
  },
  "servers": [
    {
      "url": "http://www.landingpageapi.kysconsultora.cl"
    }
  ],
  "components": {
    "schemas": {
      "ConContacto": {
        "title": "ConContacto",
        "type": "object",
        "properties": {
          "conId": {
            "type": "number"
          },
          "conNombre": {
            "type": "string"
          },
          "conEmpresa": {
            "type": "string"
          },
          "conCargo": {
            "type": "string"
          },
          "conTamanho": {
            "type": "string"
          },
          "conCorreo": {
            "type": "string"
          },
          "conAceptaContacto": {
            "type": "string"
          },
          "conTimestamp": {
            "type": "string"
          },
          "conClickDesde": {
            "type": "string"
          },
          "conDescripcion": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "NewConContacto": {
        "title": "NewConContacto",
        "type": "object",
        "description": "(tsType: Omit<ConContacto, 'id'>, schemaOptions: { title: 'NewConContacto', exclude: [ 'id' ] })",
        "properties": {
          "conId": {
            "type": "number"
          },
          "conNombre": {
            "type": "string"
          },
          "conEmpresa": {
            "type": "string"
          },
          "conCargo": {
            "type": "string"
          },
          "conTamanho": {
            "type": "string"
          },
          "conCorreo": {
            "type": "string"
          },
          "conAceptaContacto": {
            "type": "string"
          },
          "conTimestamp": {
            "type": "string"
          },
          "conClickDesde": {
            "type": "string"
          },
          "conDescripcion": {
            "type": "string"
          }
        },
        "additionalProperties": false,
        "x-typescript-type": "Omit<ConContacto, 'id'>"
      },
      "ConContactoWithRelations": {
        "title": "ConContactoWithRelations",
        "type": "object",
        "description": "(tsType: ConContactoWithRelations, schemaOptions: { includeRelations: true })",
        "properties": {
          "conId": {
            "type": "number"
          },
          "conNombre": {
            "type": "string"
          },
          "conEmpresa": {
            "type": "string"
          },
          "conCargo": {
            "type": "string"
          },
          "conTamanho": {
            "type": "string"
          },
          "conCorreo": {
            "type": "string"
          },
          "conAceptaContacto": {
            "type": "string"
          },
          "conTimestamp": {
            "type": "string"
          },
          "conClickDesde": {
            "type": "string"
          },
          "conDescripcion": {
            "type": "string"
          }
        },
        "additionalProperties": false,
        "x-typescript-type": "ConContactoWithRelations"
      },
      "ConContacto.Filter": {
        "type": "object",
        "title": "ConContacto.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": "ConContacto.WhereFilter",
            "type": "object",
            "additionalProperties": true
          },
          "fields": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "conId": {
                    "type": "boolean"
                  },
                  "conNombre": {
                    "type": "boolean"
                  },
                  "conEmpresa": {
                    "type": "boolean"
                  },
                  "conCargo": {
                    "type": "boolean"
                  },
                  "conTamanho": {
                    "type": "boolean"
                  },
                  "conCorreo": {
                    "type": "boolean"
                  },
                  "conAceptaContacto": {
                    "type": "boolean"
                  },
                  "conTimestamp": {
                    "type": "boolean"
                  },
                  "conClickDesde": {
                    "type": "boolean"
                  },
                  "conDescripcion": {
                    "type": "boolean"
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "conId",
                    "conNombre",
                    "conEmpresa",
                    "conCargo",
                    "conTamanho",
                    "conCorreo",
                    "conAceptaContacto",
                    "conTimestamp",
                    "conClickDesde",
                    "conDescripcion"
                  ],
                  "example": "conId"
                },
                "uniqueItems": true
              }
            ],
            "title": "ConContacto.Fields"
          }
        },
        "additionalProperties": false,
        "x-typescript-type": "@loopback/repository#Filter<ConContacto>"
      }
    },
    "securitySchemes": {
      "jwt": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      }
    }
  },
  "security": []
}