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!
4 thoughts on “RAML 1.0 Multiple Types for a Single Request”
  1. Wonderful goods from you, man. I have consider your stuff previous to and you are simply extremely excellent. I actually like what you’ve received right here, certainly like what you are saying and the way wherein you assert it. You’re making it enjoyable and you still take care of to stay it wise. I can not wait to learn far more from you. This is actually a terrific site.

Leave a Reply

Your email address will not be published. Required fields are marked *