Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
M
MP-Tsel
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dzulfiqar Ridha
MP-Tsel
Commits
d1656362
Commit
d1656362
authored
Apr 10, 2019
by
Dzulfqar Ridha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move packagekey and packageplan request file to request folder
parent
8dbe3b55
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
31 additions
and
45 deletions
+31
-45
ApplicationController.php
app/Http/Controllers/ApplicationController.php
+2
-2
PackageKeyController.php
app/Http/Controllers/PackageKeyController.php
+12
-12
PackagePlanController.php
app/Http/Controllers/PackagePlanController.php
+2
-2
AppGetByUserIdRequest.php
app/Http/Request/AppGetByUserIdRequest.php
+1
-1
PackageKeyActivateRequest.php
app/Http/Request/PackageKeyActivateRequest.php
+2
-4
PackageKeyCreateRequest.php
app/Http/Request/PackageKeyCreateRequest.php
+2
-4
PackageKeyDeleteRequest.php
app/Http/Request/PackageKeyDeleteRequest.php
+2
-4
PackageKeyDisableRequest.php
app/Http/Request/PackageKeyDisableRequest.php
+2
-4
PackageKeyGetByUserRequest.php
app/Http/Request/PackageKeyGetByUserRequest.php
+2
-4
PackageKeyUpdatePlanRequest.php
app/Http/Request/PackageKeyUpdatePlanRequest.php
+2
-4
PackagePlanPlanRequest.php
app/Http/Request/PackagePlanPlanRequest.php
+2
-4
No files found.
app/Http/Controllers/ApplicationController.php
View file @
d1656362
...
...
@@ -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
(
'DEL
ETE
'
,
$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
(
AppGetByAppId
Request
$request
)
{
$mResponse
=
new
MResponse
();
$statusCode
=
200
;
...
...
app/Http/Controllers/PackageKeyController.php
View file @
d1656362
...
...
@@ -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
(
PackageKey
CreateRequest
$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
(
PackageKey
ActivateRequest
$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
(
PackageKey
DisableRequest
$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
(
PackageKey
DeleteRequest
$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
(
PackageKey
GetByUserRequest
$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
(
PackageKey
UpdatePlanRequest
$request
)
{
$mResponse
=
new
MResponse
();
$statusCode
=
200
;
...
...
app/Http/Controllers/PackagePlanController.php
View file @
d1656362
...
...
@@ -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
(
P
ackagePlanP
lanRequest
$request
)
{
$mResponse
=
new
MResponse
();
$statusCode
=
200
;
...
...
app/Http/Request/AppGetByUserIdRequest.php
View file @
d1656362
...
...
@@ -8,7 +8,7 @@
namespace
App\Http\Request
;
class
AppGetByUserId
extends
FormRequestErrors
class
AppGetByUserId
Request
extends
FormRequestErrors
{
protected
function
validationData
()
{
...
...
app/Http/Request/PackageKey
/Disabl
eRequest.php
→
app/Http/Request/PackageKey
Activat
eRequest.php
View file @
d1656362
...
...
@@ -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
()
{
...
...
app/Http/Request/PackageKey
/
CreateRequest.php
→
app/Http/Request/PackageKeyCreateRequest.php
View file @
d1656362
...
...
@@ -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
()
{
...
...
app/Http/Request/PackageKey
/
DeleteRequest.php
→
app/Http/Request/PackageKeyDeleteRequest.php
View file @
d1656362
...
...
@@ -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
()
{
...
...
app/Http/Request/PackageKey
/Activat
eRequest.php
→
app/Http/Request/PackageKey
Disabl
eRequest.php
View file @
d1656362
...
...
@@ -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
()
{
...
...
app/Http/Request/PackageKey
/
GetByUserRequest.php
→
app/Http/Request/PackageKeyGetByUserRequest.php
View file @
d1656362
...
...
@@ -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
()
{
...
...
app/Http/Request/PackageKey
/
UpdatePlanRequest.php
→
app/Http/Request/PackageKeyUpdatePlanRequest.php
View file @
d1656362
...
...
@@ -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
()
{
...
...
app/Http/Request/PackagePlan
/
PlanRequest.php
→
app/Http/Request/PackagePlanPlanRequest.php
View file @
d1656362
...
...
@@ -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
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment