NAME
App::Dochazka::REST::Dispatch::Shared - Shared dispatch functions
VERSION
Version 0.322
DESCRIPTION
This module provides code that is shared within the various dispatch modules.
EXPORTS
PACKAGE VARIABLES
The package variable %f_dispatch
is used in fetch_by_eid
, fetch_by_nick
, and fetch_own
.
FUNCTIONS
make_default
Every top-level resource has a '_get_default' target. Here is the code for that.
not_implemented
A generic function for handling resources that aren't implemented yet.
pre_update_comparison
Given an original object and a hashref of possible changed properties, compare the properties in the hashref with the corresponding properties in the original object. If any properties really are changed, update the object. Return the number of properties so changed.
current
Generalized routine for the following resources:
/priv/self/?:ts
/schedule/self/?:ts
/priv/eid/:eid/?:ts
/schedule/eid/:eid/?:ts
/priv/nick/:nick/?:ts
/schedule/nick/:nick/?:ts
Takes a SCALAR that can be either 'priv' or 'schedule', plus a HASHREF that should contain the request context from Resource.pm