reslang icon indicating copy to clipboard operation
reslang copied to clipboard

MULTIGET return subset of resource

Open conrs opened this issue 5 years ago • 0 comments

We had a need to return a summary of a resource for a paginated route, as parts of the resource are heavier to retrieve than others.

Unfortunately, when we implemented this, reslang did not support this functionality. I am not sure of it's current state.

e.g.

// structure
cat {
  id: number
  name: string
  food_level: number 
  meow_count: number
}

// but paginated should return 
{ id, name }

conrs avatar Sep 23 '20 22:09 conrs