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
d3f2c470
Commit
d3f2c470
authored
Apr 11, 2019
by
Dzulfqar Ridha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
penyesuaian untuk developing metering
parent
d1656362
Show whitespace changes
Inline
Side-by-side
Showing
21 changed files
with
50 additions
and
50 deletions
+50
-50
ApplicationController.php
app/Http/Controllers/ApplicationController.php
+10
-10
PackageKeyController.php
app/Http/Controllers/PackageKeyController.php
+13
-13
PackagePlanController.php
app/Http/Controllers/PackagePlanController.php
+2
-2
UserController.php
app/Http/Controllers/UserController.php
+8
-8
MSAppCreateRequest.php
app/Http/Request/MSAppCreateRequest.php
+1
-1
MSAppDeleteRequest.php
app/Http/Request/MSAppDeleteRequest.php
+1
-1
MSAppGetByAppIdRequest.php
app/Http/Request/MSAppGetByAppIdRequest.php
+1
-1
MSAppGetByUserIdRequest.php
app/Http/Request/MSAppGetByUserIdRequest.php
+1
-1
MSAppUpdateRequest.php
app/Http/Request/MSAppUpdateRequest.php
+1
-1
MSPackageKeyActivateRequest.php
app/Http/Request/MSPackageKeyActivateRequest.php
+1
-1
MSPackageKeyCreateRequest.php
app/Http/Request/MSPackageKeyCreateRequest.php
+1
-1
MSPackageKeyDeleteRequest.php
app/Http/Request/MSPackageKeyDeleteRequest.php
+1
-1
MSPackageKeyDisableRequest.php
app/Http/Request/MSPackageKeyDisableRequest.php
+1
-1
MSPackageKeyGetByUserRequest.php
app/Http/Request/MSPackageKeyGetByUserRequest.php
+1
-1
MSPackageKeyUpdatePlanRequest.php
app/Http/Request/MSPackageKeyUpdatePlanRequest.php
+1
-1
MSPackagePlanPlanRequest.php
app/Http/Request/MSPackagePlanPlanRequest.php
+1
-1
MSUserCreateRequest.php
app/Http/Request/MSUserCreateRequest.php
+1
-1
MSUserGetByIdRequest.php
app/Http/Request/MSUserGetByIdRequest.php
+1
-1
MSUserGetByUsernameRequest.php
app/Http/Request/MSUserGetByUsernameRequest.php
+1
-1
MSUserUpdateRequest.php
app/Http/Request/MSUserUpdateRequest.php
+1
-1
web.php
routes/web.php
+1
-1
No files found.
app/Http/Controllers/ApplicationController.php
View file @
d3f2c470
...
...
@@ -9,15 +9,15 @@
namespace
App\Http\Controllers
;
use
App\Classes\MResponse
;
use
App\Http\Request\AppCreateRequest
;
use
App\Http\Request\AppUpdateRequest
;
use
App\Http\Request\AppDeleteRequest
;
use
App\Http\Request\AppGetByAppIdRequest
;
use
App\Http\Request\AppGetByUserIdRequest
;
use
App\Http\Request\
MS
AppCreateRequest
;
use
App\Http\Request\
MS
AppUpdateRequest
;
use
App\Http\Request\
MS
AppDeleteRequest
;
use
App\Http\Request\
MS
AppGetByAppIdRequest
;
use
App\Http\Request\
MS
AppGetByUserIdRequest
;
class
ApplicationController
extends
BaseController
{
public
function
create
(
AppCreateRequest
$request
)
public
function
create
(
MS
AppCreateRequest
$request
)
{
$mResponse
=
new
MResponse
();
$statusCode
=
200
;
...
...
@@ -50,7 +50,7 @@ class ApplicationController extends BaseController
return
response
()
->
json
(
$mResponse
,
$statusCode
);
}
public
function
update
(
AppUpdateRequest
$request
)
public
function
update
(
MS
AppUpdateRequest
$request
)
{
$mResponse
=
new
MResponse
();
$statusCode
=
200
;
...
...
@@ -83,7 +83,7 @@ class ApplicationController extends BaseController
return
response
()
->
json
(
$mResponse
,
$statusCode
);
}
public
function
delete
(
AppDeleteRequest
$request
)
public
function
delete
(
MS
AppDeleteRequest
$request
)
{
$mResponse
=
new
MResponse
();
$statusCode
=
200
;
...
...
@@ -111,7 +111,7 @@ class ApplicationController extends BaseController
return
response
()
->
json
(
$mResponse
,
$statusCode
);
}
public
function
getByUserID
(
AppGetByUserIdRequest
$request
)
public
function
getByUserID
(
MS
AppGetByUserIdRequest
$request
)
{
$mResponse
=
new
MResponse
();
$statusCode
=
200
;
...
...
@@ -139,7 +139,7 @@ class ApplicationController extends BaseController
return
response
()
->
json
(
$mResponse
,
$statusCode
);
}
public
function
getByAppId
(
AppGetByAppIdRequest
$request
)
public
function
getByAppId
(
MS
AppGetByAppIdRequest
$request
)
{
$mResponse
=
new
MResponse
();
$statusCode
=
200
;
...
...
app/Http/Controllers/PackageKeyController.php
View file @
d3f2c470
...
...
@@ -9,16 +9,16 @@
namespace
App\Http\Controllers
;
use
App\Classes\MResponse
;
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
;
use
App\Http\Request\
MS
PackageKeyCreateRequest
;
use
App\Http\Request\
MS
PackageKeyActivateRequest
;
use
App\Http\Request\
MS
PackageKeyDisableRequest
;
use
App\Http\Request\
MS
PackageKeyDeleteRequest
;
use
App\Http\Request\
MS
PackageKeyGetByUserRequest
;
use
App\Http\Request\
MS
PackageKeyUpdatePlanRequest
;
class
PackageKeyController
extends
BaseController
{
public
function
create
(
PackageKeyCreateRequest
$request
)
public
function
create
(
MS
PackageKeyCreateRequest
$request
)
{
$mResponse
=
new
MResponse
();
$statusCode
=
200
;
...
...
@@ -57,7 +57,7 @@ class PackageKeyController extends BaseController
return
response
()
->
json
(
$mResponse
,
$statusCode
);
}
public
function
activate
(
PackageKeyActivateRequest
$request
)
public
function
activate
(
MS
PackageKeyActivateRequest
$request
)
{
$mResponse
=
new
MResponse
();
$statusCode
=
200
;
...
...
@@ -89,7 +89,7 @@ class PackageKeyController extends BaseController
return
response
()
->
json
(
$mResponse
,
$statusCode
);
}
public
function
disable
(
PackageKeyDisableRequest
$request
)
public
function
disable
(
MS
PackageKeyDisableRequest
$request
)
{
$mResponse
=
new
MResponse
();
$statusCode
=
200
;
...
...
@@ -121,7 +121,7 @@ class PackageKeyController extends BaseController
return
response
()
->
json
(
$mResponse
,
$statusCode
);
}
public
function
delete
(
PackageKeyDeleteRequest
$request
)
public
function
delete
(
MS
PackageKeyDeleteRequest
$request
)
{
$mResponse
=
new
MResponse
();
$statusCode
=
200
;
...
...
@@ -129,7 +129,7 @@ class PackageKeyController extends BaseController
$url
=
'https://api.mashery.com/v3/rest/applications/'
.
$request
->
get
(
'appId'
)
.
'/packageKeys/'
.
$request
->
get
(
'pkgKeyId'
);
try
{
$response
=
$this
->
masheryClient
()
->
request
(
'DEL'
,
$url
);
$response
=
$this
->
masheryClient
()
->
request
(
'DEL
ETE
'
,
$url
);
$resBody
=
json_decode
(
$response
->
getBody
()
->
getContents
(),
true
);
...
...
@@ -149,7 +149,7 @@ class PackageKeyController extends BaseController
return
response
()
->
json
(
$mResponse
,
$statusCode
);
}
public
function
getByUser
(
PackageKeyGetByUserRequest
$request
)
public
function
getByUser
(
MS
PackageKeyGetByUserRequest
$request
)
{
$mResponse
=
new
MResponse
();
$statusCode
=
200
;
...
...
@@ -181,7 +181,7 @@ class PackageKeyController extends BaseController
return
response
()
->
json
(
$mResponse
,
$statusCode
);
}
public
function
updatePlan
(
PackageKeyUpdatePlanRequest
$request
)
public
function
updatePlan
(
MS
PackageKeyUpdatePlanRequest
$request
)
{
$mResponse
=
new
MResponse
();
$statusCode
=
200
;
...
...
app/Http/Controllers/PackagePlanController.php
View file @
d3f2c470
...
...
@@ -9,7 +9,7 @@
namespace
App\Http\Controllers
;
use
App\Classes\MResponse
;
use
App\Http\Request\PackagePlanPlanRequest
;
use
App\Http\Request\
MS
PackagePlanPlanRequest
;
class
PackagePlanController
extends
BaseController
{
...
...
@@ -73,7 +73,7 @@ class PackagePlanController extends BaseController
return
response
()
->
json
(
$mResponse
,
$statusCode
);
}
public
function
getPlan
(
PackagePlanPlanRequest
$request
)
public
function
getPlan
(
MS
PackagePlanPlanRequest
$request
)
{
$mResponse
=
new
MResponse
();
$statusCode
=
200
;
...
...
app/Http/Controllers/UserController.php
View file @
d3f2c470
...
...
@@ -9,14 +9,14 @@
namespace
App\Http\Controllers
;
use
App\Classes\MResponse
;
use
App\Http\Request\UserCreateRequest
;
use
App\Http\Request\UserGetByUsernameRequest
;
use
App\Http\Request\UserGetByIdRequest
;
use
App\Http\Request\UserUpdateRequest
;
use
App\Http\Request\
MS
UserCreateRequest
;
use
App\Http\Request\
MS
UserGetByUsernameRequest
;
use
App\Http\Request\
MS
UserGetByIdRequest
;
use
App\Http\Request\
MS
UserUpdateRequest
;
class
UserController
extends
BaseController
{
public
function
getByUsername
(
UserGetByUsernameRequest
$request
)
public
function
getByUsername
(
MS
UserGetByUsernameRequest
$request
)
{
$mResponse
=
new
MResponse
();
$statusCode
=
200
;
...
...
@@ -46,7 +46,7 @@ class UserController extends BaseController
return
response
()
->
json
(
$mResponse
,
$statusCode
);
}
public
function
getById
(
UserGetByIdRequest
$request
){
public
function
getById
(
MS
UserGetByIdRequest
$request
){
$mResponse
=
new
MResponse
();
$statusCode
=
200
;
...
...
@@ -73,7 +73,7 @@ class UserController extends BaseController
return
response
()
->
json
(
$mResponse
,
$statusCode
);
}
public
function
createUser
(
UserCreateRequest
$request
)
public
function
createUser
(
MS
UserCreateRequest
$request
)
{
$mResponse
=
new
MResponse
();
$statusCode
=
200
;
...
...
@@ -108,7 +108,7 @@ class UserController extends BaseController
return
response
()
->
json
(
$mResponse
,
$statusCode
);
}
public
function
updateUser
(
UserUpdateRequest
$request
){
public
function
updateUser
(
MS
UserUpdateRequest
$request
){
$mResponse
=
new
MResponse
();
$statusCode
=
200
;
...
...
app/Http/Request/AppCreateRequest.php
→
app/Http/Request/
MS
AppCreateRequest.php
View file @
d3f2c470
...
...
@@ -8,7 +8,7 @@
namespace
App\Http\Request
;
class
AppCreateRequest
extends
FormRequestErrors
class
MS
AppCreateRequest
extends
FormRequestErrors
{
protected
function
validationData
()
{
...
...
app/Http/Request/AppDeleteRequest.php
→
app/Http/Request/
MS
AppDeleteRequest.php
View file @
d3f2c470
...
...
@@ -8,7 +8,7 @@
namespace
App\Http\Request
;
class
AppDeleteRequest
extends
FormRequestErrors
class
MS
AppDeleteRequest
extends
FormRequestErrors
{
protected
function
validationData
()
{
...
...
app/Http/Request/AppGetByAppIdRequest.php
→
app/Http/Request/
MS
AppGetByAppIdRequest.php
View file @
d3f2c470
...
...
@@ -8,7 +8,7 @@
namespace
App\Http\Request
;
class
AppGetByAppIdRequest
extends
FormRequestErrors
class
MS
AppGetByAppIdRequest
extends
FormRequestErrors
{
protected
function
validationData
()
{
...
...
app/Http/Request/AppGetByUserIdRequest.php
→
app/Http/Request/
MS
AppGetByUserIdRequest.php
View file @
d3f2c470
...
...
@@ -8,7 +8,7 @@
namespace
App\Http\Request
;
class
AppGetByUserIdRequest
extends
FormRequestErrors
class
MS
AppGetByUserIdRequest
extends
FormRequestErrors
{
protected
function
validationData
()
{
...
...
app/Http/Request/AppUpdateRequest.php
→
app/Http/Request/
MS
AppUpdateRequest.php
View file @
d3f2c470
...
...
@@ -8,7 +8,7 @@
namespace
App\Http\Request
;
class
AppUpdateRequest
extends
FormRequestErrors
class
MS
AppUpdateRequest
extends
FormRequestErrors
{
protected
function
validationData
()
{
...
...
app/Http/Request/
PackageKeyDisabl
eRequest.php
→
app/Http/Request/
MSPackageKeyActivat
eRequest.php
View file @
d3f2c470
...
...
@@ -8,7 +8,7 @@
namespace
App\Http\Request
;
class
PackageKeyDisabl
eRequest
extends
FormRequestErrors
class
MSPackageKeyActivat
eRequest
extends
FormRequestErrors
{
protected
function
validationData
()
{
...
...
app/Http/Request/PackageKeyCreateRequest.php
→
app/Http/Request/
MS
PackageKeyCreateRequest.php
View file @
d3f2c470
...
...
@@ -8,7 +8,7 @@
namespace
App\Http\Request
;
class
PackageKeyCreateRequest
extends
FormRequestErrors
class
MS
PackageKeyCreateRequest
extends
FormRequestErrors
{
protected
function
validationData
()
{
...
...
app/Http/Request/PackageKeyDeleteRequest.php
→
app/Http/Request/
MS
PackageKeyDeleteRequest.php
View file @
d3f2c470
...
...
@@ -8,7 +8,7 @@
namespace
App\Http\Request
;
class
PackageKeyDeleteRequest
extends
FormRequestErrors
class
MS
PackageKeyDeleteRequest
extends
FormRequestErrors
{
protected
function
validationData
()
{
...
...
app/Http/Request/
PackageKeyActivat
eRequest.php
→
app/Http/Request/
MSPackageKeyDisabl
eRequest.php
View file @
d3f2c470
...
...
@@ -8,7 +8,7 @@
namespace
App\Http\Request
;
class
PackageKeyActivat
eRequest
extends
FormRequestErrors
class
MSPackageKeyDisabl
eRequest
extends
FormRequestErrors
{
protected
function
validationData
()
{
...
...
app/Http/Request/PackageKeyGetByUserRequest.php
→
app/Http/Request/
MS
PackageKeyGetByUserRequest.php
View file @
d3f2c470
...
...
@@ -8,7 +8,7 @@
namespace
App\Http\Request
;
class
PackageKeyGetByUserRequest
extends
FormRequestErrors
class
MS
PackageKeyGetByUserRequest
extends
FormRequestErrors
{
protected
function
validationData
()
{
...
...
app/Http/Request/PackageKeyUpdatePlanRequest.php
→
app/Http/Request/
MS
PackageKeyUpdatePlanRequest.php
View file @
d3f2c470
...
...
@@ -8,7 +8,7 @@
namespace
App\Http\Request
;
class
PackageKeyUpdatePlanRequest
extends
FormRequestErrors
class
MS
PackageKeyUpdatePlanRequest
extends
FormRequestErrors
{
protected
function
validationData
()
{
...
...
app/Http/Request/PackagePlanPlanRequest.php
→
app/Http/Request/
MS
PackagePlanPlanRequest.php
View file @
d3f2c470
...
...
@@ -8,7 +8,7 @@
namespace
App\Http\Request
;
class
PackagePlanPlanRequest
extends
FormRequestErrors
class
MS
PackagePlanPlanRequest
extends
FormRequestErrors
{
protected
function
validationData
()
{
...
...
app/Http/Request/UserCreateRequest.php
→
app/Http/Request/
MS
UserCreateRequest.php
View file @
d3f2c470
...
...
@@ -8,7 +8,7 @@
namespace
App\Http\Request
;
class
UserCreateRequest
extends
FormRequestErrors
class
MS
UserCreateRequest
extends
FormRequestErrors
{
protected
function
validationData
()
{
...
...
app/Http/Request/UserGetByIdRequest.php
→
app/Http/Request/
MS
UserGetByIdRequest.php
View file @
d3f2c470
...
...
@@ -8,7 +8,7 @@
namespace
App\Http\Request
;
class
UserGetByIdRequest
extends
FormRequestErrors
class
MS
UserGetByIdRequest
extends
FormRequestErrors
{
protected
function
validationData
()
{
...
...
app/Http/Request/UserGetByUsernameRequest.php
→
app/Http/Request/
MS
UserGetByUsernameRequest.php
View file @
d3f2c470
...
...
@@ -8,7 +8,7 @@
namespace
App\Http\Request
;
class
UserGetByUsernameRequest
extends
FormRequestErrors
class
MS
UserGetByUsernameRequest
extends
FormRequestErrors
{
protected
function
validationData
()
{
...
...
app/Http/Request/UserUpdateRequest.php
→
app/Http/Request/
MS
UserUpdateRequest.php
View file @
d3f2c470
...
...
@@ -8,7 +8,7 @@
namespace
App\Http\Request
;
class
UserUpdateRequest
extends
FormRequestErrors
class
MS
UserUpdateRequest
extends
FormRequestErrors
{
protected
function
validationData
()
{
...
...
routes/web.php
View file @
d3f2c470
...
...
@@ -47,7 +47,7 @@ $router->group(['middleware' => 'client.auth'], function () use ($router) {
$router
->
put
(
'activate'
,
'PackageKeyController@activate'
);
$router
->
put
(
'disable'
,
'PackageKeyController@disable'
);
$router
->
delete
(
'delete'
,
'PackageKeyController@delete'
);
$router
->
get
(
'
by-username
'
,
'PackageKeyController@getByUser'
);
$router
->
get
(
'
get
'
,
'PackageKeyController@getByUser'
);
$router
->
put
(
'update-plan'
,
'PackageKeyController@updatePlan'
);
});
...
...
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