{
    "swagger": "2.0",
    "info": {
        "description": "all api documation myFy nodeJs",
        "version": "1.0.0",
        "title": "Swagger myFy",
        "termsOfService": "http://swagger.io/terms/",
        "contact": {
            "email": "tanvir@inheritx.com"
        },
        "license": {
            "name": "Apache 2.0",
            "url": "http://www.apache.org/licenses/LICENSE-2.0.html"
        }
    },
    "host": "node.inheritxdev.in/myfy-dev",
    "basePath": "/v1",
    "produces": [
        "application/json"
    ],
    "paths": {
        "/users/signUp": {
            "post": {
                "summary": "signUp a new user.",
                "consumes": [
                    "application/json"
                ],
                "tags": [
                    "users"
                ],
                "parameters": [
                    {
                        "in": "body",
                        "name": "user",
                        "description": "The user signUp",
                        "schema": {
                            "type": "object",
                            "required": [
                                "email",
                                "password"
                            ],
                            "properties": {
                                "email": {
                                    "type": "string"
                                },
                                "password": {
                                    "type": "string"
                                },
                                "full_name": {
                                    "type": "string"
                                },
                                "dob": {
                                    "type": "string"
                                },
                                "age": {
                                    "type": "number"
                                },
                                "country_code": {
                                    "type": "string"
                                },
                                "country": {
                                    "type": "string"
                                },
                                "city": {
                                    "type": "string"
                                }
                            }
                        }
                    }
                ],
                "responses": {}
            }
        },
        "/users/login": {
            "post": {
                "summary": "user login",
                "consumes": [
                    "application/json"
                ],
                "tags": [
                    "users"
                ],
                "parameters": [
                    {
                        "in": "body",
                        "name": "user",
                        "description": "The user login.",
                        "schema": {
                            "type": "object",
                            "required": [
                                "email",
                                "password"
                            ],
                            "properties": {
                                "email": {
                                    "type": "string"
                                },
                                "password": {
                                    "type": "string"
                                }
                            }
                        }
                    }
                ],
                "responses": {}
            }
        },
        "/users/account-verify": {
            "get": {
                "summary": "user accountVerify",
                "consumes": [
                    "application/json"
                ],
                "tags": [
                    "users"
                ],
                "parameters": [
                    {
                        "name": "user_id",
                        "in": "query",
                        "description": "Enter userId",
                        "required": true,
                        "type": "string"
                    },
                    {
                        "name": "emailVerificationToken",
                        "in": "query",
                        "description": "emailVerificationToken",
                        "required": true,
                        "type": "string"
                    }
                ],
                "responses": {}
            }
        },
        "/users/logout": {
            "get": {
                "summary": "user logout",
                "consumes": [
                    "application/json"
                ],
                "tags": [
                    "users"
                ],
                "parameters": [
                    {
                        "name": "Authorization",
                        "in": "header",
                        "description": "an authorization header, Please add Bearer keyword before token",
                        "required": "true",
                        "type": "string"
                    }
                ],
                "responses": {}
            }
        },
        "/users/change-password": {
            "post": {
                "summary": "user change password",
                "consumes": [
                    "application/json"
                ],
                "tags": [
                    "users"
                ],
                "parameters": [
                    {
                        "name": "Authorization",
                        "in": "header",
                        "description": "an authorization header, Please add Bearer keyword before token",
                        "required": "true",
                        "type": "string"
                    },
                    {
                        "in": "body",
                        "name": "user",
                        "description": "The user login",
                        "schema": {
                            "type": "object",
                            "required": [
                                "old_password",
                                "new_password",
                                "confirm_password"
                            ],
                            "properties": {
                                "old_password": {
                                    "type": "string"
                                },
                                "new_password": {
                                    "type": "string"
                                },
                                "confirm_password": {
                                    "type": "string"
                                }
                            }
                        }
                    }
                ],
                "responses": {}
            }
        },
        "/users/forgot-password": {
            "post": {
                "summary": "user forgot password",
                "consumes": [
                    "application/json"
                ],
                "tags": [
                    "users"
                ],
                "parameters": [
                    {
                        "in": "body",
                        "name": "user",
                        "description": "The user login",
                        "schema": {
                            "type": "object",
                            "required": [
                                "email",
                                "password"
                            ],
                            "properties": {
                                "email": {
                                    "type": "string"
                                }
                            }
                        }
                    }
                ],
                "responses": {}
            }
        },
        "/users/resend-mail": {
            "post": {
                "summary": "resend mail",
                "consumes": [
                    "application/json"
                ],
                "tags": [
                    "users"
                ],
                "parameters": [
                    {
                        "in": "body",
                        "name": "user",
                        "description": "resend mail",
                        "schema": {
                            "type": "object",
                            "required": [
                                "email"
                            ],
                            "properties": {
                                "email": {
                                    "type": "string"
                                }
                            }
                        }
                    }
                ],
                "responses": {}
            }
        },
        "/users/reset-password": {
            "post": {
                "summary": "user reset password",
                "consumes": [
                    "application/json"
                ],
                "tags": [
                    "users"
                ],
                "parameters": [
                    {
                        "in": "body",
                        "name": "user",
                        "description": "User reset password",
                        "schema": {
                            "type": "object",
                            "required": [
                                "new_password",
                                "confirm_password"
                            ],
                            "properties": {
                                "reset_password_token": {
                                    "type": "string"
                                },
                                "new_password": {
                                    "type": "string"
                                },
                                "confirm_password": {
                                    "type": "string"
                                }
                            }
                        }
                    }
                ],
                "responses": {}
            }
        },
        "/users": {
            "get": {
                "summary": "get user deatils",
                "x-swagger-router-controller": "bar",
                "operationId": "impossible",
                "tags": [
                    "users"
                ],
                "description": "",
                "parameters": [
                    {
                        "name": "Authorization",
                        "in": "header",
                        "description": "an authorization header, Please add Bearer keyword before token",
                        "required": "true",
                        "type": "string"
                    }
                ],
                "responses": {}
            },
            "put": {
                "summary": "update user",
                "consumes": [
                    "application/json"
                ],
                "tags": [
                    "users"
                ],
                "description": "",
                "parameters": [
                    {
                        "name": "Authorization",
                        "in": "header",
                        "description": "an authorization header, Please add Bearer keyword before token",
                        "required": "true",
                        "type": "string"
                    },
                    {
                        "in": "body",
                        "name": "user",
                        "description": "The user update",
                        "schema": {
                            "type": "object",
                            "required": [],
                            "properties": {
                                "full_name": {
                                    "type": "string"
                                },
                                "age": {
                                    "type": "number"
                                },
                                "country_code": {
                                    "type": "string"
                                },
                                "country": {
                                    "type": "string"
                                },
                                "city": {
                                    "type": "string"
                                }
                            }
                        }
                    }
                ],
                "responses": {}
            }
        },
        "/balance/add-user-balance": {
            "post": {
                "summary": "add user balance",
                "consumes": [
                    "application/json"
                ],
                "tags": [
                    "Balance"
                ],
                "parameters": [
                    {
                        "name": "Authorization",
                        "in": "header",
                        "description": "an authorization header, Please add Bearer keyword before token",
                        "required": "true",
                        "type": "string"
                    },
                    {
                        "in": "body",
                        "name": "user",
                        "description": "",
                        "schema": {
                            "type": "object"
                            
                        }
                    }
                ],
                "responses": {}
            }
        },
        "/balance/last-two-days-balance": {
            "get": {
                "summary": "get last two days balance",
                "x-swagger-router-controller": "bar",
                "operationId": "impossible",
                "tags": [
                    "Balance"
                ],
                "description": "",
                "parameters": [
                    {
                        "name": "Authorization",
                        "in": "header",
                        "description": "an authorization header, Please add Bearer keyword before token",
                        "required": "true",
                        "type": "string"
                    }
                ],
                "responses": {}
            }
        },
        "/balance/start-to-end-balance": {
            "get": {
                "summary": "get start to end balance(all balance)",
                "x-swagger-router-controller": "bar",
                "operationId": "impossible",
                "tags": [
                    "Balance"
                ],
                "description": "",
                "parameters": [
                    {
                        "name": "Authorization",
                        "in": "header",
                        "description": "an authorization header, Please add Bearer keyword before token",
                        "required": "true",
                        "type": "string"
                    }
                ],
                "responses": {}
            }
        },
        "/balance/start-to-end-rank": {
            "get": {
                "summary": "get start to end rank(all balance)",
                "x-swagger-router-controller": "bar",
                "operationId": "impossible",
                "tags": [
                    "Balance"
                ],
                "description": "",
                "parameters": [
                    {
                        "name": "Authorization",
                        "in": "header",
                        "description": "an authorization header, Please add Bearer keyword before token",
                        "required": "true",
                        "type": "string"
                    }
                ],
                "responses": {}
            }
        }
    }
}