aboutsummaryrefslogtreecommitdiffstats
path: root/fatcat/api.py
diff options
context:
space:
mode:
Diffstat (limited to 'fatcat/api.py')
-rw-r--r--fatcat/api.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/fatcat/api.py b/fatcat/api.py
index 77afef0a..95b82742 100644
--- a/fatcat/api.py
+++ b/fatcat/api.py
@@ -96,6 +96,14 @@ def api_release_create():
db.session.commit()
return release_schema.jsonify(ident)
+@app.route('/v0/release/<int:ident>/changelog', methods=['GET'])
+def api_release_changelog(ident):
+ entries = ChangelogEntry.query\
+ .join(ReleaseEdit.editgroup)\
+ .filter(ReleaseEdit.ident_id==ident)\
+ .all()
+ return changelogentry_schema.jsonify(entries, many=True)
+
@app.route('/v0/release/random', methods=['GET'])
def api_release_random():
entity = ReleaseIdent.query.order_by(db.func.random()).first()