LiveRamp / reslang

A language for describing resource-oriented APIs & turning them into Swagger or resource diagrams. Oriented around the concepts we want to expose in the APIs.
Apache License 2.0
23 stars 7 forks source link

MULTIGET return subset of resource #113

Open conrs opened 4 years ago

conrs commented 4 years ago

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 }