Code reference#
Subpackages#
- Search Algorithm
- catalog.api package
- Concepts
- Subpackages
- catalog.api.constants package
- catalog.api.controllers package
- catalog.api.docs package
- catalog.api.examples package
- catalog.api.models package
- catalog.api.serializers package
- Submodules
- catalog.api.serializers.audio_serializers module
- catalog.api.serializers.error_serializers module
- catalog.api.serializers.image_serializers module
- catalog.api.serializers.media_serializers module
- catalog.api.serializers.oauth2_serializers module
- catalog.api.serializers.provider_serializers module
- Module contents
- catalog.api.utils package
- Submodules
- catalog.api.utils.ccrel module
- catalog.api.utils.dead_link_mask module
- catalog.api.utils.exceptions module
- catalog.api.utils.oauth2_helper module
- catalog.api.utils.pagination module
- catalog.api.utils.scheduled_tasks module
- catalog.api.utils.status_code_view module
- catalog.api.utils.throttle module
- catalog.api.utils.validate_images module
- catalog.api.utils.watermark module
- catalog.api.utils.waveform module
- Module contents
- catalog.api.views package
- Submodules
- catalog.api.admin module
AudioAdmin
AudioReportAdmin
ImageAdmin
ImageReportAdmin
MediaReportAdmin
MediaReportAdmin.actions
MediaReportAdmin.autocomplete_fields
MediaReportAdmin.get_exclude()
MediaReportAdmin.get_list_display()
MediaReportAdmin.get_readonly_fields()
MediaReportAdmin.list_display
MediaReportAdmin.list_display_links
MediaReportAdmin.list_filter
MediaReportAdmin.media
MediaReportAdmin.media_specific_list_display
MediaReportAdmin.search_fields
MediaSubreportAdmin
ProviderAdmin
- catalog.api.apps module
- catalog.api.licenses module
- Module contents
- catalog.urls package
Submodules#
catalog.custom_auto_schema module#
- class catalog.custom_auto_schema.CustomAutoSchema(view, path, method, components, request, overrides, operation_keys=None)#
Bases:
SwaggerAutoSchema
- get_operation(operation_keys=None)#
Get an
Operation
for the given API endpoint (path, method). This includes query, body parameters and response schemas.- Parameters:
operation_keys (tuple[str]) – an array of keys describing the hierarchical layout of this view in the API; e.g.
('snippets', 'list')
,('snippets', 'retrieve')
, etc.- Return type:
openapi.Operation
- get_pagination_parameters()#
Set pagination params to an empty list.
Since the pagination params are a part of the
MediaSearchRequestSerializer
, they need not be added again as pagination params.