{
    "swagger": "2.0",
    "info": {
        "title": "iperformance",
        "description": "API",
        "version": "222"
    },
    "host": "api.iperformance.fr",
    "basePath": "\/",
    "schemes": [
        "https"
    ],
    "consumes": [
        "application\/json",
        "multipart\/form-data",
        "application\/x-www-form-urlencoded"
    ],
    "produces": [
        "application\/json"
    ],
    "tags": [
        {
            "name": "CarKey"
        },
        {
            "name": "Configuration"
        },
        {
            "name": "Email"
        },
        {
            "name": "File"
        },
        {
            "name": "Log"
        },
        {
            "name": "Page"
        },
        {
            "name": "User"
        },
        {
            "name": "UserRequest"
        }
    ],
    "paths": {
        "\/CarKey": {
            "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\/CarKey"
                            }
                        }
                    }
                },
                "tags": [
                    "CarKey"
                ]
            },
            "post": {
                "summary": "Create",
                "parameters": [
                    {
                        "name": "item",
                        "in": "body",
                        "description": "Item to create.",
                        "required": true,
                        "schema": {
                            "$ref": "#\/definitions\/CarKey"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Identifier of created item.",
                        "schema": {
                            "$ref": "#\/definitions\/IntegerResponse"
                        }
                    }
                },
                "tags": [
                    "CarKey"
                ]
            }
        },
        "\/CarKey\/{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\/CarKey"
                        }
                    }
                },
                "tags": [
                    "CarKey"
                ]
            },
            "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\/CarKey"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Number of affected rows.",
                        "schema": {
                            "$ref": "#\/definitions\/IntegerResponse"
                        }
                    }
                },
                "tags": [
                    "CarKey"
                ]
            },
            "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": [
                    "CarKey"
                ]
            }
        },
        "\/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"
                        }
                    }
                }
            }
        },
        "\/Email": {
            "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\/Email"
                            }
                        }
                    }
                },
                "tags": [
                    "Email"
                ]
            },
            "post": {
                "summary": "Create",
                "parameters": [
                    {
                        "name": "item",
                        "in": "body",
                        "description": "Item to create.",
                        "required": true,
                        "schema": {
                            "$ref": "#\/definitions\/Email"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Identifier of created item.",
                        "schema": {
                            "$ref": "#\/definitions\/IntegerResponse"
                        }
                    }
                },
                "tags": [
                    "Email"
                ]
            }
        },
        "\/Email\/{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\/Email"
                        }
                    }
                },
                "tags": [
                    "Email"
                ]
            },
            "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\/Email"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Number of affected rows.",
                        "schema": {
                            "$ref": "#\/definitions\/IntegerResponse"
                        }
                    }
                },
                "tags": [
                    "Email"
                ]
            },
            "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": [
                    "Email"
                ]
            }
        },
        "\/Email\/{id}\/send": {
            "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"
                    }
                ],
                "summary": "Send an email",
                "responses": {
                    "200": {
                        "description": "Generic response",
                        "schema": {
                            "$ref": "#\/definitions\/BooleanResponse"
                        }
                    }
                }
            }
        },
        "\/File": {
            "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\/File"
                            }
                        }
                    }
                },
                "tags": [
                    "File"
                ]
            },
            "post": {
                "summary": "Create",
                "consumes": [
                    "multipart\\\/form-data"
                ],
                "parameters": [
                    {
                        "name": "file",
                        "in": "formData",
                        "description": "File to upload",
                        "required": true,
                        "type": "file"
                    },
                    {
                        "name": "type",
                        "in": "formData",
                        "description": "Type of file",
                        "required": true,
                        "type": "string"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Full file infos.",
                        "schema": {
                            "$ref": "#\/definitions\/File"
                        }
                    }
                },
                "tags": [
                    "File"
                ]
            }
        },
        "\/File\/{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\/File"
                        }
                    }
                },
                "tags": [
                    "File"
                ]
            },
            "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": [
                    "File"
                ]
            }
        },
        "\/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"
                ]
            }
        },
        "\/Page": {
            "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\/Page"
                            }
                        }
                    }
                },
                "tags": [
                    "Page"
                ]
            },
            "post": {
                "summary": "Create",
                "parameters": [
                    {
                        "name": "item",
                        "in": "body",
                        "description": "Item to create.",
                        "required": true,
                        "schema": {
                            "$ref": "#\/definitions\/Page"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Identifier of created item.",
                        "schema": {
                            "$ref": "#\/definitions\/IntegerResponse"
                        }
                    }
                },
                "tags": [
                    "Page"
                ]
            }
        },
        "\/Page\/{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\/Page"
                        }
                    }
                },
                "tags": [
                    "Page"
                ]
            },
            "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\/Page"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Number of affected rows.",
                        "schema": {
                            "$ref": "#\/definitions\/IntegerResponse"
                        }
                    }
                },
                "tags": [
                    "Page"
                ]
            },
            "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": [
                    "Page"
                ]
            }
        },
        "\/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"
                ]
            }
        },
        "\/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"
                ]
            },
            "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"
                ]
            },
            "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"
                        }
                    }
                }
            }
        },
        "\/UserRequest": {
            "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\/UserRequest"
                            }
                        }
                    }
                },
                "tags": [
                    "UserRequest"
                ],
                "security": [
                    {
                        "basicAuth": []
                    }
                ]
            },
            "post": {
                "summary": "Create",
                "parameters": [
                    {
                        "name": "item",
                        "in": "body",
                        "description": "Item to create.",
                        "required": true,
                        "schema": {
                            "$ref": "#\/definitions\/UserRequest"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Identifier of created item.",
                        "schema": {
                            "$ref": "#\/definitions\/IntegerResponse"
                        }
                    }
                },
                "tags": [
                    "UserRequest"
                ]
            }
        },
        "\/UserRequest\/{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\/UserRequest"
                        }
                    }
                },
                "tags": [
                    "UserRequest"
                ],
                "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\/UserRequest"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Number of affected rows.",
                        "schema": {
                            "$ref": "#\/definitions\/IntegerResponse"
                        }
                    }
                },
                "tags": [
                    "UserRequest"
                ]
            },
            "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": [
                    "UserRequest"
                ]
            }
        }
    },
    "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"
                }
            }
        },
        "CarKey": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "integer",
                    "x-primary-key": true
                },
                "name": {
                    "type": "string"
                },
                "slug": {
                    "type": "string"
                },
                "picture_id": {
                    "type": "integer"
                },
                "picture_url": {
                    "type": "string"
                },
                "picture_filename": {
                    "type": "string"
                },
                "content": {
                    "type": "string"
                },
                "price": {
                    "type": "integer"
                },
                "creation_date": {
                    "type": "string",
                    "format": "date-time"
                },
                "change_dt": {
                    "type": "string",
                    "format": "date-time"
                },
                "deleted": {
                    "type": "integer"
                }
            },
            "required": [
                "id",
                "name",
                "slug",
                "picture_id",
                "picture_url",
                "picture_filename",
                "content",
                "price",
                "creation_date",
                "change_dt",
                "deleted"
            ]
        },
        "Configuration": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "integer",
                    "x-primary-key": true
                },
                "announce_mod": {
                    "type": "integer"
                },
                "announce_string": {
                    "type": "string"
                },
                "change_dt": {
                    "type": "string",
                    "format": "date-time"
                },
                "deleted": {
                    "type": "integer"
                }
            },
            "required": [
                "id",
                "announce_mod",
                "change_dt",
                "deleted"
            ]
        },
        "Email": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "integer",
                    "x-primary-key": true
                },
                "subject": {
                    "type": "string"
                },
                "content": {
                    "type": "string"
                },
                "change_dt": {
                    "type": "string",
                    "format": "date-time"
                },
                "deleted": {
                    "type": "integer"
                }
            },
            "required": [
                "id",
                "subject",
                "content",
                "change_dt",
                "deleted"
            ]
        },
        "File": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "integer",
                    "x-primary-key": true
                },
                "file_name": {
                    "type": "string"
                },
                "url": {
                    "type": "string"
                },
                "md5": {
                    "type": "string"
                },
                "sha1": {
                    "type": "string"
                },
                "mime": {
                    "type": "string"
                },
                "change_dt": {
                    "type": "string",
                    "format": "date-time"
                },
                "deleted": {
                    "type": "integer"
                }
            },
            "required": [
                "id",
                "file_name",
                "url",
                "mime",
                "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"
            ]
        },
        "Page": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "integer",
                    "x-primary-key": true
                },
                "title": {
                    "type": "string"
                },
                "slug": {
                    "type": "string"
                },
                "content": {
                    "type": "string"
                },
                "change_dt": {
                    "type": "string",
                    "format": "date-time"
                },
                "deleted": {
                    "type": "integer"
                }
            },
            "required": [
                "id",
                "title",
                "slug",
                "content",
                "change_dt",
                "deleted"
            ]
        },
        "User": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "integer",
                    "x-primary-key": true
                },
                "unique_id": {
                    "type": "string"
                },
                "email": {
                    "type": "string"
                },
                "password": {
                    "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"
            ]
        },
        "UserRequest": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "integer",
                    "x-primary-key": true
                },
                "email": {
                    "type": "string"
                },
                "type": {
                    "type": "string"
                },
                "ip": {
                    "type": "string"
                },
                "creation_date": {
                    "type": "string",
                    "format": "date-time"
                }
            },
            "required": [
                "id",
                "email",
                "type",
                "creation_date"
            ]
        }
    },
    "securityDefinitions": {
        "basicAuth": {
            "description": "Global Security",
            "type": "basic"
        }
    }
}