webapp.collections_api module

Collections API Endpoints for WebApp (My Collections)

MVP: ידני בלבד + חוקים בסיסיים (compute_smart_items) ללא שיתוף/ייצוא. מוגן ע”י require_auth, כולל dynamic_cache ואירועי observability.

webapp.collections_api.emit_event(event, severity='info', **fields)[source]
Parameters:
webapp.collections_api.get_db()[source]
webapp.collections_api.get_manager()[source]
webapp.collections_api.require_auth(f)[source]
webapp.collections_api.sanitize_input(text, max_length=500)[source]
Return type:

str

Parameters:
webapp.collections_api.tags_rate_limit(key, max_per_minute)[source]
Parameters:
  • key (str)

  • max_per_minute (int)

webapp.collections_api.create_collection()
webapp.collections_api.list_collections()
webapp.collections_api.get_collection(collection_id)
Parameters:

collection_id (str)

webapp.collections_api.update_collection(collection_id)
Parameters:

collection_id (str)

webapp.collections_api.delete_collection(collection_id)
Parameters:

collection_id (str)

webapp.collections_api.get_items(collection_id)
Parameters:

collection_id (str)

webapp.collections_api.add_items(collection_id)
Parameters:

collection_id (str)

webapp.collections_api.remove_items(collection_id)
Parameters:

collection_id (str)

webapp.collections_api.reorder_items(collection_id)
Parameters:

collection_id (str)

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}

Parameters:
  • collection_id (str)

  • folder_name (str)

webapp.collections_api.delete_folder(collection_id, folder_name)

מחיקת תיקיה. קבצים מועברים ל-root.

Parameters:
  • collection_id (str)

  • folder_name (str)

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.

webapp.collections_api.update_share(collection_id)

הפעלת/ביטול שיתוף עבור אוסף. Body: {enabled: bool}

Parameters:

collection_id (str)

webapp.collections_api.get_shared_collection(token)

שליפת אוסף משותף לצפייה ציבורית ללא התחברות (JSON בלבד).

Parameters:

token (str)

webapp.collections_api.get_shared_file(token, file_id)
Parameters:
webapp.collections_api.download_shared_file(token, file_id)
Parameters:
webapp.collections_api.export_shared_collection(token)
Parameters:

token (str)

webapp.collections_api.save_shared_collection_to_webapp(token)

שמירת כל האוסף המשותף ב-Webapp (יוצר אוסף חדש אצל המשתמש ומעתיק את הקבצים).

Parameters:

token (str)

webapp.collections_api.save_shared_file_to_webapp(token, file_id)

שמירת קובץ בודד מהאוסף המשותף ב-Webapp (לתוך אוסף ‘שולחן עבודה’ כברירת מחדל).

Parameters:
webapp.collections_api.not_found(error)
webapp.collections_api.internal_error(error)