Add REST endpoint to find bookings per week

This commit is contained in:
Simon Goller 2024-06-12 07:38:51 +02:00
parent 47a3de3c54
commit e1f9936b62
6 changed files with 110 additions and 0 deletions

View file

@ -64,6 +64,12 @@ pub trait BookingService {
id: Uuid,
context: Authentication<Self::Context>,
) -> Result<Booking, ServiceError>;
async fn get_for_week(
&self,
calendar_week: i32,
year: u32,
context: Authentication<Self::Context>,
) -> Result<Arc<[Booking]>, ServiceError>;
async fn create(
&self,
booking: &Booking,