webapp.collections_api module
Collections API Endpoints for WebApp (My Collections)
MVP: ידני בלבד + חוקים בסיסיים (compute_smart_items) ללא שיתוף/ייצוא. מוגן ע“י require_auth, כולל dynamic_cache ואירועי observability.
- webapp.collections_api.create_collection()
- webapp.collections_api.list_collections()
- webapp.collections_api.update_item_tags(item_id)
עדכון תגיות של פריט באוסף.
Body: {”tags“: [“🔥“, ”🐛“]}
- פרמטרים:
item_id (str)
- webapp.collections_api.get_tags_metadata()
קבלת מטאדאטה של תגיות זמינות.
- webapp.collections_api.log_tags_filtered()
Log filtering usage for analytics/observability.
הפעלת/ביטול שיתוף עבור אוסף. Body: {enabled: bool}
- פרמטרים:
collection_id (str)
שליפת אוסף משותף לצפייה ציבורית ללא התחברות (JSON בלבד).
- פרמטרים:
token (str)
- פרמטרים:
token (str)
שמירת כל האוסף המשותף ב-Webapp (יוצר אוסף חדש אצל המשתמש ומעתיק את הקבצים).
- פרמטרים:
token (str)
שמירת קובץ בודד מהאוסף המשותף ב-Webapp (לתוך אוסף »שולחן עבודה« כברירת מחדל).
- webapp.collections_api.not_found(error)
- webapp.collections_api.internal_error(error)