The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

App::Dochazka::REST::Dispatch::Shared - Shared dispatch functions

VERSION

Version 0.270

DESCRIPTION

This module provides code that is shared within the various dispatch modules.

EXPORTS

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/current/?:ts
    /schedule/current/?: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