-
Notifications
You must be signed in to change notification settings - Fork 33
Add API Backend form help text
This page contains a section for each field on the Add API Backend form. Within each section is existing or suggested help text.
- Current: API's name
- Proposed: Enter a name which describes your API the best way.
Define the server where the API is hosted. Multiple servers can be defined to perform load balancing.
- Current:
- Proposed:
- Current: Choose backend server protocol
- Proposed: Choose the protocol used by your API (e.g. http or https)
- Current: Define the server where the API is hosted. Host field is for URL of your API without 'http(s)'
- Proposed:
- Proposed: Host where your API is located.
Define the host that we will listen for, and then the host the API backend is listening for.
- Current:
- Proposed:
- Current:
- Proposed:
- Current:
- Proposed:
- Current: Define the server where the API Umbrella instance is hosted. If API Umbrella installed locally, enter localhost as your Backend host.
- Proposed:
- Current: Define the server where the API is hosted.
- Proposed:
What URL prefixes should be routed to this backend?
- Current:
- Proposed:
Matching URL Prefixes in API Umbrella
Tip: We recommend using trailing slashes when configuring these URL prefixes when possible (for example, using /wind/ instead of /wind). While not necessary, this helps prevent future overlapping conflicts (for example, if someone later wants to set up /windmill/).
Example: Incoming Frontend Request: http://api.data.govexample.json?param=value Outgoing Backend Request: http://api.data.govexample.json?param=value
- Current:
Tip: We recommend using trailing slashes when configuring these URL prefixes when possible (for example, using /wind/ instead of /wind). While not necessary, this helps prevent future overlapping conflicts (for example, if someone later wants to set up /windmill/).
Example: Incoming Frontend Request: http://api.data.govexample.json?param=value Outgoing Backend Request: http://api.data.govexample.json?param=value
- Proposed:
- Current:
- Proposed:
- Current:
- Proposed:
- Current:
- Proposed:
- Current:
- Proposed:
- Current:
- Proposed:
- Current:
- Proposed:
- Current:
- Proposed:
- Current:
- Proposed:
Placeholder text:
param1=value¶m2=value
- Current:
- Proposed:
Field name: Set Request Headers
Placeholder text:
X-Example-Header: value
- Current:
- Proposed:
Placeholder text:
username:password
- Current:
- Proposed:
Define header values that will be set in the response regardless of whether the header is already set in the response.
For example, to set default CORS headers on all responses that don"t explicitly set their own CORS headers:
Access-Control-Allow-Origin: *
- key -- example
- value -- example
- Inherit (default - required & return message)
- [default?]
- Required & return message - HTTP requests will receive a message to use HTTPS
- required_return_error
- Required & return redirects - HTTP requests will be redirected to HTTPS
- required_return_redirect
- Transitionary & return message - Optional for existing API keys, required for new API keys
- transition_return_error
- Transitionary & return redirects - Optional for existing API keys, required for new API keys
- transition_return_redirect
- Optional - HTTPS is optional
- optional
- Current:
- Proposed:
- key
- value
- Inherit (default - required)
- [default?]
- Required - API keys are mandatory
- [required?]
- Disabled - API keys are optional
- value
- Current:
- Proposed:
- Current:
- Proposed:
- Current:
- Proposed:
- Current:
- Proposed:
- key
- value
- Default rate limits
- [default?]
- Custom rate limits
- custom
- Unlimited requests
- unlimited
- Current:
- Proposed:
Help text:
Define header values that will be set in the response regardless of whether the header is already set in the response.
For example, to set default CORS headers on all responses that don"t explicitly set their own CORS headers:
Access-Control-Allow-Origin: *
Placeholder text:
X-Example-Header: value
Not currently implemented (Issue #503)
Help text:
Define header values that will be set in the response regardless of whether the header is already set in the response.
For example, to force CORS headers on all responses:
Access-Control-Allow-Origin: *
Placeholder text:
X-Example-Header: value
Not currently implemented (Issue #504)
Modify the incoming request's URL or headers before passing it to the backend.
- Current:
- Proposed:
- Current:
- Proposed:
- Current:
- Proposed:
- Current:
- Proposed:
- Current:
- Proposed:
- Current:
- Proposed:
- Current:
- Proposed:
- key example
- value example
- Least Connections
- least_conn
- Round Robin
- round_robin
- Source IP Hash
- ip_hash
- Current:
- Proposed:
- Current:
- Proposed:
A Handlebars template of the JSON error response. Available Handlebars variables are defined below in the Error Data section.
Default template:
{ "error": { "code": {{code}}, "message": {{message}} } }
- Current:
- Proposed:
A Handlebars template of the XML error response. Available Handlebars variables are defined below in the Error Data section.
Default template:
<?xml version="1.0" encoding="UTF-8"?> <response> <error> <code>{{code}}</code> <message>{{message}}</message> </error> </response>
- Current:
- Proposed:
A Handlebars template of the CSV error response. Available Handlebars variables are defined below in the Error Data section.
Default template:
Error Code,Error Message {{code}},{{message}}
- Current:
- Proposed: