I was looking at some RAML APIs examples for version (1.0 http://docs.raml.org/apis/media-wiki/) and I noticed that the the first resource (
/) declares 4 methods with the same key
If I am understanding RAML 1.0 specification correctly, this shouldn’t be allowed.
Property names, also known as Keys, at given levels are not repeatable. Although YAML allows such repetition duplicate-keys will overwriting previously specified values.
So the question is, is this valid? Is there any way to define multiple
get methods inside the same resource? Does this limitation applies to other sections such as query parameters or headers?