docs: def get_resource(self, session, query, api_type, obj_id):
          """
          Fetch a resource.
  
          :param session: SQLAlchemy session
          :param query: Dict of query args
          :param api_type: Type of the resource
          :param obj_id: ID of the resource
          """
          resource = self._fetch_resource(session, api_type, obj_id,
                                          Permissions.VIEW)
          include = self._parse_include(query.get('include', '').split(','))
          fields = self._parse_fields(query)
  
          response = JSONAPIResponse()
  
          built = self._render_full_resource(resource, include, fields)
  
          response.data['included'] = list(built.pop('included').values())
          response.data['data'] = built
  
          return response