mirror of
https://github.com/lucaspalomodevelop/eventcally.git
synced 2026-03-13 00:07:22 +00:00
Add event place filter for API #563
This commit is contained in:
parent
3b03d362d5
commit
0090ece611
2
.vscode/settings.json
vendored
2
.vscode/settings.json
vendored
@ -6,7 +6,7 @@
|
||||
"python.testing.pytestEnabled": true,
|
||||
"[python]": {
|
||||
"editor.codeActionsOnSave": {
|
||||
"source.organizeImports": true
|
||||
"source.organizeImports": "explicit"
|
||||
}
|
||||
},
|
||||
"[html]": {
|
||||
|
||||
@ -320,6 +320,19 @@ class EventSearchRequestSchema(PaginationRequestSchema, TrackableRequestSchemaMi
|
||||
"description": "Looks for events at this weekdays (0=Sunday, 1=Monday, ..)."
|
||||
},
|
||||
)
|
||||
organization_id = fields.Int(
|
||||
metadata={"description": "Looks for events with this organization id."},
|
||||
)
|
||||
organizer_id = fields.Int(
|
||||
metadata={"description": "Looks for events with this organizer id."},
|
||||
)
|
||||
event_place_id = fields.Int(
|
||||
metadata={"description": "Looks for events with this event place id."},
|
||||
)
|
||||
event_list_id = fields.List(
|
||||
fields.Int(),
|
||||
metadata={"description": "Looks for events with this event list ids."},
|
||||
)
|
||||
sort = fields.Str(
|
||||
metadata={"description": "Sort result items."},
|
||||
validate=validate.OneOf(
|
||||
@ -337,6 +350,10 @@ class EventSearchRequestSchema(PaginationRequestSchema, TrackableRequestSchemaMi
|
||||
EnumField(EventStatus),
|
||||
metadata={"description": "Looks for events with this stati."},
|
||||
)
|
||||
public_status = fields.List(
|
||||
EnumField(PublicStatus),
|
||||
metadata={"description": "Looks for events with this public stati."},
|
||||
)
|
||||
postal_code = fields.List(
|
||||
fields.Str(),
|
||||
metadata={"description": "Looks for events with places with this postal code."},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user