()
return resp
show all the apis
show all the apis
show all the apis
def api():
    """ show all the apis"""

    ret = """
api: /download?pid=1

api: /query?q=test

api: /html?pid=2&page=0,1,3,5
0 is the html framework

api: /download_available?pid=1

api: /author?name=xxx

api: /mark?pid=2&mark=1,-1

api: /comment?pid=2&uid=xxx&cmt=xxxx
"""
    ret = ret.strip().replace('\n', '<br/>')
    resp = make_response(ret)
    resp.headers['Content-Type'] = 'text/html'
    return resp
def api ( ) : ret = """
api: /download?pid=1

api: /query?q=test

api: /html?pid=2&page=0,1,3,5
0 is the html framework

api: /download_available?pid=1

api: /author?name=xxx

api: /mark?pid=2&mark=1,-1

api: /comment?pid=2&uid=xxx&cmt=xxxx
""" ret = ret . strip ( ) . replace ( '\n' , '<br/>' ) resp = make_response ( ret ) resp . headers [ 'Content-Type' ] = 'text/html' return resp