/**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     $resources = ApiResource::all();
     if (Input::get('full', false)) {
         return $this->response->withCollection($resources, new ApiResourceTransformer());
     } else {
         return $this->response->withCollection($resources, new SimpleApiResourceTransformer());
     }
 }
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index($id)
 {
     $resources = ApiResource::find($id);
     $endpoints = $resources->endpoints;
     return $this->response->withCollection($endpoints, new EndpointTransformer());
 }