{
    "swagger": "2.0",
    "info": {
        "title": "chronomask_prod",
        "version": "20",
        "description": "API generated with Nx/APIREST"
    },
    "host": "api.hub-chronomask.innoralis.fr",
    "basePath": "/",
    "schemes": [
        "https"
    ],
    "consumes": [
        "application/json",
        "multipart/form-data",
        "application/x-www-form-urlencoded"
    ],
    "produces": [
        "application/json"
    ],
    "securityDefinitions": {
        "basicAuth": {
            "type": "basic",
            "description": "Global Security"
        }
    },
    "tags": [
        {
            "name": "Image"
        },
        {
            "name": "License"
        },
        {
            "name": "Setting"
        },
        {
            "name": "Story"
        },
        {
            "name": "StoriesList"
        },
        {
            "name": "User"
        }
    ],
    "paths": {
        "/Image": {
            "get": {
                "summary": "Read many elements",
                "parameters": [
                    {
                        "name": "If-Modified-Since",
                        "in": "header",
                        "description": "Last date of change_dt",
                        "required": false,
                        "type": "string",
                        "format": "date-time"
                    },
                    {
                        "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"
                        }
                    },
                    {
                        "name": "calc_rows",
                        "in": "query",
                        "description": "Will add the number of rows as a header in the response",
                        "required": false,
                        "type": "boolean"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Array of items",
                        "schema": {
                            "type": "array",
                            "items": {
                                "$ref": "#/definitions/Image"
                            }
                        }
                    },
                    "400": {
                        "description": "An managed error occurred (status code may actually vary).",
                        "headers": {
                            "Nx-Error-Code": {
                                "description": "An explicit code that represent the error that occurred. See all *Error for more information.",
                                "type": "string"
                            },
                            "Nx-Error-Domain": {
                                "description": "The domain of the error. See ErrorsDomain for more information.",
                                "type": "string"
                            },
                            "Nx-Error": {
                                "description": "A debug description of the error that occurred.",
                                "type": "string"
                            }
                        }
                    }
                },
                "tags": [
                    "Image"
                ]
            },
            "post": {
                "summary": "Create",
                "parameters": [
                    {
                        "name": "item",
                        "in": "body",
                        "description": "Item to create.",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/Image"
                        }
                    },
                    {
                        "name": "return_item",
                        "in": "query",
                        "description": "If defined and equal to true (or 1), the response is the entire item after the insert (same result as a get request). Otherwise it's just the item's ID. Defaults to false",
                        "required": false,
                        "type": "boolean"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Identifier of created item.",
                        "schema": {
                            "$ref": "#/definitions/Integer"
                        }
                    },
                    "400": {
                        "description": "An managed error occurred (status code may actually vary).",
                        "headers": {
                            "Nx-Error-Code": {
                                "description": "An explicit code that represent the error that occurred. See all *Error for more information.",
                                "type": "string"
                            },
                            "Nx-Error-Domain": {
                                "description": "The domain of the error. See ErrorsDomain for more information.",
                                "type": "string"
                            },
                            "Nx-Error": {
                                "description": "A debug description of the error that occurred.",
                                "type": "string"
                            }
                        }
                    }
                },
                "tags": [
                    "Image"
                ]
            }
        },
        "/Image/{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/Image"
                        }
                    },
                    "400": {
                        "description": "An managed error occurred (status code may actually vary).",
                        "headers": {
                            "Nx-Error-Code": {
                                "description": "An explicit code that represent the error that occurred. See all *Error for more information.",
                                "type": "string"
                            },
                            "Nx-Error-Domain": {
                                "description": "The domain of the error. See ErrorsDomain for more information.",
                                "type": "string"
                            },
                            "Nx-Error": {
                                "description": "A debug description of the error that occurred.",
                                "type": "string"
                            }
                        }
                    }
                },
                "tags": [
                    "Image"
                ]
            },
            "put": {
                "summary": "Update one item",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Identifier for item.",
                        "required": true,
                        "type": "integer"
                    },
                    {
                        "name": "setnull",
                        "in": "query",
                        "description": "Array of fields to be set to null.",
                        "required": false,
                        "type": "array",
                        "items": {
                            "type": "string",
                            "enum": [
                                "id",
                                "deleted"
                            ]
                        }
                    },
                    {
                        "name": "item",
                        "in": "body",
                        "description": "Properties of item to update.",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/Image"
                        }
                    },
                    {
                        "name": "return_item",
                        "in": "query",
                        "description": "If defined and equal to true (or 1), the response is the entire item after the update (same result as a get request). Otherwise it's just the number of affected rows. Defaults to false",
                        "required": false,
                        "type": "boolean"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Number of affected rows.",
                        "schema": {
                            "$ref": "#/definitions/Integer"
                        }
                    },
                    "400": {
                        "description": "An managed error occurred (status code may actually vary).",
                        "headers": {
                            "Nx-Error-Code": {
                                "description": "An explicit code that represent the error that occurred. See all *Error for more information.",
                                "type": "string"
                            },
                            "Nx-Error-Domain": {
                                "description": "The domain of the error. See ErrorsDomain for more information.",
                                "type": "string"
                            },
                            "Nx-Error": {
                                "description": "A debug description of the error that occurred.",
                                "type": "string"
                            }
                        }
                    }
                },
                "tags": [
                    "Image"
                ]
            },
            "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/Integer"
                        }
                    },
                    "400": {
                        "description": "An managed error occurred (status code may actually vary).",
                        "headers": {
                            "Nx-Error-Code": {
                                "description": "An explicit code that represent the error that occurred. See all *Error for more information.",
                                "type": "string"
                            },
                            "Nx-Error-Domain": {
                                "description": "The domain of the error. See ErrorsDomain for more information.",
                                "type": "string"
                            },
                            "Nx-Error": {
                                "description": "A debug description of the error that occurred.",
                                "type": "string"
                            }
                        }
                    }
                },
                "tags": [
                    "Image"
                ]
            }
        },
        "/License": {
            "get": {
                "summary": "Read many elements",
                "parameters": [
                    {
                        "name": "If-Modified-Since",
                        "in": "header",
                        "description": "Last date of change_dt",
                        "required": false,
                        "type": "string",
                        "format": "date-time"
                    },
                    {
                        "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"
                        }
                    },
                    {
                        "name": "calc_rows",
                        "in": "query",
                        "description": "Will add the number of rows as a header in the response",
                        "required": false,
                        "type": "boolean"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Array of items",
                        "schema": {
                            "type": "array",
                            "items": {
                                "$ref": "#/definitions/License"
                            }
                        }
                    },
                    "400": {
                        "description": "An managed error occurred (status code may actually vary).",
                        "headers": {
                            "Nx-Error-Code": {
                                "description": "An explicit code that represent the error that occurred. See all *Error for more information.",
                                "type": "string"
                            },
                            "Nx-Error-Domain": {
                                "description": "The domain of the error. See ErrorsDomain for more information.",
                                "type": "string"
                            },
                            "Nx-Error": {
                                "description": "A debug description of the error that occurred.",
                                "type": "string"
                            }
                        }
                    }
                },
                "tags": [
                    "License"
                ],
                "security": [
                    {
                        "basicAuth": []
                    }
                ]
            },
            "post": {
                "summary": "Create",
                "parameters": [
                    {
                        "name": "item",
                        "in": "body",
                        "description": "Item to create.",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/License"
                        }
                    },
                    {
                        "name": "return_item",
                        "in": "query",
                        "description": "If defined and equal to true (or 1), the response is the entire item after the insert (same result as a get request). Otherwise it's just the item's ID. Defaults to false",
                        "required": false,
                        "type": "boolean"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Identifier of created item.",
                        "schema": {
                            "$ref": "#/definitions/String"
                        }
                    },
                    "400": {
                        "description": "An managed error occurred (status code may actually vary).",
                        "headers": {
                            "Nx-Error-Code": {
                                "description": "An explicit code that represent the error that occurred. See all *Error for more information.",
                                "type": "string"
                            },
                            "Nx-Error-Domain": {
                                "description": "The domain of the error. See ErrorsDomain for more information.",
                                "type": "string"
                            },
                            "Nx-Error": {
                                "description": "A debug description of the error that occurred.",
                                "type": "string"
                            }
                        }
                    }
                },
                "tags": [
                    "License"
                ],
                "security": [
                    {
                        "basicAuth": []
                    }
                ]
            }
        },
        "/License/{id}": {
            "get": {
                "summary": "Read one element",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Identifier for item.",
                        "required": true,
                        "type": "string"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Requested item.",
                        "schema": {
                            "$ref": "#/definitions/License"
                        }
                    },
                    "400": {
                        "description": "An managed error occurred (status code may actually vary).",
                        "headers": {
                            "Nx-Error-Code": {
                                "description": "An explicit code that represent the error that occurred. See all *Error for more information.",
                                "type": "string"
                            },
                            "Nx-Error-Domain": {
                                "description": "The domain of the error. See ErrorsDomain for more information.",
                                "type": "string"
                            },
                            "Nx-Error": {
                                "description": "A debug description of the error that occurred.",
                                "type": "string"
                            }
                        }
                    }
                },
                "tags": [
                    "License"
                ],
                "security": [
                    {
                        "basicAuth": []
                    }
                ]
            },
            "put": {
                "summary": "Update one item",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Identifier for item.",
                        "required": true,
                        "type": "string"
                    },
                    {
                        "name": "setnull",
                        "in": "query",
                        "description": "Array of fields to be set to null.",
                        "required": false,
                        "type": "array",
                        "items": {
                            "type": "string",
                            "enum": [
                                "id",
                                "date"
                            ]
                        }
                    },
                    {
                        "name": "item",
                        "in": "body",
                        "description": "Properties of item to update.",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/License"
                        }
                    },
                    {
                        "name": "return_item",
                        "in": "query",
                        "description": "If defined and equal to true (or 1), the response is the entire item after the update (same result as a get request). Otherwise it's just the number of affected rows. Defaults to false",
                        "required": false,
                        "type": "boolean"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Number of affected rows.",
                        "schema": {
                            "$ref": "#/definitions/Integer"
                        }
                    },
                    "400": {
                        "description": "An managed error occurred (status code may actually vary).",
                        "headers": {
                            "Nx-Error-Code": {
                                "description": "An explicit code that represent the error that occurred. See all *Error for more information.",
                                "type": "string"
                            },
                            "Nx-Error-Domain": {
                                "description": "The domain of the error. See ErrorsDomain for more information.",
                                "type": "string"
                            },
                            "Nx-Error": {
                                "description": "A debug description of the error that occurred.",
                                "type": "string"
                            }
                        }
                    }
                },
                "tags": [
                    "License"
                ],
                "security": [
                    {
                        "basicAuth": []
                    }
                ]
            },
            "delete": {
                "summary": "Delete one element",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Identifier for item.",
                        "required": true,
                        "type": "string"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Number of affected rows.",
                        "schema": {
                            "$ref": "#/definitions/Integer"
                        }
                    },
                    "400": {
                        "description": "An managed error occurred (status code may actually vary).",
                        "headers": {
                            "Nx-Error-Code": {
                                "description": "An explicit code that represent the error that occurred. See all *Error for more information.",
                                "type": "string"
                            },
                            "Nx-Error-Domain": {
                                "description": "The domain of the error. See ErrorsDomain for more information.",
                                "type": "string"
                            },
                            "Nx-Error": {
                                "description": "A debug description of the error that occurred.",
                                "type": "string"
                            }
                        }
                    }
                },
                "tags": [
                    "License"
                ],
                "security": [
                    {
                        "basicAuth": []
                    }
                ]
            }
        },
        "/License/{id}/activate": {
            "patch": {
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Identifier for item.",
                        "required": true,
                        "type": "string"
                    }
                ],
                "consumes": [
                    "application/x-www-form-urlencoded"
                ],
                "summary": "Activate licencse by given ID.",
                "tags": [
                    "License"
                ],
                "responses": {
                    "200": {
                        "description": "The patch method return item.",
                        "schema": {
                            "$ref": "#/definitions/String"
                        }
                    },
                    "400": {
                        "description": "An managed error occurred (status code may actually vary).",
                        "headers": {
                            "Nx-Error-Code": {
                                "description": "An explicit code that represent the error that occurred. See all *Error for more information.",
                                "type": "string"
                            },
                            "Nx-Error-Domain": {
                                "description": "The domain of the error. See ErrorsDomain for more information.",
                                "type": "string"
                            },
                            "Nx-Error": {
                                "description": "A debug description of the error that occurred.",
                                "type": "string"
                            }
                        }
                    }
                }
            }
        },
        "/Setting": {
            "get": {
                "summary": "Read many elements",
                "parameters": [
                    {
                        "name": "If-Modified-Since",
                        "in": "header",
                        "description": "Last date of change_dt",
                        "required": false,
                        "type": "string",
                        "format": "date-time"
                    },
                    {
                        "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"
                        }
                    },
                    {
                        "name": "calc_rows",
                        "in": "query",
                        "description": "Will add the number of rows as a header in the response",
                        "required": false,
                        "type": "boolean"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Array of items",
                        "schema": {
                            "type": "array",
                            "items": {
                                "$ref": "#/definitions/Setting"
                            }
                        }
                    },
                    "400": {
                        "description": "An managed error occurred (status code may actually vary).",
                        "headers": {
                            "Nx-Error-Code": {
                                "description": "An explicit code that represent the error that occurred. See all *Error for more information.",
                                "type": "string"
                            },
                            "Nx-Error-Domain": {
                                "description": "The domain of the error. See ErrorsDomain for more information.",
                                "type": "string"
                            },
                            "Nx-Error": {
                                "description": "A debug description of the error that occurred.",
                                "type": "string"
                            }
                        }
                    }
                },
                "tags": [
                    "Setting"
                ]
            }
        },
        "/Story": {
            "get": {
                "summary": "Read many elements",
                "parameters": [
                    {
                        "name": "If-Modified-Since",
                        "in": "header",
                        "description": "Last date of change_dt",
                        "required": false,
                        "type": "string",
                        "format": "date-time"
                    },
                    {
                        "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"
                        }
                    },
                    {
                        "name": "calc_rows",
                        "in": "query",
                        "description": "Will add the number of rows as a header in the response",
                        "required": false,
                        "type": "boolean"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Array of items",
                        "schema": {
                            "type": "array",
                            "items": {
                                "$ref": "#/definitions/Story"
                            }
                        }
                    },
                    "400": {
                        "description": "An managed error occurred (status code may actually vary).",
                        "headers": {
                            "Nx-Error-Code": {
                                "description": "An explicit code that represent the error that occurred. See all *Error for more information.",
                                "type": "string"
                            },
                            "Nx-Error-Domain": {
                                "description": "The domain of the error. See ErrorsDomain for more information.",
                                "type": "string"
                            },
                            "Nx-Error": {
                                "description": "A debug description of the error that occurred.",
                                "type": "string"
                            }
                        }
                    }
                },
                "tags": [
                    "Story"
                ]
            },
            "post": {
                "summary": "Create",
                "parameters": [
                    {
                        "name": "item",
                        "in": "body",
                        "description": "Item to create.",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/Story"
                        }
                    },
                    {
                        "name": "return_item",
                        "in": "query",
                        "description": "If defined and equal to true (or 1), the response is the entire item after the insert (same result as a get request). Otherwise it's just the item's ID. Defaults to false",
                        "required": false,
                        "type": "boolean"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Identifier of created item.",
                        "schema": {
                            "$ref": "#/definitions/Integer"
                        }
                    },
                    "400": {
                        "description": "An managed error occurred (status code may actually vary).",
                        "headers": {
                            "Nx-Error-Code": {
                                "description": "An explicit code that represent the error that occurred. See all *Error for more information.",
                                "type": "string"
                            },
                            "Nx-Error-Domain": {
                                "description": "The domain of the error. See ErrorsDomain for more information.",
                                "type": "string"
                            },
                            "Nx-Error": {
                                "description": "A debug description of the error that occurred.",
                                "type": "string"
                            }
                        }
                    }
                },
                "tags": [
                    "Story"
                ]
            }
        },
        "/Story/{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/Story"
                        }
                    },
                    "400": {
                        "description": "An managed error occurred (status code may actually vary).",
                        "headers": {
                            "Nx-Error-Code": {
                                "description": "An explicit code that represent the error that occurred. See all *Error for more information.",
                                "type": "string"
                            },
                            "Nx-Error-Domain": {
                                "description": "The domain of the error. See ErrorsDomain for more information.",
                                "type": "string"
                            },
                            "Nx-Error": {
                                "description": "A debug description of the error that occurred.",
                                "type": "string"
                            }
                        }
                    }
                },
                "tags": [
                    "Story"
                ]
            },
            "put": {
                "summary": "Update one item",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Identifier for item.",
                        "required": true,
                        "type": "integer"
                    },
                    {
                        "name": "setnull",
                        "in": "query",
                        "description": "Array of fields to be set to null.",
                        "required": false,
                        "type": "array",
                        "items": {
                            "type": "string",
                            "enum": [
                                "id",
                                "deleted"
                            ]
                        }
                    },
                    {
                        "name": "item",
                        "in": "body",
                        "description": "Properties of item to update.",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/Story"
                        }
                    },
                    {
                        "name": "return_item",
                        "in": "query",
                        "description": "If defined and equal to true (or 1), the response is the entire item after the update (same result as a get request). Otherwise it's just the number of affected rows. Defaults to false",
                        "required": false,
                        "type": "boolean"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Number of affected rows.",
                        "schema": {
                            "$ref": "#/definitions/Integer"
                        }
                    },
                    "400": {
                        "description": "An managed error occurred (status code may actually vary).",
                        "headers": {
                            "Nx-Error-Code": {
                                "description": "An explicit code that represent the error that occurred. See all *Error for more information.",
                                "type": "string"
                            },
                            "Nx-Error-Domain": {
                                "description": "The domain of the error. See ErrorsDomain for more information.",
                                "type": "string"
                            },
                            "Nx-Error": {
                                "description": "A debug description of the error that occurred.",
                                "type": "string"
                            }
                        }
                    }
                },
                "tags": [
                    "Story"
                ]
            },
            "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/Integer"
                        }
                    },
                    "400": {
                        "description": "An managed error occurred (status code may actually vary).",
                        "headers": {
                            "Nx-Error-Code": {
                                "description": "An explicit code that represent the error that occurred. See all *Error for more information.",
                                "type": "string"
                            },
                            "Nx-Error-Domain": {
                                "description": "The domain of the error. See ErrorsDomain for more information.",
                                "type": "string"
                            },
                            "Nx-Error": {
                                "description": "A debug description of the error that occurred.",
                                "type": "string"
                            }
                        }
                    }
                },
                "tags": [
                    "Story"
                ]
            }
        },
        "/StoriesList": {
            "get": {
                "summary": "Read many elements",
                "parameters": [
                    {
                        "name": "If-Modified-Since",
                        "in": "header",
                        "description": "Last date of change_dt",
                        "required": false,
                        "type": "string",
                        "format": "date-time"
                    },
                    {
                        "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"
                        }
                    },
                    {
                        "name": "calc_rows",
                        "in": "query",
                        "description": "Will add the number of rows as a header in the response",
                        "required": false,
                        "type": "boolean"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Array of items",
                        "schema": {
                            "type": "array",
                            "items": {
                                "$ref": "#/definitions/StoriesList"
                            }
                        }
                    },
                    "400": {
                        "description": "An managed error occurred (status code may actually vary).",
                        "headers": {
                            "Nx-Error-Code": {
                                "description": "An explicit code that represent the error that occurred. See all *Error for more information.",
                                "type": "string"
                            },
                            "Nx-Error-Domain": {
                                "description": "The domain of the error. See ErrorsDomain for more information.",
                                "type": "string"
                            },
                            "Nx-Error": {
                                "description": "A debug description of the error that occurred.",
                                "type": "string"
                            }
                        }
                    }
                },
                "tags": [
                    "StoriesList"
                ]
            }
        },
        "/StoriesList/{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/StoriesList"
                        }
                    },
                    "400": {
                        "description": "An managed error occurred (status code may actually vary).",
                        "headers": {
                            "Nx-Error-Code": {
                                "description": "An explicit code that represent the error that occurred. See all *Error for more information.",
                                "type": "string"
                            },
                            "Nx-Error-Domain": {
                                "description": "The domain of the error. See ErrorsDomain for more information.",
                                "type": "string"
                            },
                            "Nx-Error": {
                                "description": "A debug description of the error that occurred.",
                                "type": "string"
                            }
                        }
                    }
                },
                "tags": [
                    "StoriesList"
                ]
            }
        },
        "/User": {
            "get": {
                "summary": "Read many elements",
                "parameters": [
                    {
                        "name": "If-Modified-Since",
                        "in": "header",
                        "description": "Last date of change_dt",
                        "required": false,
                        "type": "string",
                        "format": "date-time"
                    },
                    {
                        "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"
                        }
                    },
                    {
                        "name": "calc_rows",
                        "in": "query",
                        "description": "Will add the number of rows as a header in the response",
                        "required": false,
                        "type": "boolean"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Array of items",
                        "schema": {
                            "type": "array",
                            "items": {
                                "$ref": "#/definitions/User"
                            }
                        }
                    },
                    "400": {
                        "description": "An managed error occurred (status code may actually vary).",
                        "headers": {
                            "Nx-Error-Code": {
                                "description": "An explicit code that represent the error that occurred. See all *Error for more information.",
                                "type": "string"
                            },
                            "Nx-Error-Domain": {
                                "description": "The domain of the error. See ErrorsDomain for more information.",
                                "type": "string"
                            },
                            "Nx-Error": {
                                "description": "A debug description of the error that occurred.",
                                "type": "string"
                            }
                        }
                    }
                },
                "tags": [
                    "User"
                ]
            },
            "post": {
                "summary": "Create",
                "parameters": [
                    {
                        "name": "item",
                        "in": "body",
                        "description": "Item to create.",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/User"
                        }
                    },
                    {
                        "name": "return_item",
                        "in": "query",
                        "description": "If defined and equal to true (or 1), the response is the entire item after the insert (same result as a get request). Otherwise it's just the item's ID. Defaults to false",
                        "required": false,
                        "type": "boolean"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Identifier of created item.",
                        "schema": {
                            "$ref": "#/definitions/Integer"
                        }
                    },
                    "400": {
                        "description": "An managed error occurred (status code may actually vary).",
                        "headers": {
                            "Nx-Error-Code": {
                                "description": "An explicit code that represent the error that occurred. See all *Error for more information.",
                                "type": "string"
                            },
                            "Nx-Error-Domain": {
                                "description": "The domain of the error. See ErrorsDomain for more information.",
                                "type": "string"
                            },
                            "Nx-Error": {
                                "description": "A debug description of the error that occurred.",
                                "type": "string"
                            }
                        }
                    }
                },
                "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"
                        }
                    },
                    "400": {
                        "description": "An managed error occurred (status code may actually vary).",
                        "headers": {
                            "Nx-Error-Code": {
                                "description": "An explicit code that represent the error that occurred. See all *Error for more information.",
                                "type": "string"
                            },
                            "Nx-Error-Domain": {
                                "description": "The domain of the error. See ErrorsDomain for more information.",
                                "type": "string"
                            },
                            "Nx-Error": {
                                "description": "A debug description of the error that occurred.",
                                "type": "string"
                            }
                        }
                    }
                },
                "tags": [
                    "User"
                ]
            },
            "put": {
                "summary": "Update one item",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Identifier for item.",
                        "required": true,
                        "type": "integer"
                    },
                    {
                        "name": "setnull",
                        "in": "query",
                        "description": "Array of fields to be set to null.",
                        "required": false,
                        "type": "array",
                        "items": {
                            "type": "string",
                            "enum": [
                                "mask_id"
                            ]
                        }
                    },
                    {
                        "name": "item",
                        "in": "body",
                        "description": "Properties of item to update.",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/User"
                        }
                    },
                    {
                        "name": "return_item",
                        "in": "query",
                        "description": "If defined and equal to true (or 1), the response is the entire item after the update (same result as a get request). Otherwise it's just the number of affected rows. Defaults to false",
                        "required": false,
                        "type": "boolean"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Number of affected rows.",
                        "schema": {
                            "$ref": "#/definitions/Integer"
                        }
                    },
                    "400": {
                        "description": "An managed error occurred (status code may actually vary).",
                        "headers": {
                            "Nx-Error-Code": {
                                "description": "An explicit code that represent the error that occurred. See all *Error for more information.",
                                "type": "string"
                            },
                            "Nx-Error-Domain": {
                                "description": "The domain of the error. See ErrorsDomain for more information.",
                                "type": "string"
                            },
                            "Nx-Error": {
                                "description": "A debug description of the error that occurred.",
                                "type": "string"
                            }
                        }
                    }
                },
                "tags": [
                    "User"
                ]
            },
            "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/Integer"
                        }
                    },
                    "400": {
                        "description": "An managed error occurred (status code may actually vary).",
                        "headers": {
                            "Nx-Error-Code": {
                                "description": "An explicit code that represent the error that occurred. See all *Error for more information.",
                                "type": "string"
                            },
                            "Nx-Error-Domain": {
                                "description": "The domain of the error. See ErrorsDomain for more information.",
                                "type": "string"
                            },
                            "Nx-Error": {
                                "description": "A debug description of the error that occurred.",
                                "type": "string"
                            }
                        }
                    }
                },
                "tags": [
                    "User"
                ]
            }
        }
    },
    "definitions": {
        "Boolean": {
            "type": "object",
            "properties": {
                "value": {
                    "type": "boolean"
                }
            }
        },
        "String": {
            "type": "object",
            "properties": {
                "value": {
                    "type": "string"
                }
            }
        },
        "Integer": {
            "type": "object",
            "properties": {
                "value": {
                    "type": "integer"
                }
            }
        },
        "Number": {
            "type": "object",
            "properties": {
                "value": {
                    "type": "number"
                }
            }
        },
        "ArrayOfStrings": {
            "type": "array",
            "items": {
                "type": "string"
            }
        },
        "ArrayOfIntegers": {
            "type": "array",
            "items": {
                "type": "integer"
            }
        },
        "ArrayOfNumbers": {
            "type": "array",
            "items": {
                "type": "number"
            }
        },
        "Image": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "integer",
                    "x-primary-key": true
                },
                "story_id": {
                    "type": "integer"
                },
                "position": {
                    "type": "integer"
                },
                "file_name": {
                    "type": "string"
                },
                "change_dt": {
                    "type": "string",
                    "format": "date-time"
                },
                "deleted": {
                    "type": "integer"
                },
                "type": {
                    "type": "string",
                    "enum": [
                        "home",
                        "card",
                        "story"
                    ]
                }
            },
            "description": "*",
            "required": [
                "story_id",
                "position",
                "file_name",
                "change_dt",
                "type"
            ]
        },
        "License": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "string",
                    "x-primary-key": true
                },
                "reference": {
                    "type": "string"
                },
                "practician_name": {
                    "type": "string"
                },
                "activations_max": {
                    "type": "integer"
                },
                "activations": {
                    "type": "string"
                },
                "date": {
                    "type": "string",
                    "format": "date-time"
                },
                "deleted": {
                    "type": "boolean"
                },
                "create_dt": {
                    "type": "string",
                    "format": "date-time"
                },
                "change_dt": {
                    "type": "string",
                    "format": "date-time"
                }
            },
            "description": "*",
            "required": [
                "reference",
                "practician_name",
                "activations_max",
                "activations",
                "deleted",
                "create_dt",
                "change_dt"
            ]
        },
        "Setting": {
            "type": "object",
            "properties": {
                "unlock_history_code": {
                    "type": "string"
                }
            },
            "description": "*",
            "required": [
                "unlock_history_code"
            ]
        },
        "Story": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "integer",
                    "x-primary-key": true
                },
                "title": {
                    "type": "string"
                },
                "lang": {
                    "type": "string"
                },
                "change_dt": {
                    "type": "string",
                    "format": "date-time"
                },
                "deleted": {
                    "type": "integer"
                }
            },
            "description": "*",
            "required": [
                "title",
                "lang",
                "change_dt"
            ]
        },
        "StoriesList": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "integer",
                    "x-primary-key": true
                },
                "position": {
                    "type": "integer"
                },
                "title": {
                    "type": "string"
                },
                "lang": {
                    "type": "string"
                },
                "deleted": {
                    "type": "integer"
                },
                "nb_images": {
                    "type": "integer"
                },
                "files_list": {
                    "type": "string"
                },
                "change_dt": {
                    "type": "string",
                    "format": "date-time"
                }
            },
            "description": "*",
            "required": [
                "id",
                "position",
                "title",
                "lang",
                "nb_images",
                "change_dt"
            ]
        },
        "User": {
            "type": "object",
            "properties": {
                "mask_id": {
                    "type": "integer",
                    "x-primary-key": true
                },
                "current_story": {
                    "type": "integer"
                },
                "current_wearing_duration": {
                    "type": "integer"
                },
                "change_dt": {
                    "type": "string",
                    "format": "date-time"
                },
                "deleted": {
                    "type": "integer"
                }
            },
            "description": "*",
            "required": [
                "current_story",
                "current_wearing_duration",
                "change_dt",
                "deleted"
            ]
        },
        "ApiCoreError": {
            "description": "An explicit code that represent the error that occurred within the ApiCore domain. 404: notFound | 405: methodNotAllowed | 406: methodUnavailable | 650: unknownObject | 655: missingMethodForPatch | 900: missingIdForUpdate | 901: missingIdForDelete | 1024: badLoginOrPassword | 1234: badResponseType | 2001: missingAlias | 2002: missingFieldsForUpdate | 2003: missingFieldsForInsert | 2004: missingWhereClause | 2005: missingParameter | 2006: writeOnly | 1100: locoUpdateFailed | 12001: notAllowed | 12002: missingLoginOrPassword | 12003: noUserSet | 42421: missingAppInstallIdentifier | 42422: missingAppIdentifier | 42423: missingAppVersionIdentifier | 42424: applicationVersionNotAllowed",
            "type": "string",
            "enum": [
                404,
                405,
                406,
                650,
                655,
                900,
                901,
                1024,
                1234,
                2001,
                2002,
                2003,
                2004,
                2005,
                2006,
                1100,
                12001,
                12002,
                12003,
                42421,
                42422,
                42423,
                42424
            ]
        },
        "ProjectError": {
            "description": "An explicit code that represent the error that occurred within the Project domain. 42: unexpected | 1000: fieldIsLocked | 1100: userIsDisabled | 1101: userIsNotActivated | 1200: invalidPassword | 1201: invalidEmailAddress | 1202: emailAddressDuplicate | 1300: unableToSendMail | 1301: unrecognizedRequestType | 1302: dateMissing | 1303: missingEmail | 1304: missingType | 4012: licenseMaxActivationsReached",
            "type": "string",
            "enum": [
                42,
                1000,
                1100,
                1101,
                1200,
                1201,
                1202,
                1300,
                1301,
                1302,
                1303,
                1304,
                4012
            ]
        },
        "ErrorsDomain": {
            "description": "Represents an errors domain. Some error codes can be in several domain at the same time but a single domain can only contain an error code once.",
            "type": "string",
            "enum": [
                "Sql",
                "ApiCore",
                "Project"
            ]
        }
    }
}