Commit d1656362 authored by Dzulfqar Ridha's avatar Dzulfqar Ridha

move packagekey and packageplan request file to request folder

parent 8dbe3b55
......@@ -91,7 +91,7 @@ class ApplicationController extends BaseController
$url = 'https://api.mashery.com/v3/rest/members/' . $request->get('userId') . '/applications/' . $request->get('appId');
try {
$response = $this->masheryClient()->request('DEL', $url);
$response = $this->masheryClient()->request('DELETE', $url);
$resBody = json_decode($response->getBody()->getContents(), true);
......@@ -139,7 +139,7 @@ class ApplicationController extends BaseController
return response()->json($mResponse, $statusCode);
}
public function getByAppId(AppGetByAppId $request)
public function getByAppId(AppGetByAppIdRequest $request)
{
$mResponse = new MResponse();
$statusCode = 200;
......
......@@ -9,16 +9,16 @@
namespace App\Http\Controllers;
use App\Classes\MResponse;
use App\Http\Request\PackageKey\CreateRequest;
use App\Http\Request\PackageKey\ActivateRequest;
use App\Http\Request\PackageKey\DisableRequest;
use App\Http\Request\PackageKey\DeleteRequest;
use App\Http\Request\PackageKey\GetByUserRequest;
use App\Http\Request\PackageKey\UpdatePlanRequest;
use App\Http\Request\PackageKeyCreateRequest;
use App\Http\Request\PackageKeyActivateRequest;
use App\Http\Request\PackageKeyDisableRequest;
use App\Http\Request\PackageKeyDeleteRequest;
use App\Http\Request\PackageKeyGetByUserRequest;
use App\Http\Request\PackageKeyUpdatePlanRequest;
class PackageKeyController extends BaseController
{
public function create(CreateRequest $request)
public function create(PackageKeyCreateRequest $request)
{
$mResponse = new MResponse();
$statusCode = 200;
......@@ -57,7 +57,7 @@ class PackageKeyController extends BaseController
return response()->json($mResponse, $statusCode);
}
public function activate(ActivateRequest $request)
public function activate(PackageKeyActivateRequest $request)
{
$mResponse = new MResponse();
$statusCode = 200;
......@@ -89,7 +89,7 @@ class PackageKeyController extends BaseController
return response()->json($mResponse, $statusCode);
}
public function disable(DisableRequest $request)
public function disable(PackageKeyDisableRequest $request)
{
$mResponse = new MResponse();
$statusCode = 200;
......@@ -121,7 +121,7 @@ class PackageKeyController extends BaseController
return response()->json($mResponse, $statusCode);
}
public function delete(DeleteRequest $request)
public function delete(PackageKeyDeleteRequest $request)
{
$mResponse = new MResponse();
$statusCode = 200;
......@@ -149,7 +149,7 @@ class PackageKeyController extends BaseController
return response()->json($mResponse, $statusCode);
}
public function getByUser(GetByUserRequest $request)
public function getByUser(PackageKeyGetByUserRequest $request)
{
$mResponse = new MResponse();
$statusCode = 200;
......@@ -181,7 +181,7 @@ class PackageKeyController extends BaseController
return response()->json($mResponse, $statusCode);
}
public function updatePlan(UpdatePlanRequest $request)
public function updatePlan(PackageKeyUpdatePlanRequest $request)
{
$mResponse = new MResponse();
$statusCode = 200;
......
......@@ -9,7 +9,7 @@
namespace App\Http\Controllers;
use App\Classes\MResponse;
use App\Http\Request\PackagePlan\PlanRequest;
use App\Http\Request\PackagePlanPlanRequest;
class PackagePlanController extends BaseController
{
......@@ -73,7 +73,7 @@ class PackagePlanController extends BaseController
return response()->json($mResponse, $statusCode);
}
public function getPlan(PlanRequest $request)
public function getPlan(PackagePlanPlanRequest $request)
{
$mResponse = new MResponse();
$statusCode = 200;
......
......@@ -8,7 +8,7 @@
namespace App\Http\Request;
class AppGetByUserId extends FormRequestErrors
class AppGetByUserIdRequest extends FormRequestErrors
{
protected function validationData()
{
......
......@@ -6,11 +6,9 @@
* Time: 3:45 PM
*/
namespace App\Http\Request\PackageKey;
namespace App\Http\Request;
use App\Htpp\Request\FormRequestErrors;
class DisableRequest extends FormRequestErrors
class PackageKeyActivateRequest extends FormRequestErrors
{
protected function validationData()
{
......
......@@ -6,11 +6,9 @@
* Time: 3:45 PM
*/
namespace App\Http\Request\PackageKey;
namespace App\Http\Request;
use App\Htpp\Request\FormRequestErrors;
class CreateRequest extends FormRequestErrors
class PackageKeyCreateRequest extends FormRequestErrors
{
protected function validationData()
{
......
......@@ -6,11 +6,9 @@
* Time: 3:45 PM
*/
namespace App\Http\Request\PackageKey;
namespace App\Http\Request;
use App\Htpp\Request\FormRequestErrors;
class DeleteRequest extends FormRequestErrors
class PackageKeyDeleteRequest extends FormRequestErrors
{
protected function validationData()
{
......
......@@ -6,11 +6,9 @@
* Time: 3:45 PM
*/
namespace App\Http\Request\PackageKey;
namespace App\Http\Request;
use App\Htpp\Request\FormRequestErrors;
class ActivateRequest extends FormRequestErrors
class PackageKeyDisableRequest extends FormRequestErrors
{
protected function validationData()
{
......
......@@ -6,11 +6,9 @@
* Time: 3:45 PM
*/
namespace App\Http\Request\PackageKey;
namespace App\Http\Request;
use App\Htpp\Request\FormRequestErrors;
class GetByUserRequest extends FormRequestErrors
class PackageKeyGetByUserRequest extends FormRequestErrors
{
protected function validationData()
{
......
......@@ -6,11 +6,9 @@
* Time: 3:45 PM
*/
namespace App\Http\Request\PackageKey;
namespace App\Http\Request;
use App\Htpp\Request\FormRequestErrors;
class UpdatePlanRequest extends FormRequestErrors
class PackageKeyUpdatePlanRequest extends FormRequestErrors
{
protected function validationData()
{
......
......@@ -6,11 +6,9 @@
* Time: 3:45 PM
*/
namespace App\Http\Request\PackagePlan;
namespace App\Http\Request;
use App\Htpp\Request\FormRequestErrors;
class PlanRequest extends FormRequestErrors
class PackagePlanPlanRequest extends FormRequestErrors
{
protected function validationData()
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment