Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

It is often desirable to reuse metadata definitions across multiple files, or even within different blocks in the same file. For example, if lets say you want to expose the following end pointsendpoints:

Code Block
GET /Examples/Products
GET /Examples/Products/{productId}

Both of these end points endpoints would have very similar output. The first one would return a collection of objects while the second would return a single object. But the structure of those objects would likely be the same.  Each object would have a name, description, price, etc.  

...