Skip to content

Commit

Permalink
Fix api resource response
Browse files Browse the repository at this point in the history
  • Loading branch information
ThaminduR committed Oct 12, 2023
1 parent 64a272d commit ba84961
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -171,12 +171,17 @@ public APIResourceListResponse getAPIResources(String before, String after, Stri
}

/**
* Get API Resource by ID.
* Get API Resource Response by ID.
*
* @param apiResourceID API Resource ID.
* @param apiResourceId API Resource ID.
* @return API Resource.
*/
public APIResource getAPIResourceById(String apiResourceID) {
public APIResourceResponse getAPIResourceResponseById(String apiResourceId) {

return buildAPIResourceResponse(getAPIResourceById(apiResourceId));
}

private APIResource getAPIResourceById(String apiResourceID) {

try {
APIResource apiResource = APIResourceManagementServiceHolder.getApiResourceManager()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ public Response apiResourcesApiResourceIdDelete(String apiResourceId) {
@Override
public Response apiResourcesApiResourceIdGet(String apiResourceId) {

return Response.ok().entity(serverAPIResourceManagementService.getAPIResourceById(apiResourceId)).build();
return Response.ok().entity(
serverAPIResourceManagementService.getAPIResourceResponseById(apiResourceId)).build();
}

@Override
Expand Down

0 comments on commit ba84961

Please sign in to comment.