Changeset 7811


Ignore:
Timestamp:
01/30/13 17:02:08 (8 years ago)
Author:
alexandrecorreia
Message:

Ticket #2507 - Criado os resources para o módulo Expresso-Admin

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sandbox/webservice/api/rest/dispatch.php

    r7577 r7811  
    77} 
    88 
    9 define(apiDirectory,$dir . "api/rest");  
     9define( API_DIRECTORY , $dir . "expresso_22/api/rest" ); 
    1010 
    1111// load libraries 
    12 require_once(apiDirectory.'/../library/tonic/lib/tonic.php');  
    13 require_once(apiDirectory.'/../library/utils/Errors.php'); 
     12require_once(API_DIRECTORY.'/../library/tonic/lib/tonic.php');  
     13require_once(API_DIRECTORY.'/../library/utils/Errors.php'); 
    1414 
    1515// load adapters 
    16 require_once(apiDirectory."/../adapters/ExpressoAdapter.php"); 
    17 require_once(apiDirectory."/../adapters/MailAdapter.php"); 
    18 require_once(apiDirectory."/../adapters/CatalogAdapter.php"); 
    19 require_once(apiDirectory."/../adapters/CalendarAdapter.php"); 
     16require_once(API_DIRECTORY."/../adapters/ExpressoAdapter.php"); 
     17require_once(API_DIRECTORY."/../adapters/MailAdapter.php"); 
     18require_once(API_DIRECTORY."/../adapters/CatalogAdapter.php"); 
     19require_once(API_DIRECTORY."/../adapters/CalendarAdapter.php"); 
     20require_once(API_DIRECTORY."/../adapters/AdminAdapter.php" ); 
    2021 
    2122// Load all resources 
    22 require_once(apiDirectory."/availableServers/AvailableServersResource.php"); 
    23 require_once(apiDirectory."/core/ExpressoVersionResource.php"); 
    24 require_once(apiDirectory."/core/LoginResource.php"); 
    25 require_once(apiDirectory."/core/LogoutResource.php"); 
    26 require_once(apiDirectory."/mail/FoldersResource.php"); 
    27 require_once(apiDirectory."/mail/MessagesResource.php"); 
    28 require_once(apiDirectory."/mail/AddFolderResource.php"); 
    29 require_once(apiDirectory."/mail/DelFolderResource.php"); 
    30 require_once(apiDirectory."/mail/DelMessageResource.php"); 
    31 require_once(apiDirectory."/mail/RenameFolderResource.php"); 
    32 require_once(apiDirectory."/mail/CleanTrashResource.php"); 
    33 require_once(apiDirectory."/mail/AttachmentResource.php"); 
    34 require_once(apiDirectory."/mail/SendResource.php"); 
    35 require_once(apiDirectory."/mail/SendSupportFeedbackResource.php"); 
    36 require_once(apiDirectory."/catalog/ContactsResource.php"); 
    37 require_once(apiDirectory."/catalog/ContactPictureResource.php"); 
    38 require_once(apiDirectory."/calendar/EventsResource.php"); 
     23require_once(API_DIRECTORY."/admin/CreateUserResource.php"); 
     24require_once(API_DIRECTORY."/admin/DeleteUserResource.php"); 
     25require_once(API_DIRECTORY."/admin/EditUserResource.php"); 
     26require_once(API_DIRECTORY."/admin/RenameUserResource.php"); 
     27require_once(API_DIRECTORY."/admin/SearchUserResource.php"); 
     28require_once(API_DIRECTORY."/admin/UpdateUserResource.php"); 
     29 
     30require_once(API_DIRECTORY."/availableServers/AvailableServersResource.php"); 
     31 
     32require_once(API_DIRECTORY."/core/ExpressoVersionResource.php"); 
     33require_once(API_DIRECTORY."/core/LoginResource.php"); 
     34require_once(API_DIRECTORY."/core/LogoutResource.php"); 
     35 
     36require_once(API_DIRECTORY."/mail/FoldersResource.php"); 
     37require_once(API_DIRECTORY."/mail/MessagesResource.php"); 
     38require_once(API_DIRECTORY."/mail/AddFolderResource.php"); 
     39require_once(API_DIRECTORY."/mail/DelFolderResource.php"); 
     40require_once(API_DIRECTORY."/mail/DelMessageResource.php"); 
     41require_once(API_DIRECTORY."/mail/RenameFolderResource.php"); 
     42require_once(API_DIRECTORY."/mail/CleanTrashResource.php"); 
     43require_once(API_DIRECTORY."/mail/AttachmentResource.php"); 
     44require_once(API_DIRECTORY."/mail/SendResource.php"); 
     45require_once(API_DIRECTORY."/mail/SendSupportFeedbackResource.php"); 
     46 
     47require_once(API_DIRECTORY."/catalog/ContactsResource.php"); 
     48require_once(API_DIRECTORY."/catalog/ContactPictureResource.php"); 
     49require_once(API_DIRECTORY."/calendar/EventsResource.php"); 
    3950 
    4051//Retrieveing the mapping of the URIs and his respectives classNames and classPath 
    41 $config = parse_ini_file( apiDirectory . '/../config/Tonic.srv', true ); 
     52$config = parse_ini_file( API_DIRECTORY . '/../config/Tonic.srv', true ); 
    4253$autoload = array(); 
    4354$classpath = array(); 
Note: See TracChangeset for help on using the changeset viewer.