Initial commit, /api/v1/access_token endpoint
This commit is contained in:
commit
492ce039a8
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
/venv/
|
21
main.py
Normal file
21
main.py
Normal 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)
|
Loading…
Reference in a new issue