Plugin Directory

Changeset 2088641


Ignore:
Timestamp:
05/15/2019 09:27:03 PM (7 years ago)
Author:
phkcorp2005
Message:
  • Fixed for operations on a single-site as well as multi-site installation of WordPress
  • Added argument information to the REST API routes
Location:
bestbooks/trunk
Files:
2 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • bestbooks/trunk/README.md

    r2082587 r2088641  
    161161
    162162# Changelog
     163= 2.3.2 =
     164* Fixed for operations on a single-site as well as multi-site installation of WordPress
     165* Added argument information to the REST API routes
     166
    163167= 2.3.1 =
    164168* Change ownership references from PHK Corporation to PressPage Entertainment Inc
  • bestbooks/trunk/api.php

    r2082587 r2088641  
    1919        array(
    2020            'methods' => array('GET','POST'),
    21             'callback' => 'bestbooks_api_version'
     21            'callback' => 'bestbooks_api_version',
     22            'args' => array(
     23                            'user' => array('required' => true),
     24                            'pass' => array('required' => true)
     25                        )
    2226        )
    2327    );
     
    2630        array(
    2731            'methods' => array('GET','POST'),
    28             'callback' => 'bestbooks_api_settings'
     32            'callback' => 'bestbooks_api_settings',
     33            'args' => array(
     34                            'user' => array('required' => true),
     35                            'pass' => array('required' => true)
     36                        )
    2937        )
    3038    );
     
    3341        array(
    3442            'methods' => array('GET','POST'),
    35             'callback' => 'bestbooks_api_chartofaccounts'
     43            'callback' => 'bestbooks_api_chartofaccounts',
     44            'args' => array(
     45                        'user' => array('required' => true),
     46                        'pass' => array('required' => true),
     47                        'name' => array('required' => false),
     48                        'type' => array('required' => false)
     49                        )
    3650        )
    3751    );
     
    4054        array(
    4155            'methods' => array('GET','POST'),
    42             'callback' => 'bestbooks_api_get_acctypes'
     56            'callback' => 'bestbooks_api_get_acctypes',
     57            'args' => array(
     58                            'user' => array('required' => true),
     59                            'pass' => array('required' => true)
     60                        )
    4361        )
    4462    );
     
    4765        array(
    4866            'methods' => array('GET','POST'),
    49             'callback' => 'bestbooks_api_debit'
     67            'callback' => 'bestbooks_api_debit',
     68            'args' => array(
     69                            'user' => array('required' => true),
     70                            'pass' => array('required' => true),
     71                            'name' => array('required' => true),
     72                            'date' => array('required' => true),
     73                            'desc' => array('required' => true),
     74                            'amount' => array('required' => true)
     75                        )
    5076        )
    5177    );
     
    5480        array(
    5581            'methods' => array('GET','POST'),
    56             'callback' => 'bestbooks_api_credit'
     82            'callback' => 'bestbooks_api_credit',
     83            'args' => array(
     84                            'user' => array('required' => true),
     85                            'pass' => array('required' => true),
     86                            'name' => array('required' => true),
     87                            'date' => array('required' => true),
     88                            'desc' => array('required' => true),
     89                            'amount' => array('required' => true)
     90                        )
    5791        )
    5892    );
     
    6195        array(
    6296            'methods' => array('GET','POST'),
    63             'callback' => 'bestbooks_api_balance'
     97            'callback' => 'bestbooks_api_balance',
     98            'args' => array(
     99                            'user' => array('required' => true),
     100                            'pass' => array('required' => true),
     101                            'name' => array('required' => true),
     102                            'balance' => array('required' => false)
     103                        )
    64104        )
    65105    );
     
    68108        array(
    69109            'methods' => array('GET','POST'),
    70             'callback' => 'bestbooks_api_add'
     110            'callback' => 'bestbooks_api_add',
     111            'args' => array(
     112                            'user' => array('required' => true),
     113                            'pass' => array('required' => true),
     114                            'name' => array('required' => true),
     115                            'date' => array('required' => true),
     116                            'desc' => array('required' => true),
     117                            'amount' => array('required' => true)
     118                        )
    71119        )
    72120    );
     
    75123        array(
    76124            'methods' => array('GET','POST'),
    77             'callback' => 'bestbooks_api_subtract'
     125            'callback' => 'bestbooks_api_subtract',
     126            'args' => array(
     127                            'user' => array('required' => true),
     128                            'pass' => array('required' => true),
     129                            'name' => array('required' => true),
     130                            'date' => array('required' => true),
     131                            'desc' => array('required' => true),
     132                            'amount' => array('required' => true)
     133                        )
    78134        )
    79135    );
     
    82138        array(
    83139            'methods' => array('GET','POST'),
    84             'callback' => 'bestbooks_api_headers'
     140            'callback' => 'bestbooks_api_headers',
     141            'args' => array(
     142                            'user' => array('required' => true),
     143                            'pass' => array('required' => true)
     144                        )
    85145        )
    86146    );
     
    248308                } else {
    249309                    $results = $account->getBalance();
     310                    if (is_null($result) || empty($result)) {
     311                        $result = 0.00;
     312                    }
    250313                }
    251314            } catch (Exception $ex) {
     
    328391   
    329392        $results[] = apache_request_headers();
    330         $results[] = $request['username'];
     393        $results[] = $request['user'];
    331394       
    332395        $response = new WP_REST_Response( $results );
  • bestbooks/trunk/bestbooks.php

    r2082587 r2088641  
    44Plugin URI: http://wordpress.org/plugins/bestbooks/
    55Description: The popular accounting framework
    6 Version: 2.3.1
     6Version: 2.3.2
    77Author: PressPage Entertainment Inc
    88Author URI: https://www.presspage.info
     
    6161*/
    6262
    63 define('BESTBOOKS_VERSION', '2.3.1');
     63define('BESTBOOKS_VERSION', '2.3.2');
    6464
    6565require_once dirname(__FILE__).'/vendor/autoload.php';
  • bestbooks/trunk/readme.txt

    r2082587 r2088641  
    157157
    158158== Changelog ==
     159= 2.3.2 =
     160* Fixed for operations on a single-site as well as multi-site installation of WordPress
     161* Added argument information to the REST API routes
     162
    159163= 2.3.1 =
    160164* Change ownership references from PHK Corporation to PressPage Entertainment Inc
Note: See TracChangeset for help on using the changeset viewer.