# chrono - agendas system # Copyright (C) 2016 Entr'ouvert # # This program is free software: you can redistribute it and/or modify it # under the terms of the GNU Affero General Public License as published # by the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Affero General Public License for more details. # # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see . from django.urls import path, re_path from . import views urlpatterns = [ path('agenda/', views.agendas), path('agendas/datetimes/', views.agendas_datetimes, name='api-agendas-datetimes'), path('agendas/recurring-events/', views.recurring_events_list, name='api-agenda-recurring-events'), path('agendas/recurring-events/fillslots/', views.recurring_fillslots, name='api-recurring-fillslots'), path( 'agendas/events/', views.agendas_events, name='api-agendas-events', ), path( 'agendas/events/fillslots/', views.agendas_events_fillslots, name='api-agendas-events-fillslots', ), path( 'agendas/events/check-status/', views.agendas_events_check_status, name='api-agendas-events-check-status', ), re_path(r'^agenda/(?P[\w-]+)/$', views.agenda), re_path( r'^agenda/(?P[\w-]+)/datetimes/$', views.datetimes, name='api-agenda-datetimes' ), re_path( r'^agenda/(?P[\w-]+)/fillslot/(?P[\w:-]+)/$', views.fillslot, name='api-fillslot', ), re_path( r'^agenda/(?P[\w-]+)/fillslots/$', views.fillslots, name='api-agenda-fillslots' ), re_path( r'^agenda/(?P[\w-]+)/events/fillslots/$', views.events_fillslots, name='api-agenda-events-fillslots', ), re_path( r'^agenda/(?P[\w-]+)/event/$', views.events, name='api-events', ), re_path( r'^agenda/(?P[\w-]+)/event/(?P[\w:-]+)/$', views.event, name='api-event', ), re_path( r'^agenda/(?P[\w-]+)/status/(?P[\w:-]+)/$', views.event_status, name='api-event-status', ), re_path( r'^agenda/(?P[\w-]+)/bookings/(?P[\w:-]+)/$', views.event_bookings, name='api-event-bookings', ), re_path( r'^agenda/(?P[\w-]+)/check/(?P[\w:-]+)/$', views.event_check, name='api-event-check', ), re_path( r'^agenda/meetings/(?P[\w-]+)/datetimes/$', views.meeting_datetimes, name='api-agenda-meeting-datetimes-legacy', ), re_path( r'^agenda/(?P[\w-]+)/meetings/$', views.meeting_list, name='api-agenda-meetings' ), re_path( r'^agenda/(?P[\w-]+)/meetings/(?P[\w-]+)/$', views.meeting_info, name='api-agenda-meetings', ), re_path( r'^agenda/(?P[\w-]+)/resources/$', views.agenda_resource_list, name='api-agenda-resources', ), re_path( r'^agenda/(?P[\w-]+)/desks/$', views.agenda_desk_list, name='api-agenda-desks' ), re_path( r'^agenda/(?P[\w-]+)/meetings/(?P[\w-]+)/datetimes/$', views.meeting_datetimes, name='api-agenda-meeting-datetimes', ), re_path( r'^agenda/(?P[\w-]+)/subscription/$', views.subscriptions, name='api-agenda-subscriptions', ), re_path( r'^agenda/(?P[\w-]+)/subscription/(?P\d+)/$', views.subscription, name='api-agenda-subscription', ), path('bookings/', views.bookings, name='api-bookings'), path('booking//', views.booking, name='api-booking'), path('booking//cancel/', views.cancel_booking, name='api-cancel-booking'), path('booking//accept/', views.accept_booking, name='api-accept-booking'), path('booking//anonymize/', views.anonymize_booking, name='api-anonymize-booking'), path('booking//suspend/', views.suspend_booking, name='api-suspend-booking'), path('booking//resize/', views.resize_booking, name='api-resize-booking'), path('booking//ics/', views.booking_ics, name='api-booking-ics'), path('shared-custody/', views.shared_custody_agendas, name='api-shared-custody-agendas'), path( 'shared-custody//', views.shared_custody_agenda, name='api-shared-custody-agenda', ), path('statistics/', views.statistics_list, name='api-statistics-list'), path('statistics/bookings/', views.bookings_statistics, name='api-statistics-bookings'), ]