Help for this page

Select Code to Download


  1. or download this
    http://localhost/script.cgi/=
    
  2. or download this
    GET qr{^/=$} => sub {
        print $q->header('text/html');
        print $q->h1('REST API Documentation');
        print $q->p('Here is a list of what you can do:');
    
  3. or download this
    my $regex = qr{^/=$};
    my $coderef = sub {
    ...
        # etc.
    };
    GET( $regex, $coderef );
    
  4. or download this
    $code->();
    exit;
    
  5. or download this
    GET qr{^/=/model/book/id/([\d-]+)$} => sub {
        my $id = $1;
        # etc.
    
  6. or download this
    http://localhost/script.cgi/=/model/book/id/10566