| from django.urls import path | |
| from . import views | |
| urlpatterns = [ | |
| # ── Core CRUD ───────────────────────────────────────────── | |
| path("", views.versioned_view(views.note_list)), | |
| path("<uuid:note_id>/", views.versioned_view(views.note_detail)), | |
| path("notes/", views.versioned_view(views.note_list)), | |
| path("notes/<uuid:note_id>/", views.versioned_view(views.note_detail)), | |
| path("v1/notes/", views.versioned_view(views.note_list)), | |
| path("v1/notes/<uuid:note_id>/", views.versioned_view(views.note_detail)), | |
| path("v1/notes/<uuid:note_id>/react/", views.versioned_view(views.note_reaction)), | |
| path( | |
| "v1/notes/<uuid:note_id>/upload-image/", | |
| views.versioned_view(views.upload_note_image), | |
| ), | |
| path( | |
| "v1/notes/<uuid:note_id>/favorite/", views.versioned_view(views.toggle_favorite) | |
| ), | |
| path( | |
| "v1/notes/<uuid:note_id>/comments/", views.versioned_view(views.note_comments) | |
| ), | |
| path("v1/notes/<uuid:note_id>/pin/", views.versioned_view(views.toggle_pin)), | |
| path("v1/notes/runs/<uuid:run_id>/", views.versioned_view(views.run_notes)), | |
| # ── Version History ─────────────────────────────────────── | |
| path( | |
| "v1/notes/<uuid:note_id>/versions/", views.versioned_view(views.note_versions) | |
| ), | |
| path( | |
| "v1/notes/<uuid:note_id>/versions/<int:version_number>/", | |
| views.versioned_view(views.note_version_detail), | |
| ), | |
| # ── Mentions ────────────────────────────────────────────── | |
| path( | |
| "v1/notes/<uuid:note_id>/mentions/", views.versioned_view(views.note_mentions) | |
| ), | |
| path( | |
| "v1/mentions/<uuid:mention_id>/read/", | |
| views.versioned_view(views.mark_mention_read), | |
| ), | |
| # ── Sharing: Direct User Share ──────────────────────────── | |
| path("v1/notes/<uuid:note_id>/share/", views.versioned_view(views.share_note)), | |
| path("v1/notes/<uuid:note_id>/unshare/", views.versioned_view(views.unshare_note)), | |
| path("v1/notes/shared-with-me/", views.versioned_view(views.shared_with_me)), | |
| path("v1/notes/from-paper/", views.versioned_view(views.create_note_from_paper)), | |
| path( | |
| "v1/notes/<uuid:note_id>/bibliography/", | |
| views.versioned_view(views.note_bibliography), | |
| ), | |
| # ── Sharing: Public Link ────────────────────────────────── | |
| path( | |
| "v1/notes/<uuid:note_id>/share-link/", | |
| views.versioned_view(views.create_share_link), | |
| ), | |
| path( | |
| "v1/notes/<uuid:note_id>/share-links/", | |
| views.versioned_view(views.list_share_links), | |
| ), | |
| path( | |
| "v1/notes/<uuid:note_id>/share-links/<uuid:link_id>/revoke/", | |
| views.versioned_view(views.revoke_share_link), | |
| ), | |
| # Public (no auth): | |
| path("shared/<str:token>/", views.view_shared_note, name="view_shared_note"), | |
| # ── HuggingFace Upload ──────────────────────────────────── | |
| path( | |
| "v1/notes/<uuid:note_id>/upload-hf/", | |
| views.versioned_view(views.upload_note_to_huggingface), | |
| ), | |
| path( | |
| "v1/notes/<uuid:note_id>/upload-hf-space/", | |
| views.versioned_view(views.upload_note_as_hf_space), | |
| ), | |
| path( | |
| "v1/notes/<uuid:note_id>/sync-hf/", | |
| views.versioned_view(views.sync_note_to_hf_view), | |
| ), | |
| path("v1/notes/search-paper/", views.versioned_view(views.search_and_format_paper)), | |
| # ── Artifacts ───────────────────────────────────────────── | |
| path( | |
| "v1/notes/<uuid:note_id>/artifacts/", views.versioned_view(views.artifact_list) | |
| ), | |
| path( | |
| "v1/notes/<uuid:note_id>/artifacts/<uuid:artifact_id>/", | |
| views.versioned_view(views.artifact_delete), | |
| ), | |
| path( | |
| "v1/notes/<uuid:note_id>/artifacts/<uuid:artifact_id>/download/", | |
| views.versioned_view(views.artifact_download), | |
| ), | |
| # ── Protocols ───────────────────────────────────────────── | |
| path("v1/protocols/", views.versioned_view(views.protocol_list)), | |
| path( | |
| "v1/protocols/<uuid:protocol_id>/", views.versioned_view(views.protocol_detail) | |
| ), | |
| # ── Note Links (Knowledge Graph) ────────────────────────── | |
| path("v1/notes/links/", views.versioned_view(views.create_note_link)), | |
| path( | |
| "v1/notes/links/<uuid:link_id>/", views.versioned_view(views.delete_note_link) | |
| ), | |
| path( | |
| "v1/notes/<uuid:note_id>/links-graph/", | |
| views.versioned_view(views.note_links_graph), | |
| ), | |
| # ── Replies ─────────────────────────────────────────────── | |
| path("v1/notes/<uuid:note_id>/replies/", views.versioned_view(views.note_replies)), | |
| # ── Restore ─────────────────────────────────────────────── | |
| path("v1/notes/<uuid:note_id>/restore/", views.versioned_view(views.restore_note)), | |
| # ── Export ──────────────────────────────────────────────── | |
| path( | |
| "v1/notes/<uuid:note_id>/export/pdf/", | |
| views.versioned_view(views.export_note_pdf), | |
| ), | |
| path( | |
| "v1/notes/<uuid:note_id>/export/md/", | |
| views.versioned_view(views.export_note_markdown), | |
| ), | |
| # ── Auto-Generate Reports ───────────────────────────────── | |
| path( | |
| "v1/notes/generate-report/<uuid:run_id>/", | |
| views.versioned_view(views.generate_run_report), | |
| ), | |
| # ── Templates ───────────────────────────────────────────── | |
| path("v1/templates/", views.versioned_view(views.note_templates)), | |
| path( | |
| "v1/templates/<uuid:template_id>/render/", | |
| views.versioned_view(views.render_template), | |
| ), | |
| # ── Favorites ───────────────────────────────────────────── | |
| path("v1/notes/favorites/", views.versioned_view(views.favorite_notes)), | |
| # ── Full-Text Search ────────────────────────────────────── | |
| path("v1/search/", views.versioned_view(views.fulltext_search)), | |
| # ── Notifications ───────────────────────────────────────── | |
| path("v1/notifications/", views.versioned_view(views.my_notifications)), | |
| path( | |
| "v1/notifications/read-all/", | |
| views.versioned_view(views.mark_all_notifications_read), | |
| ), | |
| # ── Dashboard ───────────────────────────────────────────── | |
| path("v1/dashboard/", views.versioned_view(views.notes_dashboard)), | |
| # ── Bulk Operations ─────────────────────────────────────── | |
| path("v1/notes/bulk/", views.versioned_view(views.bulk_notes)), | |
| path("v1/notes/bulk/tags/", views.versioned_view(views.bulk_tags)), | |
| # ── Statistics ──────────────────────────────────────────── | |
| path("v1/notes/statistics/", views.versioned_view(views.notes_statistics)), | |
| path("v1/notes/recent/", views.versioned_view(views.recent_notes)), | |
| # ── Webhooks ────────────────────────────────────────────── | |
| path("v1/webhooks/", views.versioned_view(views.webhook_list)), | |
| path("v1/webhooks/<uuid:webhook_id>/", views.versioned_view(views.webhook_delete)), | |
| path( | |
| "v1/webhooks/<uuid:webhook_id>/test/", views.versioned_view(views.test_webhook) | |
| ), | |
| ] | |
Xet Storage Details
- Size:
- 8.66 kB
- Xet hash:
- 5c9451238ef7b10e929b1b36fad131e5a96fef42bb266728b2cd553a3c0bf395
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.