예제 #1
0
def xml_catalog():
    xml = dict2xml(vh.serialize_catalog(), wrap="Catalog")
    response = make_response(xml)
    response.headers['Content-Type'] = 'application/xml'
    return response
예제 #2
0
파일: views.py 프로젝트: ransomw/udacity
def xml_catalog():
    xml = dict2xml(vh.serialize_catalog(), wrap="Catalog")
    response = make_response(xml)
    response.headers['Content-Type'] = 'application/xml'
    return response
예제 #3
0
def json_catalog():
    return jsonify(vh.serialize_catalog())
예제 #4
0
파일: views.py 프로젝트: ransomw/udacity
def json_catalog():
    return jsonify(vh.serialize_catalog())