feat: Update endpoint Outliners
This commit is contained in:
parent
b0c3267ba3
commit
aa858895f4
@ -0,0 +1,20 @@
|
|||||||
|
from flask import Flask, jsonify
|
||||||
|
from faker import Faker
|
||||||
|
|
||||||
|
app = Flask(__name__)
|
||||||
|
fake = Faker()
|
||||||
|
|
||||||
|
@app.route('/api/user', methods=['GET'])
|
||||||
|
def generate_fake_user():
|
||||||
|
user_data = {
|
||||||
|
"name": fake.name(),
|
||||||
|
"email": fake.email(),
|
||||||
|
"address": fake.address(),
|
||||||
|
"phone_number": fake.phone_number(),
|
||||||
|
"company": fake.company(),
|
||||||
|
"job": fake.job()
|
||||||
|
}
|
||||||
|
return jsonify(user_data)
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
app.run(debug=True)
|
Loading…
x
Reference in New Issue
Block a user