Skip to content
This repository was archived by the owner on Nov 28, 2025. It is now read-only.

Commit 5d7c58a

Browse files
jay-deshmukhgithub-actions[bot]
authored andcommitted
Import config/docs
1 parent c1958a8 commit 5d7c58a

File tree

3 files changed

+63
-48
lines changed

3 files changed

+63
-48
lines changed

tyk-docs/assets/others/gateway-swagger.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ info:
3333
name: Mozilla Public License Version 2.0
3434
url: https://github.com/TykTechnologies/tyk/blob/master/LICENSE.md
3535
title: Tyk Gateway API
36-
version: 5.9.0
36+
version: 5.10.1
3737
servers:
3838
- url: https://{tenant}
3939
variables:

tyk-docs/content/shared/gateway-config.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,18 @@ A value of zero (default) means that no maximum is set and API requests will not
323323
See more information about setting request size limits here:
324324
https://tyk.io/docs/api-management/traffic-transformation/#request-size-limits
325325

326+
### http_server_options.max_response_body_size
327+
ENV: <b>TYK_GW_HTTPSERVEROPTIONS_MAXRESPONSEBODYSIZE</b><br />
328+
Type: `int64`<br />
329+
330+
MaxResponseBodySize configures an upper limit for the size of the response body (payload) in bytes.
331+
332+
This limit is currently applied only if the Response Body Transform middleware is enabled.
333+
334+
The Gateway will return `HTTP 500 Response Body Too Large` if the response payload exceeds MaxResponseBodySize+1 bytes.
335+
336+
A value of zero (default) means that no maximum is set and response bodies will not be limited.
337+
326338
### version_header
327339
ENV: <b>TYK_GW_VERSIONHEADER</b><br />
328340
Type: `string`<br />

tyk-docs/content/shared/x-tyk-gateway.md

Lines changed: 50 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,10 @@ Active enables the API so that Tyk will listen for and process requests made to
204204
Tyk classic API definition: `active`.
205205

206206
**Field: `internal` (`boolean`)**
207-
This field controls the exposure of the API on the Gateway. When set to `true`, the API will not be made available for external access and will not be included in API listings returned by the Gateway's management APIs; it will be accessible only via [internal looping]({{< ref "advanced-configuration/transform-traffic/looping" >}}) or as a [child API version]({{< ref "api-management/api-versioning#base-and-child-apis" >}}).
207+
Internal controls the exposure of the API on the Gateway.
208+
When set to `true`, the API will not be made available for external access and will not be included in API listings returned by the Gateway's management APIs;
209+
it will be accessible only via [internal looping]({{< ref "advanced-configuration/transform-traffic/looping" >}}) or as a [child API version]({{< ref "api-management/api-versioning#base-and-child-apis" >}}).
210+
208211

209212
Tyk classic API definition: `internal`.
210213

@@ -874,7 +877,7 @@ Tyk classic API definition: `dont_set_quota_on_create`.
874877

875878
### **Operations**
876879

877-
Operations holds Operation definitions. The string key in this object is the `operationID`, which is a unique identifier for each API operation.
880+
Operations holds Operation definitions. The string key in this object is the `operationID`, which is a unique identifier for each API operation.
878881

