Nav

To Customize the API Console URL

This procedure explains how to customize the URL for browser-based API Console. To use the mocking server and simulate calls to the API, you need API Console. If you do not customize the URL for API Console, you open a browser, and go to /console.

  1. In Studio, select the Configuration XML tab.

  2. Change the console path in the path attribute in this part of the code:

    
              
           
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    
    <flow name="api-console">
        <http:listener config-ref="httpListenerConfigDefault" path="/console/*">
            <http:response statusCode="#[vars.httpStatus default 200]">
                <http:headers>#[vars.outboundHeaders default {}]</http:headers>
            </http:response>
    
    ...
    
        </http:listener>
        <apikit:console config-ref="api-config" />
    </flow>
  3. Change the host and port by editing the listener-config.

We use cookies to make interactions with our websites and services easy and meaningful, to better understand how they are used and to tailor advertising. You can read more and make your cookie choices here. By continuing to use this site you are giving us your consent to do this.

+