{
    "swagger": "2.0",
    "info": {
        "title": "Melhor Escola",
        "description": "Site description",
        "contact": {
            "email": "k12-admin@redealumni.com"
        },
        "version": "2.0"
    },
    "paths": {
        "/v3/school-manager-area/account/confirm": {
            "post": {
                "summary": "Method to Post informations to confirm school manager account",
                "operationId": "index",
                "parameters": [
                    {
                        "name": "user[name]",
                        "in": "path",
                        "description": "Manager user name",
                        "required": true,
                        "type": "string"
                    },
                    {
                        "name": "user[email]",
                        "in": "path",
                        "description": "Manager user email",
                        "required": true,
                        "type": "string"
                    },
                    {
                        "name": "user[phone]",
                        "in": "path",
                        "description": "Manager user phone",
                        "required": true,
                        "type": "string"
                    },
                    {
                        "name": "user[cpf]",
                        "in": "path",
                        "description": "Manager user CPF",
                        "required": true,
                        "type": "string"
                    },
                    {
                        "name": "school[name]",
                        "in": "path",
                        "description": "School name",
                        "required": true,
                        "type": "string"
                    },
                    {
                        "name": "school[codEnt]",
                        "in": "path",
                        "description": "School CodEnt",
                        "required": true,
                        "type": "string"
                    },
                    {
                        "name": "school[city][fullSlug]",
                        "in": "path",
                        "description": "School city full slug",
                        "required": true,
                        "type": "string"
                    },
                    {
                        "name": "school[responsibleName]",
                        "in": "path",
                        "description": "School responsible name",
                        "required": true,
                        "type": "string"
                    },
                    {
                        "name": "school[cnpj]",
                        "in": "path",
                        "description": "School CNPJ",
                        "required": true,
                        "type": "string"
                    },
                    {
                        "name": "school[type][slug]",
                        "in": "path",
                        "description": "School type slug",
                        "required": true,
                        "type": "string"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "ok"
                    },
                    "422": {
                        "description": "error"
                    }
                }
            }
        },
        "/v3/school-manager-area/account/password-reset": {
            "post": {
                "summary": "Method to send e-mail to change password",
                "operationId": "index",
                "parameters": [
                    {
                        "name": "email",
                        "in": "path",
                        "description": "Manager user email",
                        "required": true,
                        "type": "string"
                    }
                ],
                "responses": {
                    "204": {
                        "description": "success"
                    }
                }
            }
        },
        "/v3/school-manager-area/account/password-recovery": {
            "post": {
                "summary": "Method to define new password after reset",
                "operationId": "index",
                "parameters": [
                    {
                        "name": "password",
                        "in": "path",
                        "description": "Manager password",
                        "required": true,
                        "type": "string"
                    },
                    {
                        "name": "passwordConfirmation",
                        "in": "path",
                        "description": "Manager password confirmation",
                        "required": true,
                        "type": "string"
                    },
                    {
                        "name": "passwordToken",
                        "in": "path",
                        "description": "Manager user password token",
                        "required": true,
                        "type": "string"
                    }
                ],
                "responses": {
                    "204": {
                        "description": "success"
                    }
                }
            }
        },
        "/v3/school-manager-area/account/resend-validation-email": {
            "post": {
                "summary": "Method to resend e-mail to new account",
                "operationId": "index",
                "parameters": [
                    {
                        "name": "email",
                        "in": "path",
                        "description": "Manager user email",
                        "required": true,
                        "type": "string"
                    }
                ],
                "responses": {
                    "204": {
                        "description": "success"
                    }
                }
            }
        },
        "/v3/school-manager-area/account/": {
            "post": {
                "summary": "Method to create new  manager account",
                "operationId": "index",
                "parameters": [
                    {
                        "name": "name",
                        "in": "path",
                        "description": "Manager name",
                        "required": true,
                        "type": "string"
                    },
                    {
                        "name": "email",
                        "in": "path",
                        "description": "Unique e-mail",
                        "required": true,
                        "type": "string"
                    },
                    {
                        "name": "phone",
                        "in": "path",
                        "description": "Manager phone number",
                        "required": true,
                        "type": "string"
                    },
                    {
                        "name": "cpf",
                        "in": "path",
                        "description": "Unique cpf",
                        "required": true,
                        "type": "string"
                    },
                    {
                        "name": "cityFullSlug",
                        "in": "path",
                        "description": "Full slug with city and state",
                        "required": true,
                        "type": "string"
                    },
                    {
                        "name": "schoolName",
                        "in": "path",
                        "description": "school name",
                        "required": true,
                        "type": "string"
                    },
                    {
                        "name": "studentsNumber",
                        "in": "path",
                        "description": "Number of amount the students",
                        "required": true,
                        "type": "integer"
                    },
                    {
                        "name": "schoolType",
                        "in": "path",
                        "description": "School type",
                        "required": true,
                        "type": "string"
                    },
                    {
                        "name": "wishBePartner",
                        "in": "path",
                        "description": "Whether this school wish to be a partner",
                        "required": true,
                        "type": "boolean"
                    }
                ],
                "responses": {
                    "201": {
                        "description": "success"
                    }
                }
            }
        },
        "/v3/school-manager-area/account/create-password": {
            "post": {
                "summary": "Method to define new password after register new school user",
                "operationId": "index",
                "parameters": [
                    {
                        "name": "password",
                        "in": "path",
                        "description": "Manager password",
                        "required": true,
                        "type": "string"
                    },
                    {
                        "name": "password_confirmation",
                        "in": "path",
                        "description": "Manager password confirmation",
                        "required": true,
                        "type": "string"
                    },
                    {
                        "name": "token",
                        "in": "path",
                        "description": "Manager user token",
                        "required": true,
                        "type": "string"
                    }
                ],
                "responses": {
                    "204": {
                        "description": "success"
                    }
                }
            }
        },
        "/v3/school-manager-area/account/confirmation": {
            "get": {
                "summary": "Method to GET informations to confirm school manager account",
                "operationId": "index",
                "responses": {
                    "200": {
                        "description": "ok"
                    },
                    "401": {
                        "description": "unauthenticated"
                    }
                }
            }
        },
        "/v3/school-manager-area/auth/login": {
            "post": {
                "summary": "Method to make login as manager",
                "operationId": "index",
                "parameters": [
                    {
                        "name": "email",
                        "in": "path",
                        "description": "Unique email",
                        "required": true,
                        "type": "string"
                    },
                    {
                        "name": "password",
                        "in": "path",
                        "description": "min 6 caracteres",
                        "required": true,
                        "type": "string"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "success"
                    }
                }
            }
        }
    },
    "definitions": {}
}