--- /dev/null
+import sqlite3
+from flask import Flask, jsonify
+app = Flask(__name__)
+
+@app.route('/wishlist/<string:wishlist_id>/entries')
+def entries(wishlist_id):
+ conn = sqlite3.connect('db.sqlite')
+ curs = conn.cursor()
+
+ data = []
+ for row in curs.execute(
+ 'SELECT WISHLIST_ID, ITEM_ID, NAME, DESCRIPTION FROM WISHLIST_ENTRY WHERE WISHLIST_ID = ?',
+ (wishlist_id,)
+ ):
+ data.append({'wishlist_id': row[0], 'item_id': row[1], 'name': row[2], 'description': row[3]})
+ return jsonify(data)