{
	"components": {
        "login": {
            "summary": "User Login API",
            "description": "This API is used to user login.",
            "tags": [
				"Auth"
			],
			"consumes": [
				"application/json"
			],
			"produces": [
				"application/json"
			],
            "requestBody": {
                "content": {
                    "application/x-www-form-urlencoded": {
                        "schema": {
                            "type": "object",
                            "required": [
                                "email",
                                "password"
                            ],
                            "properties": {
                                "email": {
                                    "type": "string",
                                    "description": "Enter email.",
                                    "example": "yash.dhakad@gmail.com"
                                },
                                "password": {
                                    "type": "string",
                                    "description": "Enter password.",
                                    "example": "123456"
                                }
                            }
                        }
                    }
                },
                "required": true
            },
            "responses": {
                "200": {
                    "description": "When login data displayed successfully.",
                    "content": {
                        "application/json": {
                            "schema": {
                                "oneOf": [
                                    {
                                        "type": "object",
                                        "properties": {
                                            "code": {
                                                "type": "string",
                                                "message": "Success"
                                            },
                                            "data": {
                                                "type": "object",
                                                "example": {
                                                    "user_info": {
                                                        "user_id": 621,
                                                        "name": "YASHWANT DHAKAD",
                                                        "email": "yash.dhakad@gmail.com",
                                                        "mobile_no": "07415538151",
                                                        "company_name": "KISAAN",
                                                        "auth_key": "e38c4c571d487fb65b8f14dab2390ec3",
                                                        "token": "ogAWOUy038",
                                                        "account_type": "free",
                                                        "gender": "Male",
                                                        "address": "5- A vaibhav Nagar, Indore",
                                                        "state": "MP",
                                                        "country": "India",
                                                        "pincode": "452016",
                                                        "status": "active",
                                                        "trial_expired": "0",
                                                        "start_date": "2021-04-06T18:30:00.000Z",
                                                        "expired_date": "2021-04-30T18:30:00.000Z",
                                                        "created_at": "2021-04-07T12:08:23.000Z"
                                                    }
                                                }
                                            }
                                        }
                                    },
                                    {
                                        "type": "object",
                                        "properties": {
                                            "code": {
                                                "type": "integer",
                                                "example": 200
                                            },
                                            "data": {
                                                "type": "object",
                                                "example": []
                                            }
                                        }
                                    }
                                ]
                            }
                        }
                    }
                },
                "400": {
                    "description": "Validation errors.",
                    "content": {
                        "application/json": {
                            "schema": {
                                "oneOf": [
                                    {
                                        "properties": {
                                            "status": {
                                                "type": "boolean",
                                                "example": false
                                            },
                                            "code": {
                                                "type": "string",
                                                "example": "INVALID_API_KEY"
                                            },
                                            "errors": {
                                                "type": "array",
                                                "example": [
                                                    "api access key is missing."
                                                ]
                                            }
                                        }
                                    }
                                ]
                            }
                        }
                    }
                }
            }
        }
	}
}