beat.web.plotters.api module¶
-
class
beat.web.plotters.api.ListPlotterView(**kwargs)[source]¶ Bases:
beat.web.common.api.ListContributionViewList all available plotters
-
model¶ alias of
beat.web.plotters.models.Plotter
-
serializer_class¶
-
-
class
beat.web.plotters.api.ListFormatPlotterView(**kwargs)[source]¶ Bases:
beat.web.common.api.ListContributionViewList all plotters corresponding to the given dataformat
-
model¶ alias of
beat.web.plotters.models.Plotter
-
serializer_class¶
-
get_queryset()[source]¶ Get the list of items for this view. This must be an iterable, and may be a queryset. Defaults to using self.queryset.
This method should always be used rather than accessing self.queryset directly, as self.queryset gets evaluated only once, and those results are cached for all subsequent requests.
You may want to override this if you need to provide different querysets depending on the incoming request.
(Eg. return a list of items that is specific to the user)
-
-
class
beat.web.plotters.api.ListPlotterParameterView(**kwargs)[source]¶ Bases:
beat.web.common.api.ListContributionViewList all available plotters parameters
-
model¶
-
serializer_class¶ alias of
beat.web.plotters.serializers.PlotterParameterSerializer
-
get_queryset()[source]¶ Get the list of items for this view. This must be an iterable, and may be a queryset. Defaults to using self.queryset.
This method should always be used rather than accessing self.queryset directly, as self.queryset gets evaluated only once, and those results are cached for all subsequent requests.
You may want to override this if you need to provide different querysets depending on the incoming request.
(Eg. return a list of items that is specific to the user)
-
-
class
beat.web.plotters.api.ListDefaultPlotterView(**kwargs)[source]¶ Bases:
rest_framework.generics.ListAPIViewList all available plotters
-
model¶
-
serializer_class¶ alias of
beat.web.plotters.serializers.DefaultPlotterSerializer
-
get_queryset()[source]¶ Get the list of items for this view. This must be an iterable, and may be a queryset. Defaults to using self.queryset.
This method should always be used rather than accessing self.queryset directly, as self.queryset gets evaluated only once, and those results are cached for all subsequent requests.
You may want to override this if you need to provide different querysets depending on the incoming request.
(Eg. return a list of items that is specific to the user)
-
-
class
beat.web.plotters.api.CheckPlotterNameView(**kwargs)[source]¶ Bases:
beat.web.common.api.CheckContributionNameViewThis view sanitizes a Plotter name and checks whether it is already used.
-
model¶ alias of
beat.web.plotters.models.Plotter
-
-
class
beat.web.plotters.api.ListCreatePlottersView(**kwargs)[source]¶ Bases:
beat.web.common.api.ListCreateContributionViewRead/Write end point that list the plotters available from a given author and allows the creation of new plotters
-
model¶ alias of
beat.web.plotters.models.Plotter
-
serializer_class¶
-
writing_serializer_class¶ alias of
beat.web.plotters.serializers.PlotterCreationSerializer
-
namespace= 'api_plotters'¶
-
-
class
beat.web.plotters.api.RetrieveUpdateDestroyPlottersView(**kwargs)[source]¶ Bases:
beat.web.code.api.RetrieveUpdateDestroyCodeViewRead/Write/Delete endpoint for a given plotter
-
model¶ alias of
beat.web.plotters.models.Plotter
-
serializer_class¶ alias of
beat.web.plotters.serializers.FullPlotterSerializer
-
get_queryset()[source]¶ Get the list of items for this view. This must be an iterable, and may be a queryset. Defaults to using self.queryset.
This method should always be used rather than accessing self.queryset directly, as self.queryset gets evaluated only once, and those results are cached for all subsequent requests.
You may want to override this if you need to provide different querysets depending on the incoming request.
(Eg. return a list of items that is specific to the user)
-
-
class
beat.web.plotters.api.CheckPlotterParameterNameView(**kwargs)[source]¶ Bases:
beat.web.common.api.CheckContributionNameViewThis view sanitizes a PlotterParameter name and checks whether it is already used.
-
model¶
-
Bases:
beat.web.common.api.ShareViewThis view allows to share a PlotterParameter with other users and/or teams
-
class
beat.web.plotters.api.ListPlotterParametersView(**kwargs)[source]¶ Bases:
beat.web.common.api.ListCreateContributionViewList all available PlotterParameters
-
model¶
-
serializer_class¶ alias of
beat.web.plotters.serializers.FullPlotterParameterSerializer
-
writing_serializer_class¶ alias of
beat.web.plotters.serializers.PlotterParameterCreationSerializer
-
namespace= 'api_plotters'¶
-
-
class
beat.web.plotters.api.RetrieveUpdateDestroyPlotterParametersView(**kwargs)[source]¶ Bases:
beat.web.common.api.RetrieveUpdateDestroyContributionViewRead/Write/Delete endpoint for a given PlotterParameter
-
model¶
-
serializer_class¶ alias of
beat.web.plotters.serializers.FullPlotterParameterSerializer
-