Adsense

December 16, 2020

RAML 1.0 Multiple Types for a Single Request

 Bonjour!

You must have come across a situation where you need to define two different Types for a particular resource in your RAML specification.

In this article, I'll show you how to do that!

you can define multiple Types using the pipe symbol ("|") as follows: 

The request Types can be defined in the header of the RAML. The examples can be specified using facet "examples" and added in the form of either files using the keyword "include" or the example itself.
 



Adios amigos!

No comments:

Post a Comment