From 9749e8b88f62fd49faf806673b1a304f9da32667 Mon Sep 17 00:00:00 2001 From: Tom Christie Date: Thu, 6 Oct 2016 11:59:21 +0100 Subject: [PATCH] Refine trailing slash behavior --- versions/raml-10/raml-10.md | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/versions/raml-10/raml-10.md b/versions/raml-10/raml-10.md index c5b5b778..2d2d4e1a 100644 --- a/versions/raml-10/raml-10.md +++ b/versions/raml-10/raml-10.md @@ -317,13 +317,12 @@ baseUri: http://api.test.com/common/ /groups: ``` -In the following, more complicated example with consecutive slashes in multiple places, only trailing slashes in the base URI are collapsed, leading to these absolute paths to resources: `//api.test.com//common/`, `//api.test.com//common//users/`, and `//api.test.com//common//users//groups//`. +Similarly, when a path component ends in one or more slashes (`/`), those trailing slashes are omitted when appended to subsequent path components. For example, in the following snippet, the absolute paths for the resources are `http://api.test.com/common/users/`, and `http://api.test.com/common/users/groups/`. ```yaml -baseUri: //api.test.com//common// -/: - /users/: - /groups//: +baseUri: http://api.test.com/common/ +/users/: + /groups/: ``` ### Protocols