Contact Us 1-800-596-4880

Configure the Service URI

Deployments behind a load balancer or API proxy often rewrite public URLs; APIkit for REST must emit links and metadata that match what clients see. Set Keep RAML/OAS base URI (the keepApiBaseUri attribute on apikit:config) so the base URI in your RAML or OpenAPI Specification stays aligned with the gateway address.

Set keepApiBaseUri to true in XML:

<apikit:config  name="api-config"
                api="api.raml"
                outboundHeadersMapName="outboundHeaders"
                httpStatusVarName="httpStatus"
                keepApiBaseUri="true" />