Add REST endpoint to find bookings per week
This commit is contained in:
parent
47a3de3c54
commit
e1f9936b62
6 changed files with 110 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue