Initial commit, /api/v1/access_token endpoint

This commit is contained in:
Kevin Alberts 2023-06-12 12:52:37 +02:00
commit 492ce039a8
2 changed files with 22 additions and 0 deletions

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
/venv/

21
main.py Normal file
View file

@ -0,0 +1,21 @@
from flask import Flask, request, Response, jsonify
# creating an instance of the flask app
app = Flask(__name__)
# route to get all movies
@app.route('/api/v1/access_token', methods=['POST'])
def post_v1_access_token():
return jsonify({
"access_token": "dummy_token",
"token_type": "bearer",
"expires_in": 2840140861,
"scope": "dummy_scope",
"refresh_token": "dummy_token",
})
if __name__ == "__main__":
app.run(port=1234, debug=True)