{
    "swagger": "2.0",
    "info": {
        "title": "appup",
        "description": "API",
        "version": "0"
    },
    "host": "api.appup.fr",
    "basePath": "\/",
    "schemes": [
        "https"
    ],
    "consumes": [
        "application\/json",
        "multipart\/form-data",
        "application\/x-www-form-urlencoded"
    ],
    "produces": [
        "application\/json"
    ],
    "tags": [
        {
            "name": "Article"
        },
        {
            "name": "Contact"
        },
        {
            "name": "File"
        },
        {
            "name": "Lead"
        },
        {
            "name": "Page"
        },
        {
            "name": "Project"
        }
    ],
    "paths": {
        "\/Article": {
            "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\/Article"
                            }
                        }
                    }
                },
                "tags": [
                    "Article"
                ]
            },
            "post": {
                "summary": "Create",
                "parameters": [
                    {
                        "name": "item",
                        "in": "body",
                        "description": "Item to create.",
                        "required": true,
                        "schema": {
                            "$ref": "#\/definitions\/Article"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Identifier of created item.",
                        "schema": {
                            "$ref": "#\/definitions\/IntegerResponse"
                        }
                    }
                },
                "tags": [
                    "Article"
                ]
            }
        },
        "\/Article\/{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\/Article"
                        }
                    }
                },
                "tags": [
                    "Article"
                ]
            },
            "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\/Article"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Number of affected rows.",
                        "schema": {
                            "$ref": "#\/definitions\/IntegerResponse"
                        }
                    }
                },
                "tags": [
                    "Article"
                ]
            },
            "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": [
                    "Article"
                ]
            }
        },
        "\/Contact": {
            "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\/Contact"
                            }
                        }
                    }
                },
                "tags": [
                    "Contact"
                ]
            },
            "post": {
                "summary": "Create",
                "parameters": [
                    {
                        "name": "item",
                        "in": "body",
                        "description": "Item to create.",
                        "required": true,
                        "schema": {
                            "$ref": "#\/definitions\/Contact"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Identifier of created item.",
                        "schema": {
                            "$ref": "#\/definitions\/IntegerResponse"
                        }
                    }
                },
                "tags": [
                    "Contact"
                ]
            }
        },
        "\/Contact\/{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\/Contact"
                        }
                    }
                },
                "tags": [
                    "Contact"
                ]
            },
            "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\/Contact"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Number of affected rows.",
                        "schema": {
                            "$ref": "#\/definitions\/IntegerResponse"
                        }
                    }
                },
                "tags": [
                    "Contact"
                ]
            },
            "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": [
                    "Contact"
                ]
            }
        },
        "\/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"
                ]
            }
        },
        "\/Lead": {
            "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\/Lead"
                            }
                        }
                    }
                },
                "tags": [
                    "Lead"
                ]
            },
            "post": {
                "summary": "Create",
                "parameters": [
                    {
                        "name": "item",
                        "in": "body",
                        "description": "Item to create.",
                        "required": true,
                        "schema": {
                            "$ref": "#\/definitions\/Lead"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Identifier of created item.",
                        "schema": {
                            "$ref": "#\/definitions\/IntegerResponse"
                        }
                    }
                },
                "tags": [
                    "Lead"
                ]
            }
        },
        "\/Lead\/{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\/Lead"
                        }
                    }
                },
                "tags": [
                    "Lead"
                ]
            },
            "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\/Lead"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Number of affected rows.",
                        "schema": {
                            "$ref": "#\/definitions\/IntegerResponse"
                        }
                    }
                },
                "tags": [
                    "Lead"
                ]
            },
            "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": [
                    "Lead"
                ]
            }
        },
        "\/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"
                ]
            }
        },
        "\/Project": {
            "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\/Project"
                            }
                        }
                    }
                },
                "tags": [
                    "Project"
                ]
            },
            "post": {
                "summary": "Create",
                "parameters": [
                    {
                        "name": "item",
                        "in": "body",
                        "description": "Item to create.",
                        "required": true,
                        "schema": {
                            "$ref": "#\/definitions\/Project"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Identifier of created item.",
                        "schema": {
                            "$ref": "#\/definitions\/IntegerResponse"
                        }
                    }
                },
                "tags": [
                    "Project"
                ]
            }
        },
        "\/Project\/{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\/Project"
                        }
                    }
                },
                "tags": [
                    "Project"
                ]
            },
            "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\/Project"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Number of affected rows.",
                        "schema": {
                            "$ref": "#\/definitions\/IntegerResponse"
                        }
                    }
                },
                "tags": [
                    "Project"
                ]
            },
            "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": [
                    "Project"
                ]
            }
        },
        "\/Project\/{id}\/getSecurityCode": {
            "patch": {
                "consumes": [
                    "application\/x-www-form-urlencoded"
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Identifier for item.",
                        "required": true,
                        "type": "integer"
                    },
                    {
                        "name": "mail",
                        "in": "formData",
                        "required": true,
                        "type": "string"
                    }
                ],
                "summary": "Get Access code",
                "responses": {
                    "200": {
                        "schema": {
                            "$ref": {
                                "type": "array"
                            }
                        }
                    }
                }
            }
        }
    },
    "definitions": {
        "BooleanResponse": {
            "type": "object",
            "properties": {
                "value": {
                    "type": "boolean"
                }
            }
        },
        "StringResponse": {
            "type": "object",
            "properties": {
                "value": {
                    "type": "string"
                }
            }
        },
        "IntegerResponse": {
            "type": "object",
            "properties": {
                "value": {
                    "type": "integer"
                }
            }
        },
        "NumberResponse": {
            "type": "object",
            "properties": {
                "value": {
                    "type": "number"
                }
            }
        },
        "Article": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "integer",
                    "x-primary-key": true
                },
                "title": {
                    "type": "string"
                },
                "slug": {
                    "type": "string"
                },
                "hook": {
                    "type": "string"
                },
                "content": {
                    "type": "string"
                },
                "is_draft": {
                    "type": "integer"
                },
                "programming_date": {
                    "type": "string",
                    "format": "date-time"
                },
                "creation_date": {
                    "type": "string",
                    "format": "date-time"
                },
                "change_dt": {
                    "type": "string",
                    "format": "date-time"
                },
                "deleted": {
                    "type": "integer"
                }
            },
            "required": [
                "id",
                "title",
                "slug",
                "hook",
                "content",
                "creation_date",
                "change_dt",
                "deleted"
            ]
        },
        "Contact": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "integer",
                    "x-primary-key": true
                },
                "name": {
                    "type": "string"
                },
                "email": {
                    "type": "string"
                },
                "phone": {
                    "type": "string"
                },
                "reason": {
                    "type": "string"
                },
                "message": {
                    "type": "string"
                },
                "ip_address": {
                    "type": "string"
                },
                "creation_date": {
                    "type": "string",
                    "format": "date-time"
                },
                "change_dt": {
                    "type": "string",
                    "format": "date-time"
                },
                "deleted": {
                    "type": "integer"
                }
            },
            "required": [
                "id",
                "name",
                "email",
                "reason",
                "message",
                "ip_address",
                "creation_date",
                "change_dt",
                "deleted"
            ]
        },
        "File": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "integer",
                    "x-primary-key": true
                },
                "file_name": {
                    "type": "string"
                },
                "url": {
                    "type": "string"
                },
                "mime": {
                    "type": "string"
                },
                "change_dt": {
                    "type": "string",
                    "format": "date-time"
                },
                "deleted": {
                    "type": "integer"
                }
            },
            "required": [
                "id",
                "file_name",
                "url",
                "mime",
                "change_dt",
                "deleted"
            ]
        },
        "Lead": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "integer",
                    "x-primary-key": true
                },
                "campaign_lead": {
                    "type": "string"
                },
                "answers": {
                    "type": "string"
                },
                "creation_date": {
                    "type": "string",
                    "format": "date-time"
                },
                "change_dt": {
                    "type": "string",
                    "format": "date-time"
                },
                "deleted": {
                    "type": "integer"
                }
            },
            "required": [
                "id",
                "campaign_lead",
                "answers",
                "creation_date",
                "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"
            ]
        },
        "Project": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "integer",
                    "x-primary-key": true
                },
                "name": {
                    "type": "string"
                },
                "slug": {
                    "type": "string"
                },
                "hook": {
                    "type": "string"
                },
                "type": {
                    "type": "string"
                },
                "content": {
                    "type": "string"
                },
                "android_link": {
                    "type": "string"
                },
                "ios_link": {
                    "type": "string"
                },
                "site_link": {
                    "type": "string"
                },
                "picture": {
                    "type": "integer"
                },
                "change_dt": {
                    "type": "string",
                    "format": "date-time"
                },
                "deleted": {
                    "type": "integer"
                }
            },
            "required": [
                "id",
                "name",
                "slug",
                "hook",
                "type",
                "picture",
                "change_dt",
                "deleted"
            ]
        }
    },
    "securityDefinitions": {
        "basicAuth": {
            "description": "Global Security",
            "type": "basic"
        }
    }
}