879882
Type defined as object of `Operation` values, see [Operation](#operation) definition.
880883

@@ -1706,6 +1709,46 @@ Value is the value of custom plugin config data.
17061709

17071710
Tyk classic API definition: `config_data`.
17081711

1712+
### **CustomPlugin**
1713+
1714+
CustomPlugin configures custom plugin.
1715+
1716+
**Field: `enabled` (`boolean`)**
1717+
Enabled activates the custom plugin.
1718+
1719+
1720+
Tyk classic API definition: `custom_middleware.pre[].disabled`, `custom_middleware.post_key_auth[].disabled`,.
1721+
`custom_middleware.post[].disabled`, `custom_middleware.response[].disabled` (negated).
1722+
1723+
**Field: `functionName` (`string`)**
1724+
FunctionName is the name of authentication method.
1725+
1726+
1727+
Tyk classic API definition: `custom_middleware.pre[].name`, `custom_middleware.post_key_auth[].name`,.
1728+
`custom_middleware.post[].name`, `custom_middleware.response[].name`.
1729+
1730+
**Field: `path` (`string`)**
1731+
Path is the path to shared object file in case of goplugin mode or path to JS code in case of otto auth plugin.
1732+
1733+
1734+
Tyk classic API definition: `custom_middleware.pre[].path`, `custom_middleware.post_key_auth[].path`,.
1735+
`custom_middleware.post[].path`, `custom_middleware.response[].path`.
1736+
1737+
**Field: `rawBodyOnly` (`boolean`)**
1738+
RawBodyOnly if set to true, do not fill body in request or response object.
1739+
1740+
1741+
Tyk classic API definition: `custom_middleware.pre[].raw_body_only`, `custom_middleware.post_key_auth[].raw_body_only`,.
1742+
`custom_middleware.post[].raw_body_only`, `custom_middleware.response[].raw_body_only`.
1743+
1744+
**Field: `requireSession` (`boolean`)**
1745+
RequireSession if set to true passes down the session information for plugins after authentication.
1746+
RequireSession is used only with JSVM custom middleware.
1747+
1748+
1749+
Tyk classic API definition: `custom_middleware.pre[].require_session`, `custom_middleware.post_key_auth[].require_session`,.
1750+
`custom_middleware.post[].require_session`, `custom_middleware.response[].require_session`.
1751+
17091752
### **Headers**
17101753

17111754
Headers is an array of Header.
@@ -1801,46 +1844,6 @@ Name is the name of the header.
18011844
**Field: `value` (`string`)**
18021845
Value is the value of the header.
18031846

1804-
### **CustomPlugin**
1805-
1806-
CustomPlugin configures custom plugin.
1807-
1808-
**Field: `enabled` (`boolean`)**
1809-
Enabled activates the custom plugin.
1810-
1811-
1812-
Tyk classic API definition: `custom_middleware.pre[].disabled`, `custom_middleware.post_key_auth[].disabled`,.
1813-
`custom_middleware.post[].disabled`, `custom_middleware.response[].disabled` (negated).
1814-
1815-
**Field: `functionName` (`string`)**
1816-
FunctionName is the name of authentication method.
1817-
1818-
1819-
Tyk classic API definition: `custom_middleware.pre[].name`, `custom_middleware.post_key_auth[].name`,.
1820-
`custom_middleware.post[].name`, `custom_middleware.response[].name`.
1821-
1822-
**Field: `path` (`string`)**
1823-
Path is the path to shared object file in case of goplugin mode or path to JS code in case of otto auth plugin.
1824-
1825-
1826-
Tyk classic API definition: `custom_middleware.pre[].path`, `custom_middleware.post_key_auth[].path`,.
1827-
`custom_middleware.post[].path`, `custom_middleware.response[].path`.
1828-
1829-
**Field: `rawBodyOnly` (`boolean`)**
1830-
RawBodyOnly if set to true, do not fill body in request or response object.
1831-
1832-
1833-
Tyk classic API definition: `custom_middleware.pre[].raw_body_only`, `custom_middleware.post_key_auth[].raw_body_only`,.
1834-
`custom_middleware.post[].raw_body_only`, `custom_middleware.response[].raw_body_only`.
1835-
1836-
**Field: `requireSession` (`boolean`)**
1837-
RequireSession if set to true passes down the session information for plugins after authentication.
1838-
RequireSession is used only with JSVM custom middleware.
1839-
1840-
1841-
Tyk classic API definition: `custom_middleware.pre[].require_session`, `custom_middleware.post_key_auth[].require_session`,.
1842-
`custom_middleware.post[].require_session`, `custom_middleware.response[].require_session`.
1843-
18441847
### **IDExtractorConfig**
18451848

18461849
IDExtractorConfig specifies the configuration for ID extractor.
@@ -2028,7 +2031,7 @@ Supported types:
20282031
- exact_match: validates that the claim in the JWT equals one of the allowed values (case-sensitive).
20292032
- contains: validates that the claim in the JWT contains one of the allowed values.
20302033

2031-
**Field: `allowedValues` (`[]&ast.InterfaceType{Interface:194869, Methods:(*ast.FieldList)(0xc000371170), Incomplete:false}`)**
2034+
**Field: `allowedValues` (`[]string|int|boolean|array`)**
20322035
AllowedValues contains the values that Tyk will use to validate the claim for "exact_match" and "contains" validation types.
20332036
Not used for "required" validation type.
20342037
Supports string, number, boolean, and array values.
@@ -2227,7 +2230,7 @@ JWK represents a JSON Web Key Set containing configuration for the JWKS endpoint
22272230
**Field: `url` (`string`)**
22282231
URL is the JWKS endpoint.
22292232

2230-
**Field: `cacheTimeout` (`int64`)**
2233+
**Field: `cacheTimeout` (`string`)**
22312234
CacheTimeout defines how long the JWKS will be kept in the cache before forcing a refresh from the JWKS endpoint.
22322235

22332236
### **JWT**
@@ -2507,6 +2510,7 @@ Block request by allowance.
25072510
**Field: `ignoreAuthentication` ([Allowance](#allowance))**
25082511
IgnoreAuthentication ignores authentication on request by allowance.
25092512

2513+
25102514
Tyk classic API definition: version_data.versions..extended_paths.ignored[].
25112515

25122516
**Field: `internal` ([Internal](#internal))**
@@ -2599,8 +2603,6 @@ Connect holds plugin configuration for CONNECT requests.
25992603
### **Paths**
26002604

26012605
Paths is a mapping of API endpoints to Path plugin configurations. This field is part of the [Middleware](#middleware) structure.
2602-
2603-
26042606
The string keys in this object represent URL path patterns (e.g. `/users`, `/users/{id}`, `/api/*`) that match API endpoints.
26052607

26062608
Type defined as object of `Path` values, see [Path](#path) definition.
@@ -2618,7 +2620,8 @@ Block request by allowance.
26182620
**Field: `ignoreAuthentication` ([Allowance](#allowance))**
26192621
IgnoreAuthentication ignores authentication on request by allowance.
26202622

2621-
Tyk Classic API definition: version_data.versions..extended_paths.ignored[].
2623+
2624+
Tyk classic API definition: version_data.versions..extended_paths.ignored[].
26222625

26232626
**Field: `transformRequestMethod` ([TransformRequestMethod](#transformrequestmethod))**
26242627
TransformRequestMethod allows you to transform the method of a request.

0 commit comments

Comments
 (0)