Skip to content

Commit 67691c1

Browse files
authored
Merge pull request #174741 from bengimblett/patch-3
additional Question explaining trailing slashes
2 parents 7b61f0b + fd3acd9 commit 67691c1

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

articles/api-management/api-management-faq.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ metadata:
1515
ms.topic: article
1616
ms.date: 11/19/2017
1717
ms.author: danlep
18-
ms.custom: devx-track-azurepowershell
18+
ms.custom: devx-track-azurepowershell, fasttrack-edit
1919

2020
title: Azure API Management FAQs
2121
summary: |
@@ -146,3 +146,9 @@ sections:
146146
Are there restrictions on or known issues with importing my API?
147147
answer: |
148148
[Known issues and restrictions](api-management-api-import-restrictions.md) for Open API(Swagger), WSDL and WADL formats.
149+
150+
- question: |
151+
How does API Management handle trailing slashes when calling backend services?
152+
answer: |
153+
Historically and by convention a URL ending with a trailing slash is treated as a Directory, for example "https://contoso.com/sample/" whereas the same URL without the trailing slash "https://contoso.com/sample" would be indicative of a file. This is not mandated, so some systems will consider those two URLs unique, whilst others will consider them the same URL. API Management doesn’t make a distinction thus a single operation "resource" will accept "resource" and "resource/". However, whilst the distinction doesn’t matter to API Management it may matter to the backend host. Some web servers will automatically redirect a URL not ending with a trailing slash, to the same URL ending in a trailing slash. As API Management is the client to the backend (server) an automatic redirect is not always desirable. If needed create a [Rewrite URL policy](api-management-transformation-policies.md#RewriteURL) to ensure a trailing slash is always added to the outbound backend call.
154+

0 commit comments

Comments
 (0)