{
    "swagger": "2.0",
    "info": {
        "title": "nice-renting",
        "description": "API",
        "version": "227"
    },
    "host": "api.nice-renting.com",
    "basePath": "\/",
    "schemes": [
        "https"
    ],
    "consumes": [
        "application\/json",
        "multipart\/form-data",
        "application\/x-www-form-urlencoded"
    ],
    "produces": [
        "application\/json"
    ],
    "tags": [
        {
            "name": "Configuration"
        },
        {
            "name": "GlobalEvent"
        },
        {
            "name": "Log"
        },
        {
            "name": "Merchant"
        },
        {
            "name": "Owner"
        },
        {
            "name": "Propertie"
        },
        {
            "name": "Split"
        },
        {
            "name": "StripeEvent"
        },
        {
            "name": "User"
        }
    ],
    "paths": {
        "\/Configuration": {
            "get": {
                "summary": "Read many elements",
                "parameters": [
                    {
                        "name": "fields",
                        "in": "query",
                        "description": "The fields of the object you want to get",
                        "required": false,
                        "type": "string"
                    },
                    {
                        "name": "limit",
                        "in": "query",
                        "description": "The limit and offset to apply to query results. (ex: 2000, 1000 gives items from 2000 to 3000)",
                        "required": false,
                        "type": "string"
                    },
                    {
                        "name": "order",
                        "in": "query",
                        "description": "The order clause to apply to the query",
                        "required": false,
                        "type": "string"
                    },
                    {
                        "name": "filter",
                        "in": "query",
                        "description": "Filters to be applied. AND condition",
                        "required": false,
                        "type": "array",
                        "collectionFormat": "multi",
                        "items": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Array of items",
                        "schema": {
                            "type": "array",
                            "items": {
                                "$ref": "#\/definitions\/Configuration"
                            }
                        }
                    }
                },
                "tags": [
                    "Configuration"
                ]
            },
            "post": {
                "summary": "Create",
                "parameters": [
                    {
                        "name": "item",
                        "in": "body",
                        "description": "Item to create.",
                        "required": true,
                        "schema": {
                            "$ref": "#\/definitions\/Configuration"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Identifier of created item.",
                        "schema": {
                            "$ref": "#\/definitions\/IntegerResponse"
                        }
                    }
                },
                "tags": [
                    "Configuration"
                ]
            }
        },
        "\/Configuration\/{id}": {
            "get": {
                "summary": "Read one element",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Identifier for item.",
                        "required": true,
                        "type": "integer"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Requested item.",
                        "schema": {
                            "$ref": "#\/definitions\/Configuration"
                        }
                    }
                },
                "tags": [
                    "Configuration"
                ]
            },
            "put": {
                "summary": "Update one item",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Identifier for item.",
                        "required": true,
                        "type": "integer"
                    },
                    {
                        "name": "item",
                        "in": "body",
                        "description": "Properties of item to update.",
                        "required": true,
                        "schema": {
                            "$ref": "#\/definitions\/Configuration"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Number of affected rows.",
                        "schema": {
                            "$ref": "#\/definitions\/IntegerResponse"
                        }
                    }
                },
                "tags": [
                    "Configuration"
                ],
                "security": [
                    {
                        "basicAuth": []
                    }
                ]
            },
            "delete": {
                "summary": "Delete one element",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Identifier for item.",
                        "required": true,
                        "type": "integer"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Number of affected rows.",
                        "schema": {
                            "$ref": "#\/definitions\/IntegerResponse"
                        }
                    }
                },
                "tags": [
                    "Configuration"
                ],
                "security": [
                    {
                        "basicAuth": []
                    }
                ]
            }
        },
        "\/Configuration\/{id}\/contact": {
            "patch": {
                "consumes": [
                    "application\/x-www-form-urlencoded"
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Identifier for item.",
                        "required": true,
                        "type": "integer"
                    },
                    {
                        "name": "token",
                        "in": "formData",
                        "required": true,
                        "type": "string"
                    },
                    {
                        "name": "type",
                        "in": "formData",
                        "required": true,
                        "type": "string"
                    }
                ],
                "summary": "Send contact form",
                "responses": {
                    "200": {
                        "description": "Generic response",
                        "schema": {
                            "$ref": "#\/definitions\/BooleanResponse"
                        }
                    }
                }
            }
        },
        "\/GlobalEvent": {
            "get": {
                "summary": "Read many elements",
                "parameters": [
                    {
                        "name": "fields",
                        "in": "query",
                        "description": "The fields of the object you want to get",
                        "required": false,
                        "type": "string"
                    },
                    {
                        "name": "limit",
                        "in": "query",
                        "description": "The limit and offset to apply to query results. (ex: 2000, 1000 gives items from 2000 to 3000)",
                        "required": false,
                        "type": "string"
                    },
                    {
                        "name": "order",
                        "in": "query",
                        "description": "The order clause to apply to the query",
                        "required": false,
                        "type": "string"
                    },
                    {
                        "name": "filter",
                        "in": "query",
                        "description": "Filters to be applied. AND condition",
                        "required": false,
                        "type": "array",
                        "collectionFormat": "multi",
                        "items": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Array of items",
                        "schema": {
                            "type": "array",
                            "items": {
                                "$ref": "#\/definitions\/GlobalEvent"
                            }
                        }
                    }
                },
                "tags": [
                    "GlobalEvent"
                ]
            }
        },
        "\/GlobalEvent\/{id}": {
            "get": {
                "summary": "Read one element",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Identifier for item.",
                        "required": true,
                        "type": "integer"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Requested item.",
                        "schema": {
                            "$ref": "#\/definitions\/GlobalEvent"
                        }
                    }
                },
                "tags": [
                    "GlobalEvent"
                ]
            }
        },
        "\/Log": {
            "get": {
                "summary": "Read many elements",
                "parameters": [
                    {
                        "name": "fields",
                        "in": "query",
                        "description": "The fields of the object you want to get",
                        "required": false,
                        "type": "string"
                    },
                    {
                        "name": "limit",
                        "in": "query",
                        "description": "The limit and offset to apply to query results. (ex: 2000, 1000 gives items from 2000 to 3000)",
                        "required": false,
                        "type": "string"
                    },
                    {
                        "name": "order",
                        "in": "query",
                        "description": "The order clause to apply to the query",
                        "required": false,
                        "type": "string"
                    },
                    {
                        "name": "filter",
                        "in": "query",
                        "description": "Filters to be applied. AND condition",
                        "required": false,
                        "type": "array",
                        "collectionFormat": "multi",
                        "items": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Array of items",
                        "schema": {
                            "type": "array",
                            "items": {
                                "$ref": "#\/definitions\/Log"
                            }
                        }
                    }
                },
                "tags": [
                    "Log"
                ]
            },
            "post": {
                "summary": "Create",
                "parameters": [
                    {
                        "name": "item",
                        "in": "body",
                        "description": "Item to create.",
                        "required": true,
                        "schema": {
                            "$ref": "#\/definitions\/Log"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Identifier of created item.",
                        "schema": {
                            "$ref": "#\/definitions\/IntegerResponse"
                        }
                    }
                },
                "tags": [
                    "Log"
                ]
            }
        },
        "\/Log\/{id}": {
            "get": {
                "summary": "Read one element",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Identifier for item.",
                        "required": true,
                        "type": "integer"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Requested item.",
                        "schema": {
                            "$ref": "#\/definitions\/Log"
                        }
                    }
                },
                "tags": [
                    "Log"
                ]
            },
            "put": {
                "summary": "Update one item",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Identifier for item.",
                        "required": true,
                        "type": "integer"
                    },
                    {
                        "name": "item",
                        "in": "body",
                        "description": "Properties of item to update.",
                        "required": true,
                        "schema": {
                            "$ref": "#\/definitions\/Log"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Number of affected rows.",
                        "schema": {
                            "$ref": "#\/definitions\/IntegerResponse"
                        }
                    }
                },
                "tags": [
                    "Log"
                ]
            },
            "delete": {
                "summary": "Delete one element",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Identifier for item.",
                        "required": true,
                        "type": "integer"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Number of affected rows.",
                        "schema": {
                            "$ref": "#\/definitions\/IntegerResponse"
                        }
                    }
                },
                "tags": [
                    "Log"
                ]
            }
        },
        "\/Merchant": {
            "get": {
                "summary": "Read many elements",
                "parameters": [
                    {
                        "name": "fields",
                        "in": "query",
                        "description": "The fields of the object you want to get",
                        "required": false,
                        "type": "string"
                    },
                    {
                        "name": "limit",
                        "in": "query",
                        "description": "The limit and offset to apply to query results. (ex: 2000, 1000 gives items from 2000 to 3000)",
                        "required": false,
                        "type": "string"
                    },
                    {
                        "name": "order",
                        "in": "query",
                        "description": "The order clause to apply to the query",
                        "required": false,
                        "type": "string"
                    },
                    {
                        "name": "filter",
                        "in": "query",
                        "description": "Filters to be applied. AND condition",
                        "required": false,
                        "type": "array",
                        "collectionFormat": "multi",
                        "items": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Array of items",
                        "schema": {
                            "type": "array",
                            "items": {
                                "$ref": "#\/definitions\/Merchant"
                            }
                        }
                    }
                },
                "tags": [
                    "Merchant"
                ]
            },
            "post": {
                "summary": "Create",
                "parameters": [
                    {
                        "name": "item",
                        "in": "body",
                        "description": "Item to create.",
                        "required": true,
                        "schema": {
                            "$ref": "#\/definitions\/Merchant"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Identifier of created item.",
                        "schema": {
                            "$ref": "#\/definitions\/IntegerResponse"
                        }
                    }
                },
                "tags": [
                    "Merchant"
                ]
            }
        },
        "\/Merchant\/{id}": {
            "get": {
                "summary": "Read one element",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Identifier for item.",
                        "required": true,
                        "type": "integer"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Requested item.",
                        "schema": {
                            "$ref": "#\/definitions\/Merchant"
                        }
                    }
                },
                "tags": [
                    "Merchant"
                ]
            },
            "put": {
                "summary": "Update one item",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Identifier for item.",
                        "required": true,
                        "type": "integer"
                    },
                    {
                        "name": "item",
                        "in": "body",
                        "description": "Properties of item to update.",
                        "required": true,
                        "schema": {
                            "$ref": "#\/definitions\/Merchant"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Number of affected rows.",
                        "schema": {
                            "$ref": "#\/definitions\/IntegerResponse"
                        }
                    }
                },
                "tags": [
                    "Merchant"
                ],
                "security": [
                    {
                        "basicAuth": []
                    }
                ]
            },
            "delete": {
                "summary": "Delete one element",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Identifier for item.",
                        "required": true,
                        "type": "integer"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Number of affected rows.",
                        "schema": {
                            "$ref": "#\/definitions\/IntegerResponse"
                        }
                    }
                },
                "tags": [
                    "Merchant"
                ],
                "security": [
                    {
                        "basicAuth": []
                    }
                ]
            }
        },
        "\/Owner": {
            "get": {
                "summary": "Read many elements",
                "parameters": [
                    {
                        "name": "fields",
                        "in": "query",
                        "description": "The fields of the object you want to get",
                        "required": false,
                        "type": "string"
                    },
                    {
                        "name": "limit",
                        "in": "query",
                        "description": "The limit and offset to apply to query results. (ex: 2000, 1000 gives items from 2000 to 3000)",
                        "required": false,
                        "type": "string"
                    },
                    {
                        "name": "order",
                        "in": "query",
                        "description": "The order clause to apply to the query",
                        "required": false,
                        "type": "string"
                    },
                    {
                        "name": "filter",
                        "in": "query",
                        "description": "Filters to be applied. AND condition",
                        "required": false,
                        "type": "array",
                        "collectionFormat": "multi",
                        "items": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Array of items",
                        "schema": {
                            "type": "array",
                            "items": {
                                "$ref": "#\/definitions\/Owner"
                            }
                        }
                    }
                },
                "tags": [
                    "Owner"
                ]
            },
            "post": {
                "summary": "Create",
                "parameters": [
                    {
                        "name": "item",
                        "in": "body",
                        "description": "Item to create.",
                        "required": true,
                        "schema": {
                            "$ref": "#\/definitions\/Owner"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Identifier of created item.",
                        "schema": {
                            "$ref": "#\/definitions\/IntegerResponse"
                        }
                    }
                },
                "tags": [
                    "Owner"
                ]
            }
        },
        "\/Owner\/{id}": {
            "get": {
                "summary": "Read one element",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Identifier for item.",
                        "required": true,
                        "type": "integer"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Requested item.",
                        "schema": {
                            "$ref": "#\/definitions\/Owner"
                        }
                    }
                },
                "tags": [
                    "Owner"
                ]
            },
            "put": {
                "summary": "Update one item",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Identifier for item.",
                        "required": true,
                        "type": "integer"
                    },
                    {
                        "name": "item",
                        "in": "body",
                        "description": "Properties of item to update.",
                        "required": true,
                        "schema": {
                            "$ref": "#\/definitions\/Owner"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Number of affected rows.",
                        "schema": {
                            "$ref": "#\/definitions\/IntegerResponse"
                        }
                    }
                },
                "tags": [
                    "Owner"
                ]
            },
            "delete": {
                "summary": "Delete one element",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Identifier for item.",
                        "required": true,
                        "type": "integer"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Number of affected rows.",
                        "schema": {
                            "$ref": "#\/definitions\/IntegerResponse"
                        }
                    }
                },
                "tags": [
                    "Owner"
                ]
            }
        },
        "\/Propertie": {
            "get": {
                "summary": "Read many elements",
                "parameters": [
                    {
                        "name": "fields",
                        "in": "query",
                        "description": "The fields of the object you want to get",
                        "required": false,
                        "type": "string"
                    },
                    {
                        "name": "limit",
                        "in": "query",
                        "description": "The limit and offset to apply to query results. (ex: 2000, 1000 gives items from 2000 to 3000)",
                        "required": false,
                        "type": "string"
                    },
                    {
                        "name": "order",
                        "in": "query",
                        "description": "The order clause to apply to the query",
                        "required": false,
                        "type": "string"
                    },
                    {
                        "name": "filter",
                        "in": "query",
                        "description": "Filters to be applied. AND condition",
                        "required": false,
                        "type": "array",
                        "collectionFormat": "multi",
                        "items": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Array of items",
                        "schema": {
                            "type": "array",
                            "items": {
                                "$ref": "#\/definitions\/Propertie"
                            }
                        }
                    }
                },
                "tags": [
                    "Propertie"
                ]
            },
            "post": {
                "summary": "Create",
                "parameters": [
                    {
                        "name": "item",
                        "in": "body",
                        "description": "Item to create.",
                        "required": true,
                        "schema": {
                            "$ref": "#\/definitions\/Propertie"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Identifier of created item.",
                        "schema": {
                            "$ref": "#\/definitions\/IntegerResponse"
                        }
                    }
                },
                "tags": [
                    "Propertie"
                ]
            }
        },
        "\/Propertie\/{id}": {
            "get": {
                "summary": "Read one element",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Identifier for item.",
                        "required": true,
                        "type": "integer"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Requested item.",
                        "schema": {
                            "$ref": "#\/definitions\/Propertie"
                        }
                    }
                },
                "tags": [
                    "Propertie"
                ]
            },
            "put": {
                "summary": "Update one item",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Identifier for item.",
                        "required": true,
                        "type": "integer"
                    },
                    {
                        "name": "item",
                        "in": "body",
                        "description": "Properties of item to update.",
                        "required": true,
                        "schema": {
                            "$ref": "#\/definitions\/Propertie"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Number of affected rows.",
                        "schema": {
                            "$ref": "#\/definitions\/IntegerResponse"
                        }
                    }
                },
                "tags": [
                    "Propertie"
                ]
            },
            "delete": {
                "summary": "Delete one element",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Identifier for item.",
                        "required": true,
                        "type": "integer"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Number of affected rows.",
                        "schema": {
                            "$ref": "#\/definitions\/IntegerResponse"
                        }
                    }
                },
                "tags": [
                    "Propertie"
                ]
            }
        },
        "\/Split": {
            "get": {
                "summary": "Read many elements",
                "parameters": [
                    {
                        "name": "fields",
                        "in": "query",
                        "description": "The fields of the object you want to get",
                        "required": false,
                        "type": "string"
                    },
                    {
                        "name": "limit",
                        "in": "query",
                        "description": "The limit and offset to apply to query results. (ex: 2000, 1000 gives items from 2000 to 3000)",
                        "required": false,
                        "type": "string"
                    },
                    {
                        "name": "order",
                        "in": "query",
                        "description": "The order clause to apply to the query",
                        "required": false,
                        "type": "string"
                    },
                    {
                        "name": "filter",
                        "in": "query",
                        "description": "Filters to be applied. AND condition",
                        "required": false,
                        "type": "array",
                        "collectionFormat": "multi",
                        "items": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Array of items",
                        "schema": {
                            "type": "array",
                            "items": {
                                "$ref": "#\/definitions\/Split"
                            }
                        }
                    }
                },
                "tags": [
                    "Split"
                ]
            },
            "post": {
                "summary": "Create",
                "parameters": [
                    {
                        "name": "item",
                        "in": "body",
                        "description": "Item to create.",
                        "required": true,
                        "schema": {
                            "$ref": "#\/definitions\/Split"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Identifier of created item.",
                        "schema": {
                            "$ref": "#\/definitions\/IntegerResponse"
                        }
                    }
                },
                "tags": [
                    "Split"
                ]
            }
        },
        "\/Split\/{id}": {
            "get": {
                "summary": "Read one element",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Identifier for item.",
                        "required": true,
                        "type": "integer"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Requested item.",
                        "schema": {
                            "$ref": "#\/definitions\/Split"
                        }
                    }
                },
                "tags": [
                    "Split"
                ]
            },
            "put": {
                "summary": "Update one item",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Identifier for item.",
                        "required": true,
                        "type": "integer"
                    },
                    {
                        "name": "item",
                        "in": "body",
                        "description": "Properties of item to update.",
                        "required": true,
                        "schema": {
                            "$ref": "#\/definitions\/Split"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Number of affected rows.",
                        "schema": {
                            "$ref": "#\/definitions\/IntegerResponse"
                        }
                    }
                },
                "tags": [
                    "Split"
                ]
            },
            "delete": {
                "summary": "Delete one element",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Identifier for item.",
                        "required": true,
                        "type": "integer"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Number of affected rows.",
                        "schema": {
                            "$ref": "#\/definitions\/IntegerResponse"
                        }
                    }
                },
                "tags": [
                    "Split"
                ]
            }
        },
        "\/StripeEvent": {
            "get": {
                "summary": "Read many elements",
                "parameters": [
                    {
                        "name": "fields",
                        "in": "query",
                        "description": "The fields of the object you want to get",
                        "required": false,
                        "type": "string"
                    },
                    {
                        "name": "limit",
                        "in": "query",
                        "description": "The limit and offset to apply to query results. (ex: 2000, 1000 gives items from 2000 to 3000)",
                        "required": false,
                        "type": "string"
                    },
                    {
                        "name": "order",
                        "in": "query",
                        "description": "The order clause to apply to the query",
                        "required": false,
                        "type": "string"
                    },
                    {
                        "name": "filter",
                        "in": "query",
                        "description": "Filters to be applied. AND condition",
                        "required": false,
                        "type": "array",
                        "collectionFormat": "multi",
                        "items": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Array of items",
                        "schema": {
                            "type": "array",
                            "items": {
                                "$ref": "#\/definitions\/StripeEvent"
                            }
                        }
                    }
                },
                "tags": [
                    "StripeEvent"
                ]
            },
            "post": {
                "summary": "Create",
                "parameters": [
                    {
                        "name": "item",
                        "in": "body",
                        "description": "Item to create.",
                        "required": true,
                        "schema": {
                            "$ref": "#\/definitions\/StripeEvent"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Identifier of created item.",
                        "schema": {
                            "$ref": "#\/definitions\/IntegerResponse"
                        }
                    }
                },
                "tags": [
                    "StripeEvent"
                ]
            }
        },
        "\/StripeEvent\/{id}": {
            "get": {
                "summary": "Read one element",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Identifier for item.",
                        "required": true,
                        "type": "integer"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Requested item.",
                        "schema": {
                            "$ref": "#\/definitions\/StripeEvent"
                        }
                    }
                },
                "tags": [
                    "StripeEvent"
                ]
            },
            "put": {
                "summary": "Update one item",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Identifier for item.",
                        "required": true,
                        "type": "integer"
                    },
                    {
                        "name": "item",
                        "in": "body",
                        "description": "Properties of item to update.",
                        "required": true,
                        "schema": {
                            "$ref": "#\/definitions\/StripeEvent"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Number of affected rows.",
                        "schema": {
                            "$ref": "#\/definitions\/IntegerResponse"
                        }
                    }
                },
                "tags": [
                    "StripeEvent"
                ]
            },
            "delete": {
                "summary": "Delete one element",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Identifier for item.",
                        "required": true,
                        "type": "integer"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Number of affected rows.",
                        "schema": {
                            "$ref": "#\/definitions\/IntegerResponse"
                        }
                    }
                },
                "tags": [
                    "StripeEvent"
                ]
            }
        },
        "\/User": {
            "get": {
                "summary": "Read many elements",
                "parameters": [
                    {
                        "name": "fields",
                        "in": "query",
                        "description": "The fields of the object you want to get",
                        "required": false,
                        "type": "string"
                    },
                    {
                        "name": "limit",
                        "in": "query",
                        "description": "The limit and offset to apply to query results. (ex: 2000, 1000 gives items from 2000 to 3000)",
                        "required": false,
                        "type": "string"
                    },
                    {
                        "name": "order",
                        "in": "query",
                        "description": "The order clause to apply to the query",
                        "required": false,
                        "type": "string"
                    },
                    {
                        "name": "filter",
                        "in": "query",
                        "description": "Filters to be applied. AND condition",
                        "required": false,
                        "type": "array",
                        "collectionFormat": "multi",
                        "items": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Array of items",
                        "schema": {
                            "type": "array",
                            "items": {
                                "$ref": "#\/definitions\/User"
                            }
                        }
                    }
                },
                "tags": [
                    "User"
                ]
            },
            "post": {
                "summary": "Create",
                "parameters": [
                    {
                        "name": "item",
                        "in": "body",
                        "description": "Item to create.",
                        "required": true,
                        "schema": {
                            "$ref": "#\/definitions\/User"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Identifier of created item.",
                        "schema": {
                            "$ref": "#\/definitions\/IntegerResponse"
                        }
                    }
                },
                "tags": [
                    "User"
                ],
                "security": [
                    {
                        "basicAuth": []
                    }
                ]
            }
        },
        "\/User\/{id}": {
            "get": {
                "summary": "Read one element",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Identifier for item.",
                        "required": true,
                        "type": "integer"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Requested item.",
                        "schema": {
                            "$ref": "#\/definitions\/User"
                        }
                    }
                },
                "tags": [
                    "User"
                ],
                "security": [
                    {
                        "basicAuth": []
                    }
                ]
            },
            "put": {
                "summary": "Update one item",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Identifier for item.",
                        "required": true,
                        "type": "integer"
                    },
                    {
                        "name": "item",
                        "in": "body",
                        "description": "Properties of item to update.",
                        "required": true,
                        "schema": {
                            "$ref": "#\/definitions\/User"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Number of affected rows.",
                        "schema": {
                            "$ref": "#\/definitions\/IntegerResponse"
                        }
                    }
                },
                "tags": [
                    "User"
                ],
                "security": [
                    {
                        "basicAuth": []
                    }
                ]
            },
            "delete": {
                "summary": "Delete one element",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Identifier for item.",
                        "required": true,
                        "type": "integer"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Number of affected rows.",
                        "schema": {
                            "$ref": "#\/definitions\/IntegerResponse"
                        }
                    }
                },
                "tags": [
                    "User"
                ],
                "security": [
                    {
                        "basicAuth": []
                    }
                ]
            }
        },
        "\/me": {
            "get": {
                "summary": "Read current logged user infos",
                "responses": {
                    "200": {
                        "description": "Requested item.",
                        "schema": {
                            "$ref": "#\/definitions\/User"
                        }
                    }
                },
                "tags": [
                    "User"
                ],
                "security": [
                    {
                        "basicAuth": []
                    }
                ]
            },
            "put": {
                "summary": "Update current logged user infos",
                "parameters": [
                    {
                        "name": "item",
                        "in": "body",
                        "description": "Properties of item to update.",
                        "required": true,
                        "schema": {
                            "$ref": "#\/definitions\/User"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Number of affected rows.",
                        "schema": {
                            "$ref": "#\/definitions\/IntegerResponse"
                        }
                    }
                },
                "tags": [
                    "User"
                ],
                "security": [
                    {
                        "basicAuth": []
                    }
                ]
            },
            "delete": {
                "summary": "Delete current logged user",
                "responses": {
                    "200": {
                        "description": "Number of affected rows.",
                        "schema": {
                            "$ref": "#\/definitions\/IntegerResponse"
                        }
                    }
                },
                "tags": [
                    "User"
                ],
                "security": [
                    {
                        "basicAuth": []
                    }
                ]
            }
        },
        "\/User\/{id}\/changePassword": {
            "patch": {
                "consumes": [
                    "application\/x-www-form-urlencoded"
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Identifier for item.",
                        "required": true,
                        "type": "integer"
                    },
                    {
                        "name": "password",
                        "in": "formData",
                        "required": true,
                        "type": "string"
                    },
                    {
                        "name": "key",
                        "in": "formData",
                        "required": true,
                        "type": "string"
                    }
                ],
                "summary": "Update user's password",
                "responses": {
                    "200": {
                        "description": "Generic response",
                        "schema": {
                            "$ref": "#\/definitions\/BooleanResponse"
                        }
                    }
                }
            }
        },
        "\/User\/{id}\/getStats": {
            "patch": {
                "consumes": [
                    "application\/x-www-form-urlencoded"
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Identifier for item.",
                        "required": true,
                        "type": "integer"
                    },
                    {
                        "name": "filters",
                        "in": "formData",
                        "required": true,
                        "type": "string"
                    }
                ],
                "summary": "Get Stats for homepage according to the logged profile",
                "responses": {
                    "200": {
                        "schema": {
                            "$ref": {
                                "type": "array"
                            }
                        }
                    }
                }
            }
        }
    },
    "definitions": {
        "BooleanResponse": {
            "type": "object",
            "properties": {
                "value": {
                    "type": "boolean"
                }
            }
        },
        "StringResponse": {
            "type": "object",
            "properties": {
                "value": {
                    "type": "string"
                }
            }
        },
        "IntegerResponse": {
            "type": "object",
            "properties": {
                "value": {
                    "type": "integer"
                }
            }
        },
        "NumberResponse": {
            "type": "object",
            "properties": {
                "value": {
                    "type": "number"
                }
            }
        },
        "Configuration": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "integer",
                    "x-primary-key": true
                },
                "b24_token": {
                    "type": "string"
                },
                "b24_token_last_refresh": {
                    "type": "string",
                    "format": "date-time"
                },
                "interval_capture_days": {
                    "type": "integer"
                },
                "change_dt": {
                    "type": "string",
                    "format": "date-time"
                },
                "deleted": {
                    "type": "integer"
                }
            },
            "required": [
                "id",
                "interval_capture_days",
                "change_dt",
                "deleted"
            ]
        },
        "GlobalEvent": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "integer",
                    "x-primary-key": true
                },
                "booking_id": {
                    "type": "string"
                },
                "type": {
                    "type": "string"
                },
                "is_deposit_free": {
                    "type": "integer"
                },
                "owner_name": {
                    "type": "string"
                },
                "property_name": {
                    "type": "string"
                },
                "cleaning_fees": {
                    "type": "string"
                },
                "platform_fees": {
                    "type": "string"
                },
                "traveller_name": {
                    "type": "string"
                },
                "booking_fees": {
                    "type": "integer"
                },
                "stripe_fees": {
                    "type": "integer"
                },
                "booking_price": {
                    "type": "integer"
                },
                "revenue": {
                    "type": "integer"
                },
                "net_revenue": {
                    "type": "integer"
                },
                "stripe_connected_account": {
                    "type": "string"
                },
                "arrival_date": {
                    "type": "string",
                    "format": "date-time"
                },
                "departure_date": {
                    "type": "string",
                    "format": "date-time"
                },
                "creation_date": {
                    "type": "string",
                    "format": "date-time"
                },
                "change_dt": {
                    "type": "string",
                    "format": "date-time"
                },
                "deleted": {
                    "type": "integer"
                }
            },
            "required": [
                "id",
                "booking_id",
                "type",
                "is_deposit_free",
                "owner_name",
                "property_name",
                "platform_fees",
                "booking_fees",
                "stripe_fees",
                "booking_price",
                "stripe_connected_account",
                "creation_date",
                "change_dt",
                "deleted"
            ]
        },
        "Log": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "integer",
                    "x-primary-key": true
                },
                "user_id": {
                    "type": "integer"
                },
                "action": {
                    "type": "string"
                },
                "type": {
                    "type": "string"
                },
                "link": {
                    "type": "string"
                },
                "change_dt": {
                    "type": "string",
                    "format": "date-time"
                },
                "deleted": {
                    "type": "integer"
                }
            },
            "required": [
                "id",
                "user_id",
                "action",
                "change_dt",
                "deleted"
            ]
        },
        "Merchant": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "integer",
                    "x-primary-key": true
                },
                "unique_id": {
                    "type": "string"
                },
                "email": {
                    "type": "string"
                },
                "password": {
                    "type": "string"
                },
                "stripe_connected_account": {
                    "type": "string"
                },
                "creation_date": {
                    "type": "string",
                    "format": "date-time"
                },
                "change_dt": {
                    "type": "string",
                    "format": "date-time"
                },
                "deleted": {
                    "type": "integer"
                }
            },
            "required": [
                "id",
                "unique_id",
                "email",
                "password",
                "stripe_connected_account",
                "creation_date",
                "change_dt",
                "deleted"
            ]
        },
        "Owner": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "integer",
                    "x-primary-key": true
                },
                "unique_id": {
                    "type": "string"
                },
                "name": {
                    "type": "string"
                },
                "stripe_connected_account": {
                    "type": "string"
                },
                "debt": {
                    "type": "integer"
                },
                "creation_date": {
                    "type": "string",
                    "format": "date-time"
                },
                "change_dt": {
                    "type": "string",
                    "format": "date-time"
                },
                "deleted": {
                    "type": "integer"
                }
            },
            "required": [
                "id",
                "unique_id",
                "name",
                "stripe_connected_account",
                "debt",
                "creation_date",
                "change_dt",
                "deleted"
            ]
        },
        "Propertie": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "integer",
                    "x-primary-key": true
                },
                "owner_id": {
                    "type": "integer"
                },
                "title": {
                    "type": "string"
                },
                "beds24_property_id": {
                    "type": "string"
                },
                "platform_fees": {
                    "type": "string"
                },
                "cleaning_fees": {
                    "type": "string"
                },
                "keep_cleaning_fees": {
                    "type": "integer"
                },
                "creation_date": {
                    "type": "string",
                    "format": "date-time"
                },
                "change_dt": {
                    "type": "string",
                    "format": "date-time"
                },
                "deleted": {
                    "type": "integer"
                }
            },
            "required": [
                "id",
                "owner_id",
                "title",
                "beds24_property_id",
                "platform_fees",
                "keep_cleaning_fees",
                "creation_date",
                "change_dt",
                "deleted"
            ]
        },
        "Split": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "integer",
                    "x-primary-key": true
                },
                "payment_intent_id": {
                    "type": "string"
                },
                "sent": {
                    "type": "integer"
                },
                "destination": {
                    "type": "string"
                },
                "received": {
                    "type": "integer"
                },
                "creation_date": {
                    "type": "string",
                    "format": "date-time"
                },
                "change_dt": {
                    "type": "string",
                    "format": "date-time"
                },
                "deleted": {
                    "type": "integer"
                }
            },
            "required": [
                "id",
                "payment_intent_id",
                "sent",
                "destination",
                "received",
                "creation_date",
                "change_dt",
                "deleted"
            ]
        },
        "StripeEvent": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "integer",
                    "x-primary-key": true
                },
                "payment_intent_id": {
                    "type": "string"
                },
                "type": {
                    "type": "string"
                },
                "booking_id": {
                    "type": "string"
                },
                "amount": {
                    "type": "integer"
                },
                "property_id": {
                    "type": "string"
                },
                "event": {
                    "type": "string"
                },
                "traveller_name": {
                    "type": "string"
                },
                "is_split_done": {
                    "type": "integer"
                },
                "amount_sent": {
                    "type": "integer"
                },
                "debt_settled": {
                    "type": "integer"
                },
                "booking_fees": {
                    "type": "integer"
                },
                "stripe_fees": {
                    "type": "integer"
                },
                "arrival_date": {
                    "type": "string",
                    "format": "date-time"
                },
                "departure_date": {
                    "type": "string",
                    "format": "date-time"
                },
                "is_deposit_free": {
                    "type": "integer"
                },
                "creation_date": {
                    "type": "string",
                    "format": "date-time"
                },
                "change_dt": {
                    "type": "string",
                    "format": "date-time"
                },
                "deleted": {
                    "type": "integer"
                },
                "is_fees_sent_to_b24": {
                    "type": "boolean"
                }
            },
            "required": [
                "id",
                "payment_intent_id",
                "type",
                "booking_id",
                "amount",
                "property_id",
                "event",
                "is_split_done",
                "debt_settled",
                "booking_fees",
                "stripe_fees",
                "is_deposit_free",
                "creation_date",
                "change_dt",
                "deleted",
                "is_fees_sent_to_b24"
            ]
        },
        "User": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "integer",
                    "x-primary-key": true
                },
                "unique_id": {
                    "type": "string"
                },
                "email": {
                    "type": "string"
                },
                "password": {
                    "type": "string"
                },
                "first_name": {
                    "type": "string"
                },
                "last_name": {
                    "type": "string"
                },
                "access_level": {
                    "type": "integer"
                },
                "creation_date": {
                    "type": "string",
                    "format": "date-time"
                },
                "change_dt": {
                    "type": "string",
                    "format": "date-time"
                },
                "deleted": {
                    "type": "integer"
                }
            },
            "required": [
                "id",
                "email",
                "password"
            ]
        }
    },
    "securityDefinitions": {
        "basicAuth": {
            "description": "Global Security",
            "type": "basic"
        }
    }
}