-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add connection for first part of reservation system for lyche #947
base: master
Are you sure you want to change the base?
Conversation
@@ -236,6 +238,20 @@ export async function getEventGroups(): Promise<EventGroupDto[]> { | |||
return response.data; | |||
} | |||
|
|||
export async function getAvailableTimes(data: FetchAvailableTimesDto, pk?: number): Promise<string[]> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pk først ser bedre ut
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Skal ikke optional
parametre være etter non-optional?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hvorfor er den optional i det hele tatt?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Det er noe som ikke stemmer med dette endepunktet
permission_classes = [AllowAny] | ||
|
||
def get(self, request: Request) -> Response: | ||
venue = self.request.query_params.get('venue', Venue.objects.get(slug='lyche').id) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Disse burde vi samle som konstanter et sted (lyche etc)
Connects check reservation, and reservation form with backend
Does not allow for posting yet