Exemplo n.º 1
0
 public function __construct()
 {
     parent::__construct();
     $this->_params = array('id' => '2', 'user_id' => '', 'wine_unique_id' => '1_2009');
     $this->_method = 'POST';
     $this->_uri = 'api/wishlist';
     $this->_models = array('Wishlist', 'User', 'Login');
 }
Exemplo n.º 2
0
 public function __construct()
 {
     parent::__construct();
     $this->_params = array('id' => '2', 'user_id' => '', 'follow_id' => '');
     $this->_method = 'POST';
     $this->_uri = 'api/follow';
     $this->_models = array('Follow', 'User', 'Login');
 }
Exemplo n.º 3
0
 public function __construct()
 {
     parent::__construct();
     $this->_params = array('brand_name' => 'Sweet Lips', 'country_id' => '1', 'region' => 'Spain');
     $this->_method = 'POST';
     $this->_uri = 'api/winery';
     $this->_models = array('Winery', 'User', 'Login');
 }
Exemplo n.º 4
0
 public function __construct()
 {
     parent::__construct();
     $this->_params = array('email' => '*****@*****.**', 'password' => '123456', 'device_id' => '123456');
     $this->_method = 'POST';
     $this->_uri = 'api/register';
     $this->_models = array('User');
 }
Exemplo n.º 5
0
 public function __construct()
 {
     parent::__construct();
     $this->_params = array('user_id' => '');
     $this->_method = 'GET';
     $this->_uri = 'api/ranking';
     $this->_models = array('Follow', 'User', 'Login');
 }
Exemplo n.º 6
0
 public function __construct()
 {
     parent::__construct();
     $this->_params = array('rate' => '0.5', 'comment_count' => '2', 'like_count' => '0', 'is_my_wine' => '0');
     $this->_method = 'PUT';
     $this->_uri = 'api/rating/';
     $this->_models = array('Rating', 'User', 'Login');
 }
Exemplo n.º 7
0
 public function __construct()
 {
     parent::__construct();
     $this->_params = array('id' => '2', 'user_id' => '', 'rating_id' => '1');
     $this->_method = 'POST';
     $this->_uri = 'api/like';
     $this->_models = array('Like', 'User', 'Login');
 }
Exemplo n.º 8
0
 public function __construct()
 {
     parent::__construct();
     $this->_params = array('user_id' => '', 'wine_unique_id' => '1_2009', 'rate' => '3.5', 'comment_count' => '3', 'like_count' => '2', 'is_my_wine' => '1');
     $this->_method = 'POST';
     $this->_uri = 'api/rating';
     $this->_models = array('Rating', 'User', 'Login');
 }
Exemplo n.º 9
0
 public function __construct()
 {
     parent::__construct();
     $this->_params = array('wine_id' => '2', 'name' => 'Wine_2', 'year' => '2009', 'winery_id' => '1', 'wine_unique_id' => '', 'average_price' => '2', 'average_rate' => '1', 'text' => 'wi');
     $this->_method = 'POST';
     $this->_uri = 'api/wine';
     $this->_models = array('Wine', 'User', 'Login');
 }
Exemplo n.º 10
0
 public function __construct()
 {
     parent::__construct();
     $this->_params = array('user_id' => '');
     $this->_method = 'GET';
     $this->_uri = 'api/profile/';
     $this->_models = array('Profile', 'User', 'Login');
 }
Exemplo n.º 11
0
 public function __construct()
 {
     parent::__construct();
     $this->_params = array('id' => '2', 'user_id' => '', 'rating_id' => '1', 'content' => 'this is comment 2');
     $this->_method = 'POST';
     $this->_uri = 'api/comment/1';
     $this->_models = array('Comment', 'User', 'Login');
 }
Exemplo n.º 12
0
 public function __construct()
 {
     parent::__construct();
     $this->_params = array('user_id' => '');
     $this->_method = 'GET';
     $this->_uri = 'api/timeline';
     $this->_models = array('Rating', 'User', 'Login');
 }
Exemplo n.º 13
0
 public function __construct()
 {
     parent::__construct();
     $this->_params = array('user_id' => '', 'text' => 'us', 'input' => array('10202725915174596'));
     $this->_method = 'POST';
     $this->_uri = 'api/user/search';
     $this->_models = array('Follow', 'User', 'Login');
 }
Exemplo n.º 14
0
 public function __construct()
 {
     parent::__construct();
     $this->_params = array('user_id' => '', 'wine_unique_id' => '1_2009', 'note' => 'This is note test');
     $this->_method = 'POST';
     $this->_uri = 'api/winenote';
     $this->_models = array('Winenote', 'User', 'Login');
 }
Exemplo n.º 15
0
 public function __construct()
 {
     parent::__construct();
     $this->_params = array('session_id' => '');
     $this->_method = 'POST';
     $this->_uri = ApiResponse::$API_LIST['logout'];
     $this->_models = array('User');
 }
 public function __construct($name = null, array $data = [], $dataName = '')
 {
     parent::__construct($name, $data, $dataName);
     $this->tablesUsed = array_unique(array_merge($this->tablesUsed, ['watchlist', 'recentchanges', 'page']));
 }