import json
from flask import Flask, request, Response
from flask_restplus import Resource, Api
from flask import jsonify
from validations import Validations as validations
from flask_api import status
from database import DatabaseC as db

app = Flask(__name__)
api = Api(app)

api = api.namespace('', description="System 3")

@api.route("/events/<cpf>", endpoint='events')
class events(Resource):
	def get(self, cpf):
     
		if not validations.isValidCpf(cpf):
			return {'code': '1001', "message": 'Invalid CPF'}, status.HTTP_412_PRECONDITION_FAILED

		user = db.getUserInfo(cpf)
  
		return json.dumps(user.__dict__)

if __name__ == '__main__':
     app.run(port='5003', host='0.0.0.0')

8a41436e9a81e3ec09b73b09ef526c20f3fb7c87
<mask token>


@api.route('/events/<cpf>', endpoint='events')
class events(Resource):

    def get(self, cpf):
        if not validations.isValidCpf(cpf):
            return {'code': '1001', 'message': 'Invalid CPF'
                }, status.HTTP_412_PRECONDITION_FAILED
        user = db.getUserInfo(cpf)
        return json.dumps(user.__dict__)


<mask token>

<mask token>


@api.route('/events/<cpf>', endpoint='events')
class events(Resource):

    def get(self, cpf):
        if not validations.isValidCpf(cpf):
            return {'code': '1001', 'message': 'Invalid CPF'
                }, status.HTTP_412_PRECONDITION_FAILED
        user = db.getUserInfo(cpf)
        return json.dumps(user.__dict__)


if __name__ == '__main__':
    app.run(port='5003', host='0.0.0.0')

<mask token>
app = Flask(__name__)
api = Api(app)
api = api.namespace('', description='System 3')


@api.route('/events/<cpf>', endpoint='events')
class events(Resource):

    def get(self, cpf):
        if not validations.isValidCpf(cpf):
            return {'code': '1001', 'message': 'Invalid CPF'
                }, status.HTTP_412_PRECONDITION_FAILED
        user = db.getUserInfo(cpf)
        return json.dumps(user.__dict__)


if __name__ == '__main__':
    app.run(port='5003', host='0.0.0.0')

import json
from flask import Flask, request, Response
from flask_restplus import Resource, Api
from flask import jsonify
from validations import Validations as validations
from flask_api import status
from database import DatabaseC as db
app = Flask(__name__)
api = Api(app)
api = api.namespace('', description='System 3')


@api.route('/events/<cpf>', endpoint='events')
class events(Resource):

    def get(self, cpf):
        if not validations.isValidCpf(cpf):
            return {'code': '1001', 'message': 'Invalid CPF'
                }, status.HTTP_412_PRECONDITION_FAILED
        user = db.getUserInfo(cpf)
        return json.dumps(user.__dict__)


if __name__ == '__main__':
    app.run(port='5003', host='0.0.0.0')

import json
from flask import Flask, request, Response
from flask_restplus import Resource, Api
from flask import jsonify
from validations import Validations as validations
from flask_api import status
from database import DatabaseC as db

app = Flask(__name__)
api = Api(app)

api = api.namespace('', description="System 3")

@api.route("/events/<cpf>", endpoint='events')
class events(Resource):
	def get(self, cpf):
     
		if not validations.isValidCpf(cpf):
			return {'code': '1001', "message": 'Invalid CPF'}, status.HTTP_412_PRECONDITION_FAILED

		user = db.getUserInfo(cpf)
  
		return json.dumps(user.__dict__)

if __name__ == '__main__':
     app.run(port='5003', host='0.0.0.0')
