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.create_folder(collection_id)
יצירת תיקיה חדשה באוסף. Body: {name: str, icon?: str}
- Parameters:
collection_id (str)
- webapp.collections_api.update_folder(collection_id, folder_name)
עדכון תיקיה (שם, אייקון). Body: {name?: str, icon?: str}
- webapp.collections_api.delete_folder(collection_id, folder_name)
מחיקת תיקיה. קבצים מועברים ל-root.
- webapp.collections_api.reorder_folders(collection_id)
סידור תיקיות. Body: {order: [name1, name2, …]}
- Parameters:
collection_id (str)
- webapp.collections_api.move_item_folder(collection_id)
העברת פריט מתיקיה לתיקיה, תוך שמירה על מטאדאטה. Body: {source, file_name, old_folder, new_folder}
- Parameters:
collection_id (str)
- webapp.collections_api.update_item_tags(item_id)
עדכון תגיות של פריט באוסף.
Body: {“tags”: [”🔥”, “🐛”]}
- Parameters:
item_id (str)
- webapp.collections_api.get_tags_metadata()
קבלת מטאדאטה של תגיות זמינות.
- webapp.collections_api.log_tags_filtered()
Log filtering usage for analytics/observability.
הפעלת/ביטול שיתוף עבור אוסף. Body: {enabled: bool}
- Parameters:
collection_id (str)
שליפת אוסף משותף לצפייה ציבורית ללא התחברות (JSON בלבד).
- Parameters:
token (str)
- Parameters:
token (str)
שמירת כל האוסף המשותף ב-Webapp (יוצר אוסף חדש אצל המשתמש ומעתיק את הקבצים).
- Parameters:
token (str)
שמירת קובץ בודד מהאוסף המשותף ב-Webapp (לתוך אוסף ‘שולחן עבודה’ כברירת מחדל).
- webapp.collections_api.not_found(error)
- webapp.collections_api.internal_error(error)