- Source:
Extends
- EventEmitter
Methods
-
<protected> create_object(bundle, callback)
-
Internal method used during the
post_list
methodParameters:
Name Type Description bundle
Bundle A bundle representing the current request
callback
module:tastypie/lib/resource~Nodeback a callback function to call when the operation is complete
- Source:
-
dispatch_list(request, reply)
-
disaptches a list request operating on a collection of objects.
If any additional check / balances or processing needs to occur before a request is actually
dispatched to the handler, this would be a good place to do that.Parameters:
Name Type Description request
Request A hapijs request object
reply
function A hapis reply function
- Source:
-
get_list(bundle)
-
Top level function used to handle get requests for listing endpoints. It handles paging and serialization
Parameters:
Name Type Description bundle
Bundle A bundle representing the current request
- Source:
-
get_objects(bundle, callback)
-
Internal method used to retrieve a full list of objects for a resource
Parameters:
Name Type Description bundle
module:tastypie/lib/resource~Bundle callback
module:tastypie/lib/resource~Nodeback callback function to call when data retrieval is
- Source:
-
post_list(bundle)
-
Top level method used to handle post request to listing endpoints. Used to create new instances
of the associated resourceParameters:
Name Type Description bundle
Bundle An object represneting the current
POST
request- Source: