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 ...@@ -91,7 +91,7 @@ class ApplicationController extends BaseController
$url = 'https://api.mashery.com/v3/rest/members/' . $request->get('userId') . '/applications/' . $request->get('appId'); $url = 'https://api.mashery.com/v3/rest/members/' . $request->get('userId') . '/applications/' . $request->get('appId');
try { try {
$response = $this->masheryClient()->request('DEL', $url); $response = $this->masheryClient()->request('DELETE', $url);
$resBody = json_decode($response->getBody()->getContents(), true); $resBody = json_decode($response->getBody()->getContents(), true);
...@@ -139,7 +139,7 @@ class ApplicationController extends BaseController ...@@ -139,7 +139,7 @@ class ApplicationController extends BaseController
return response()->json($mResponse, $statusCode); return response()->json($mResponse, $statusCode);
} }
public function getByAppId(AppGetByAppId $request) public function getByAppId(AppGetByAppIdRequest $request)
{ {
$mResponse = new MResponse(); $mResponse = new MResponse();
$statusCode = 200; $statusCode = 200;
......
...@@ -9,16 +9,16 @@ ...@@ -9,16 +9,16 @@
namespace App\Http\Controllers; namespace App\Http\Controllers;
use App\Classes\MResponse; use App\Classes\MResponse;
use App\Http\Request\PackageKey\CreateRequest; use App\Http\Request\PackageKeyCreateRequest;
use App\Http\Request\PackageKey\ActivateRequest; use App\Http\Request\PackageKeyActivateRequest;
use App\Http\Request\PackageKey\DisableRequest; use App\Http\Request\PackageKeyDisableRequest;
use App\Http\Request\PackageKey\DeleteRequest; use App\Http\Request\PackageKeyDeleteRequest;
use App\Http\Request\PackageKey\GetByUserRequest; use App\Http\Request\PackageKeyGetByUserRequest;
use App\Http\Request\PackageKey\UpdatePlanRequest; use App\Http\Request\PackageKeyUpdatePlanRequest;
class PackageKeyController extends BaseController class PackageKeyController extends BaseController
{ {
public function create(CreateRequest $request) public function create(PackageKeyCreateRequest $request)
{ {
$mResponse = new MResponse(); $mResponse = new MResponse();
$statusCode = 200; $statusCode = 200;
...@@ -57,7 +57,7 @@ class PackageKeyController extends BaseController ...@@ -57,7 +57,7 @@ class PackageKeyController extends BaseController
return response()->json($mResponse, $statusCode); return response()->json($mResponse, $statusCode);
} }
public function activate(ActivateRequest $request) public function activate(PackageKeyActivateRequest $request)
{ {
$mResponse = new MResponse(); $mResponse = new MResponse();
$statusCode = 200; $statusCode = 200;
...@@ -89,7 +89,7 @@ class PackageKeyController extends BaseController ...@@ -89,7 +89,7 @@ class PackageKeyController extends BaseController
return response()->json($mResponse, $statusCode); return response()->json($mResponse, $statusCode);
} }
public function disable(DisableRequest $request) public function disable(PackageKeyDisableRequest $request)
{ {
$mResponse = new MResponse(); $mResponse = new MResponse();
$statusCode = 200; $statusCode = 200;
...@@ -121,7 +121,7 @@ class PackageKeyController extends BaseController ...@@ -121,7 +121,7 @@ class PackageKeyController extends BaseController
return response()->json($mResponse, $statusCode); return response()->json($mResponse, $statusCode);
} }
public function delete(DeleteRequest $request) public function delete(PackageKeyDeleteRequest $request)
{ {
$mResponse = new MResponse(); $mResponse = new MResponse();
$statusCode = 200; $statusCode = 200;
...@@ -149,7 +149,7 @@ class PackageKeyController extends BaseController ...@@ -149,7 +149,7 @@ class PackageKeyController extends BaseController
return response()->json($mResponse, $statusCode); return response()->json($mResponse, $statusCode);
} }
public function getByUser(GetByUserRequest $request) public function getByUser(PackageKeyGetByUserRequest $request)
{ {
$mResponse = new MResponse(); $mResponse = new MResponse();
$statusCode = 200; $statusCode = 200;
...@@ -181,7 +181,7 @@ class PackageKeyController extends BaseController ...@@ -181,7 +181,7 @@ class PackageKeyController extends BaseController
return response()->json($mResponse, $statusCode); return response()->json($mResponse, $statusCode);
} }
public function updatePlan(UpdatePlanRequest $request) public function updatePlan(PackageKeyUpdatePlanRequest $request)
{ {
$mResponse = new MResponse(); $mResponse = new MResponse();
$statusCode = 200; $statusCode = 200;
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
namespace App\Http\Controllers; namespace App\Http\Controllers;
use App\Classes\MResponse; use App\Classes\MResponse;
use App\Http\Request\PackagePlan\PlanRequest; use App\Http\Request\PackagePlanPlanRequest;
class PackagePlanController extends BaseController class PackagePlanController extends BaseController
{ {
...@@ -73,7 +73,7 @@ class PackagePlanController extends BaseController ...@@ -73,7 +73,7 @@ class PackagePlanController extends BaseController
return response()->json($mResponse, $statusCode); return response()->json($mResponse, $statusCode);
} }
public function getPlan(PlanRequest $request) public function getPlan(PackagePlanPlanRequest $request)
{ {
$mResponse = new MResponse(); $mResponse = new MResponse();
$statusCode = 200; $statusCode = 200;
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
namespace App\Http\Request; namespace App\Http\Request;
class AppGetByUserId extends FormRequestErrors class AppGetByUserIdRequest extends FormRequestErrors
{ {
protected function validationData() protected function validationData()
{ {
......
...@@ -6,11 +6,9 @@ ...@@ -6,11 +6,9 @@
* Time: 3:45 PM * Time: 3:45 PM
*/ */
namespace App\Http\Request\PackageKey; namespace App\Http\Request;
use App\Htpp\Request\FormRequestErrors; class PackageKeyActivateRequest extends FormRequestErrors
class DisableRequest extends FormRequestErrors
{ {
protected function validationData() protected function validationData()
{ {
......
...@@ -6,11 +6,9 @@ ...@@ -6,11 +6,9 @@
* Time: 3:45 PM * Time: 3:45 PM
*/ */
namespace App\Http\Request\PackageKey; namespace App\Http\Request;
use App\Htpp\Request\FormRequestErrors; class PackageKeyCreateRequest extends FormRequestErrors
class CreateRequest extends FormRequestErrors
{ {
protected function validationData() protected function validationData()
{ {
......
...@@ -6,11 +6,9 @@ ...@@ -6,11 +6,9 @@
* Time: 3:45 PM * Time: 3:45 PM
*/ */
namespace App\Http\Request\PackageKey; namespace App\Http\Request;
use App\Htpp\Request\FormRequestErrors; class PackageKeyDeleteRequest extends FormRequestErrors
class DeleteRequest extends FormRequestErrors
{ {
protected function validationData() protected function validationData()
{ {
......
...@@ -6,11 +6,9 @@ ...@@ -6,11 +6,9 @@
* Time: 3:45 PM * Time: 3:45 PM
*/ */
namespace App\Http\Request\PackageKey; namespace App\Http\Request;
use App\Htpp\Request\FormRequestErrors; class PackageKeyDisableRequest extends FormRequestErrors
class ActivateRequest extends FormRequestErrors
{ {
protected function validationData() protected function validationData()
{ {
......
...@@ -6,11 +6,9 @@ ...@@ -6,11 +6,9 @@
* Time: 3:45 PM * Time: 3:45 PM
*/ */
namespace App\Http\Request\PackageKey; namespace App\Http\Request;
use App\Htpp\Request\FormRequestErrors; class PackageKeyGetByUserRequest extends FormRequestErrors
class GetByUserRequest extends FormRequestErrors
{ {
protected function validationData() protected function validationData()
{ {
......
...@@ -6,11 +6,9 @@ ...@@ -6,11 +6,9 @@
* Time: 3:45 PM * Time: 3:45 PM
*/ */
namespace App\Http\Request\PackageKey; namespace App\Http\Request;
use App\Htpp\Request\FormRequestErrors; class PackageKeyUpdatePlanRequest extends FormRequestErrors
class UpdatePlanRequest extends FormRequestErrors
{ {
protected function validationData() protected function validationData()
{ {
......
...@@ -6,11 +6,9 @@ ...@@ -6,11 +6,9 @@
* Time: 3:45 PM * Time: 3:45 PM
*/ */
namespace App\Http\Request\PackagePlan; namespace App\Http\Request;
use App\Htpp\Request\FormRequestErrors; class PackagePlanPlanRequest extends FormRequestErrors
class PlanRequest extends FormRequestErrors
{ {
protected function validationData() 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