Skip to content

Commit

Permalink
Merge pull request #2305 from CannonLock/software-5051
Browse files Browse the repository at this point in the history
Serve projects as JSON as well as XML (SOFTWARE-5051)
  • Loading branch information
matyasselmeci authored Feb 25, 2022
2 parents 4710c1a + a9c7a2c commit 85493c7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,11 @@ def miscproject_xml():
return Response(to_xml_bytes(global_data.get_projects()), mimetype='text/xml')


@app.route('/miscproject/json')
def miscproject_json():
return Response(to_json_bytes(global_data.get_projects()), mimetype='application/json')


@app.route('/vosummary/xml')
def vosummary_xml():
return _get_xml_or_fail(global_data.get_vos_data().get_tree, request.args)
Expand Down

0 comments on commit 85493c7

Please sign in to comment.