How to use wildcard parameters in endpoint URI

How to use wildcard parameters in endpoint URI

book

Article ID: KB0080048

calendar_today

Updated On:

Products Versions
TIBCO Cloud API Management - Local Edition -

Description

While configuring APIs in Mashery, you may need to use wildcard entries in the URI request path or query parameters instead of configuring a individual set of API endpoint configs for each such entry.

Wild-card parameters in end-point paths allow you the right type of flexibility with your end-point setup and Mashery has the capabilities to allow such wildcards in the URI.

Issue/Introduction

This article describes using wildcard parameters in endpoint URI

Resolution

You can simply use a meaningful parameter to denote the wildcard parameter in the request path or query parameter indicated in a '{}'

Example Request path: /abc/{id}/request

When a request comes in with a request path /abc/123/request, Mashery maps the wildcard and matches it to {id} and rightly identifies the correct endpoint.