Get

Smarter API command-line interface ‘get’ view

class smarter.apps.api.v1.cli.views.get.ApiV1CliGetApiView(*args, **kwargs)

Bases: CliBaseApiView

This is the API endpoint for the ‘get’ command in the Smarter command-line interface (CLI).

The ‘get’ command is a Smarter Brokered and Journaled operation that is used with all Smarter resources. Get criteria is passed as url query parameters.

The client making the HTTP request to this endpoint is expected to be the Smarter CLI, which is written in Golang and available on Windows, macOS, and Linux.

The response from this endpoint is a JSON list object.

This class is a child of the Django Rest Framework View.

property formatted_class_name: str

Returns the class name in a formatted string along with the name of this mixin.

post(request, kind, *args, **kwargs)
smarter.apps.api.v1.cli.views.get.should_log(level)

Check if logging should be done based on the waffle switch.