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

Defining resource-level action on a subresource removes the parentId from the path #30

Closed lmossman closed 4 years ago

lmossman commented 4 years ago

Currently, if I define a resource-level action on a subresource like this:

sync resource-level action Audience::Field::Disable {
  id: int

  "IDs of Fields to disable."
  fieldIDs: long[]

  /operations
    POST
} 

then the route that gets produced looks like:

/v1/audiences/fields/actions/disable

This route is missing the parent {audienceId} path parameter. It should produce a route that looks like:

/v1/audiences/{audienceId}/fields/actions/disable
liveandrew commented 4 years ago

corrected in release v1.1.0 https://github.com/LiveRamp/reslang/commit/625a90bcfa9caa03a2c7a31a90c50aa14fc21377

liveandrew commented 4 years ago

please check and reopen if this doesn't meet your swagger needs ;-P