diff --git a/sections/designRules.md b/sections/designRules.md index abddf71..b4482bb 100644 --- a/sections/designRules.md +++ b/sections/designRules.md @@ -82,12 +82,13 @@ https://api.example.org/v1/vergunningen/d285e05c-6b01-45c3-92d8-5e19a946b66f -
-

Leave off trailing slashes from URIs

+ +
+

Avoid empty path segments from URIs

Statement
- A [=URI=] MUST NOT contain a trailing slash. When requesting a resource including a trailing slash, this MUST result in a `404` (not found) error response and not a redirect. This forces API consumers to use the correct [=URI=]. + A [=URI=] MUST NOT contain empty path segments. When requesting a resource including a trailing slash or consecutive slashes, this MUST result in a `404` (not found) error response and not a redirect. This forces API consumers to use the correct [=URI=].
This rule does not apply to the root resource (append / to the service root URL).