forked from kompetenzinventar/ki-backend
initial (empty) blueprint and model
This commit is contained in:
28
ki/resume.py
Normal file
28
ki/resume.py
Normal file
@ -0,0 +1,28 @@
|
||||
from flask import Blueprint
|
||||
|
||||
bp_resume = Blueprint('resume', __name__,
|
||||
template_folder='templates')
|
||||
|
||||
@bp_resume.route('/')
|
||||
@token_auth
|
||||
def show(page):
|
||||
"""
|
||||
return the list of resumes as object with data array inside
|
||||
"""
|
||||
return jsonify()
|
||||
|
||||
@bp_resume.route("/<resume_id>")
|
||||
@token_auth
|
||||
def get_resume(resume_id):
|
||||
"""
|
||||
lookup for resume with resume_id, check if its from this user and provide its contents
|
||||
in the appropriate format
|
||||
shall support 'format' parameter with values of 'html', 'pdf'
|
||||
if no parameter is given, json is returned
|
||||
"""
|
||||
return jsonify(
|
||||
id=resume_id
|
||||
)
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user