[Bps-public-commit] rt-extension-rest2 branch, dev, repushed

Wallace Reis wreis at bestpractical.com
Mon Dec 22 07:08:48 EST 2014


The branch dev was deleted and repushed:
       was fc394e3c48bc37bc8be65cbc82e7569941f8b787
       now debe164714350ad8343a282ccbdaaa37b6882e61

 1:  e5748fd =  1:  e5748fd Move Log middleware to its class
 2:  38558c2 =  2:  38558c2 Move Auth middleware to its own class
 3:  d87a2e4 < --:  ------- PSGIWrap mount apps' paths
--:  ------- >  3:  6a31007 Avoid '/REST/2.0' magical value
 4:  2f44aed !  4:  8e27096 Documentation changes
    @@ -7,11 +7,8 @@
     +++ b/lib/RT/Extension/REST2.pm
     @@
      
    - =head1 NAME
    + RT-Extension-REST2 - Adds a modern REST API to RT under /REST/2.0/
      
    --RT-Extension-REST2 - Adds a modern REST API to RT under /REST/2.0/
    -+RT-Extension-REST2 - Adds a modern REST API to RT
    -+
     +=head1 INSTALLATION
     +
     +=over
    @@ -53,9 +50,10 @@
     +base REST API URI will be like C<https://example.com/rt/REST/2.0>.
     +
     +=back
    - 
    ++
      =head1 USAGE
      
    + =head2 Summary
     @@
      specifies one or more fields to limit on (using specified operators and
      values).  An example:
 5:  ecd2eda !  5:  d86ef4b Use Web::Simple as dispatcher
    @@ -1,6 +1,14 @@
     Author: Wallace Reis <wreis at bestpractical.com>
     
         Use Web::Simple as dispatcher
    +    
    +    When processing comes to Resources layer, PATH_INFO does not contain just
    +    the /:id anymore -- due the use of Web::Simple and not simply mount() call.
    +    
    +    The REST path is just a prefix, so it is not necessary that we write every
    +    single route rule containing such prefix. What matters for REST API core is
    +    the stuff after the base path, that is, stuff like /tickets/1. Hence the use
    +    of ReverseProxyPath.
     
     diff --git a/Makefile.PL b/Makefile.PL
     --- a/Makefile.PL
 6:  3aaa5ee =  6:  ae0a413 RTx() provides both all_from and readme_from
 7:  3972b69 =  7:  5cf3da1 Baseline for viewing docs
 8:  3f6ff9b =  8:  9cdc49e Recommends JSON::XS
 9:  844c02e !  9:  49e4ec0 Bump VERSION
    @@ -10,8 +10,8 @@
      package RT::Extension::REST2;
      
     -our $VERSION = '0.01';
    -+our $VERSION = '1.00';
    - our $DEFAULT_REST_PATH = '/REST/2.0';
    ++our $VERSION = '1.01';
    + our $REST_PATH = '/REST/2.0';
      
      use UNIVERSAL::require;
     
10:  fc394e3 ! 10:  debe164 Update Copyright
    @@ -10,7 +10,7 @@
      =head1 LICENSE AND COPYRIGHT
      
     -This software is Copyright (c) 2013 by Best Practical Solutions
    -+(c) Copyright Best Practical Solutions, LLC.
    ++This software is Copyright (c) 2015 by Best Practical Solutions, LLC.
      
      This is free software, licensed under:
      



More information about the Bps-public-commit mailing list