Represents an API Endpoint
The default form class for links created by this endpoint
The form class representing items from this endpoint. The form created is used for serialization of item.
alias of EndpointState
alias of Item
The slug that identifies the application of this endpoint. Typically set by the site object.
The suffix to apply to the base url name when concating the base name from the parent
Set the base url name instead of getting it from the parent
The suffix to add to the generated url name. This also used by the parent endpoint to reference child endpoints
Set the url name of the endpoint instead of generating one
Dictionary for overiding particular values in the state
A slug identifying the primary role of the endpoint
A list of slugs identifying the various roles or functions of the endpoint
The api request responsible for the endpoint. Generated automatically.
Consult for creating child endpoints
The state responsible for the endpoint. Generated automatically.
Return type: | dict |
---|
Returns a list of functional identifiers
Return type: | list of strings |
---|
Return type: | dict |
---|
Return type: | dict |
---|
URL Reverse the given arguments
Return type: | string |
---|
Returns the base url name to be used by our name and the name of our children endpoints Return self.base_url_name if set otherwise return the concat of self.get_base_url_name_prefix() and self.get_base_url_name_suffix()
Returns the url name that will address this endpoint Return self.url_name is set otherwise return the result of concatting self.get_base_url_name() and self.get_name_suffx()
Returns an instantiated LinkCollection object
Return type: | LinkCollection |
---|
return a list of tuples containing link prototype class and kwargs
Instantiates the link prototypes from get_link_prototypes
Return type: | list of link prototypes |
---|
Return type: | dict |
---|
Return type: | endpoint |
---|
Return type: | endpoint |
---|
Wraps an object in a resource item
Return type: | resource item |
---|
Returns the list of active objects available for this request
Return type: | list of objects |
---|
Returns a list of resource items available for this request. Calls get_instances for the objects the items represent.
Return type: | list of resource items |
---|
Return type: | dict |
---|
Return type: | dictionary of namespaces |
---|
Parameters: | item – resource item |
---|---|
Return type: | dictionary of namespaces |
Returns a string representing the resource item
Returns a string representing this endpoint
Return type: | Link or HttpResponse |
---|
Fires of the endpoint_event signal
Returns a datatap that can serialize hypermedia items and deserialize to native instances
Parameters: | instream – A list of resource items or a primitive datatap |
---|
Makes an instream of item forms
Returns a datatap that can serialize the forms belonging to hypermedia items.
A type of endpoint that does not define any active endpoints itself but references other endpoints.
Inludes the link prototypes created by the children endpoints
Calls the index endpoint and returns it’s api response :rtype: Link or HttpResponse
Bases: hyperadmin.endpoints.APIRequestBuilder, hyperadmin.endpoints.VirtualEndpoint
The top endpoint of a hypermedia aware site
Child endpoints bind to this and this endpoint is used to mount in urls.py
The namespace of this endpoint, will be autogenerated if none is supplied
Dictionary of supported media types
List of template paths to use for template name resolution
Looks up the endpoint as an internal api request :rtype: Bound Endpoint
Return a link describing the authentication failure or return None if the request has sufficient permissions
Maps a list of template names to the template paths belonging to the site :param suffixes: List of strings :rtype: List of strings
Bases: hyperadmin.endpoints.GlobalSiteMixin, hyperadmin.views.EndpointViewMixin, hyperadmin.endpoints.BaseEndpoint
Endpoint class that contains link prototypes and maps HTTP requests to those links.
Return the link prototype representing the action for the method Consults prototype_method_map for the link name and returns the prototype from link_prototypes
Returns a dictionary mapping available HTTP methods to a link
Return type: | dict |
---|
Return type: | view callable |
---|