URI Schemes
Use this policy to bridge the transport protocols between the client and the gateway.
This policy specifies the protocol used for incoming requests to the API. If your native API requires clients to communicate with the server over HTTP or HTTPS, you can configure the allowed URI schemes to ensure that requests use the required protocols.
For example, you have a native API that is made available over HTTPS and an API that receives requests over HTTP. If you want to make the API available to the consumers through HTTP, then you configure the incoming protocol as HTTP.
In IBM API Studio, URISchemes
denotes the policy kind for enabling HTTP/HTTPS.
Example of a URI Schemes policy:
kind: URISchemes
apiVersion: api.ibm.com/v1
metadata:
name: URI
namespace: wm_policies
version: '1.0'
tags: []
description: ''
spec:
uriSchemes:
- http
- https
For the URISchemes policy kind, configure these specifications:
| Property | Description |
|---|---|
spec |
Denotes the various specifications that you can configure for this policy.
|