get_schema_view
Return a schema view for your API.Parameters
The title of your API
The base URL for your API
A description of your API
Django URL configuration module to use. Default is
None (use default)List of renderer classes to use for the schema view
If
True, include all endpoints. If False, only include endpoints the user has permission to access. Default is FalseList of URL patterns to include in the schema. Default is
None (use all)Schema generator class to use. Default is
None (auto-detect)Authentication classes for the schema view
Permission classes for the schema view
API version string
SchemaGenerator
Generates OpenAPI schemas from URL patterns.Methods
get_schema(request=None, public=False)
Generate and return the OpenAPI schema.
Request instance for permission checking
If
True, include all endpoints regardless of permissionsget_info()
Return the info section of the OpenAPI schema.
AutoSchema
Per-endpoint view introspection for automatic schema generation.Constructor
List of tags for the operation
Base name for operation IDs. If empty, deduced from Model/Serializer/View name
Component name for the schema. If empty, deduced from Serializer class name
Methods
get_operation(path, method)
Generate the OpenAPI operation object for this endpoint.
URL path for the endpoint
HTTP method
get_components(path, method)
Return component schemas from the serializer.
get_operation_id(path, method)
Compute the operation ID for this endpoint.
get_description(path, method)
Get the description for the operation from the view’s docstring.
get_path_parameters(path, method)
Return path parameters from templated URL variables.
get_filter_parameters(path, method)
Return query parameters from filter backends.
get_pagination_parameters(path, method)
Return query parameters from pagination class.
get_request_body(path, method)
Return the OpenAPI request body schema.
get_responses(path, method)
Return the OpenAPI responses schema.
ManualSchema
Manually define the schema for a view.Constructor
List of
coreapi.Field objects defining the schemaThe encoding for the request body
Description for the endpoint
