Skip to content
This repository has been archived by the owner on Feb 17, 2024. It is now read-only.

Refine trailing slash behavior. #580

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions versions/raml-10/raml-10.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down