Exemple #1
0
 public static function deleteAll($headers = null)
 {
     if (!$headers) {
         $headers = Rapid::getAuthHeader();
     }
     $response = Request::delete(Rapid::getUrl(self::$route), $headers);
     return Response::make($response);
 }
 public static function post($body = null, $headers = null)
 {
     if (!$headers) {
         $headers = Rapid::getAuthHeader();
     }
     $response = Request::post(Rapid::getUrl(self::$route), $headers, http_build_query($body));
     return Response::make($response);
 }
Exemple #3
0
 public static function postByOther($otherIdOrSlug, $body = null, $headers = null)
 {
     $response = Request::post(Rapid::getUrl(self::$belongsToRouteOthers . '/' . $otherIdOrSlug . '/' . self::$route), $headers, http_build_query($body));
     return Response::make($response);
 }
 public static function getAllByCatalog($catalogIdOrSlug, $params = null, $headers = null)
 {
     $response = Request::get(Rapid::getUrl(self::$belongsToRouteCatalogs . '/' . $catalogIdOrSlug . '/' . self::$route), $headers, $params);
     return Response::make($response);
 }
Exemple #5
0
 public static function getAll($params = null, $headers = null)
 {
     $response = Request::get(Rapid::getUrl(self::$route), $headers, $params);
     return Response::make($response);
 }