Skip to content

Commit ea28986

Browse files
authored
Merging to release-5.10: Sync Swagger (#854)
Sync Swagger (#854) fixes
1 parent a11bb44 commit ea28986

File tree

2 files changed

+174
-11
lines changed

2 files changed

+174
-11
lines changed

swagger/dashboard-swagger.yml

Lines changed: 114 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ info:
66
url: https://tyk.io/contact
77
description: |2
88
<img src="https://tyk.io/docs/img/swagger_dashboard_image.png" width="963" height="250">
9-
9+
1010
## <a name="introduction"></a> Introduction
1111
1212
The Tyk Dashboard API offers granular, programmatic access to a centralised database of resources that your Tyk nodes can pull from. This API has a dynamic user administrative structure which means the secret key that is used to communicate with your Tyk nodes can be kept secret and access to the wider management functions can be handled on a user-by-user and organisation-by-organisation basis.
@@ -39,7 +39,7 @@ info:
3939
name: Mozilla Public License Version 2.0
4040
url: https://github.com/TykTechnologies/tyk/blob/master/LICENSE.md
4141
title: Tyk Dashboard API
42-
version: 5.9.0
42+
version: 5.10.0
4343
servers:
4444
- url: https://{tenant}
4545
variables:
@@ -175,6 +175,8 @@ tags:
175175
name: Single Sign On
176176
- description: System API.
177177
name: System
178+
- description: Notifications for an organisation
179+
name: Organisation Notifications
178180
paths:
179181
/api/activity/keys/{keyHash}/{startDay}/{startMonth}/{startYear}/{EndDay}/{EndMonth}/{EndYear}:
180182
get:
@@ -1622,7 +1624,7 @@ paths:
16221624
operationId: proxyRequest
16231625
description: |
16241626
Forwards a request to a specified gateway endpoint. This endpoint allows you to send requests to other services through the Tyk gateway, which can be useful for testing or accessing protected resources.
1625-
1627+
16261628
The proxy will forward your request to the specified URL, including any headers and body data you provide. It then returns the response from the target service, including status code, headers, and body.
16271629
tags:
16281630
- Proxy
@@ -3258,6 +3260,16 @@ paths:
32583260
schema:
32593261
$ref: '#/components/schemas/ApiResponse'
32603262
description: API not found.
3263+
"422":
3264+
content:
3265+
application/json:
3266+
example:
3267+
Message: '{apiId} is not recognised'
3268+
Meta: null
3269+
Status: Error
3270+
schema:
3271+
$ref: '#/components/schemas/ApiResponse'
3272+
description: API not recognised.
32613273
summary: List OAS API versions.
32623274
tags:
32633275
- OAS APIs
@@ -4731,11 +4743,13 @@ paths:
47314743
enum:
47324744
- detailed
47334745
type: string
4734-
- description: |-
4735-
Defines the filtering strategy applied to certificate keys.
4736-
This query param works only in combination with detailed mode (mode=detailed).
4737-
omit – Includes all certificates; this is the default behavior.
4738-
with_pk – Returns only certificates that are associated with a private key.
4746+
- description: |-
4747+
Used to apply filtering to the list of certificates returned in the response.
4748+
With this option you are able to filter by certificates that can be used when signing a request (i.e. they contain a private key),
4749+
or those used to validate a signature (i.e. they do not contain a private key, only the public key).
4750+
This query param works only in combination with detailed mode (mode=detailed).
4751+
`omit` (default) – Returns all certificates.
4752+
with_pk – Returns only certificates that include a private key.
47394753
without_pk – Returns only certificates that do not include a private key.
47404754
name: filter
47414755
example: omit
@@ -7783,7 +7797,7 @@ paths:
77837797
- Schemas
77847798
/api/schemas/apidefs/streams-oas:
77857799
get:
7786-
description: Get API definition Streams OAS schema.
7800+
description: Retrieve schema for Tyk Streams APIs, enabling developers and integrators to validate or generate stream-based API definitions programmatically. Optionally select the OAS version and pretty-print formatting.
77877801
operationId: getApidefStreamsOASSchema
77887802
parameters:
77897803
- description: The OAS version.
@@ -9384,8 +9398,8 @@ paths:
93849398
required: false
93859399
schema:
93869400
type: integer
9387-
- description: |
9388-
This parameter filters audit logs based on partially matching the accessed API endpoint's URL path. It allows searching for actions performed on related resources or sections of the API by matching any portion of the URL. The match is case-sensitive and ignores additional path segments or query parameters beyond the matched portion.
9401+
- description: |
9402+
This parameter filters audit logs based on partially matching the accessed API endpoint's URL path. It allows searching for actions performed on related resources or sections of the API by matching any portion of the URL. The match is case-sensitive and ignores additional path segments or query parameters beyond the matched portion.
93899403
For example, if the database contains URLs like `/tib/create`, `/tib/get/1?schema=json`, `/api/schema`, and `/schema1` searching with `url=schema` would return `/api/schema` and `/schema1`.
93909404
example: /api/apis
93919405
in: query
@@ -9573,6 +9587,60 @@ paths:
95739587
summary: Retrieve single audit log
95749588
tags:
95759589
- AuditLogs
9590+
/api/org/notifications:
9591+
get:
9592+
description: Retrieve all notifications that have been issued for a specific Tyk Organisation.
9593+
operationId: getAllOrganisationNotifications
9594+
parameters:
9595+
- description: Setting refresh to true will force the API to refresh the list of notifications.
9596+
example: 'true'
9597+
in: query
9598+
name: refresh
9599+
required: false
9600+
schema:
9601+
type: string
9602+
responses:
9603+
"200":
9604+
content:
9605+
application/json:
9606+
example:
9607+
- id: b52f491a-2946-408b-9330-2736db85705b
9608+
created_at: 2025-08-13T11:16:12.194968+02:00
9609+
org_id: 683d6e6a954737af2aa8e5c2
9610+
hash: '17090217262863020087'
9611+
kind: warning
9612+
topic: certificate.expiry
9613+
title: Certificate will expire soon
9614+
message: Certificate with ID 683d6e6a954737af2aa8e5c20d545f3211d5a53684114dc8b3ebb2503edf6fabf2e5812425be2fa108f3fb4d will expire in less than 18 days
9615+
data:
9616+
cert_id: 683d6e6a954737af2aa8e5c20d545f3211d5a53684114dc8b3ebb2503edf6fabf2e5812425be2fa108f3fb4d
9617+
expiry_date: 2025-08-31T08:41:53Z
9618+
days_remaining: 17
9619+
schema:
9620+
type: array
9621+
items:
9622+
$ref: '#/components/schemas/OrganisationNotification'
9623+
9624+
description: Returns a list of notifications that have been issued for the specified Tyk Organisation.
9625+
"401":
9626+
content:
9627+
application/json:
9628+
example:
9629+
Message: Not authorised
9630+
Meta: null
9631+
Status: Error
9632+
description: Unauthorized
9633+
"403":
9634+
content:
9635+
application/json:
9636+
example:
9637+
Message: 'access denied: You do not have permission to access /api/org/notifications'
9638+
Meta: null
9639+
Status: Error
9640+
description: Forbidden
9641+
summary: Retrieve notifications
9642+
tags:
9643+
- Organisation Notifications
95769644
components:
95779645
examples:
95789646
aggregateAnalytics:
@@ -10978,6 +11046,16 @@ components:
1097811046
pages:
1097911047
type: integer
1098011048
type: object
11049+
CertificateExpiryData:
11050+
properties:
11051+
cert_id:
11052+
type: string
11053+
expiry_date:
11054+
type: string
11055+
days_remaining:
11056+
type: integer
11057+
type: object
11058+
x-go-package: github.com/TykTechnologies/tyk-analytics/dashboard/repository/notification
1098111059
CertificateList:
1098211060
properties:
1098311061
certs:
@@ -12551,6 +12629,31 @@ components:
1255112629
additionalProperties:
1255212630
$ref: '#/components/schemas/ParameterRef'
1255312631
type: object
12632+
OrganisationNotification:
12633+
properties:
12634+
id:
12635+
type: string
12636+
created_at:
12637+
type: string
12638+
org_id:
12639+
type: string
12640+
hash:
12641+
type: string
12642+
kind:
12643+
type: string
12644+
enum: [ "critical", "warning" ]
12645+
topic:
12646+
type: string
12647+
enum: [ "certificate.expiry" ]
12648+
title:
12649+
type: string
12650+
message:
12651+
type: string
12652+
data:
12653+
oneOf:
12654+
- $ref: "#/components/schemas/CertificateExpiryData"
12655+
type: object
12656+
x-go-package: github.com/TykTechnologies/tyk-analytics/dashboard/model
1255412657
PathItem:
1255512658
properties:
1255612659
$ref:

swagger/gateway-swagger.yml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1603,6 +1603,66 @@ paths:
16031603
summary: Invalidate cache.
16041604
tags:
16051605
- Cache Invalidation
1606+
/tyk/cache/jwks/{apiID}:
1607+
delete:
1608+
description: Invalidate JWK cache for the given API.
1609+
operationId: invalidateJWKCache
1610+
parameters:
1611+
- description: The API ID.
1612+
example: ae67bb862a3241a49117508e0f9ee839
1613+
in: path
1614+
name: apiID
1615+
required: true
1616+
schema:
1617+
type: string
1618+
responses:
1619+
"200":
1620+
content:
1621+
application/json:
1622+
example:
1623+
message: cache invalidated
1624+
status: ok
1625+
schema:
1626+
$ref: '#/components/schemas/ApiStatusMessage'
1627+
description: Cache invalidated.
1628+
"403":
1629+
content:
1630+
application/json:
1631+
example:
1632+
message: Attempted administrative access with invalid or missing key!
1633+
status: error
1634+
schema:
1635+
$ref: '#/components/schemas/ApiStatusMessage'
1636+
description: Forbidden
1637+
summary: Invalidate cache for given API ID.
1638+
tags:
1639+
- JWK cache invalidation
1640+
/tyk/cache/jwks:
1641+
delete:
1642+
description: Invalidate JWK cache for all APIs.
1643+
operationId: invalidateJWKCacheForAllAPIs
1644+
responses:
1645+
"200":
1646+
content:
1647+
application/json:
1648+
example:
1649+
message: cache invalidated
1650+
status: ok
1651+
schema:
1652+
$ref: '#/components/schemas/ApiStatusMessage'
1653+
description: Cache invalidated.
1654+
"403":
1655+
content:
1656+
application/json:
1657+
example:
1658+
message: Attempted administrative access with invalid or missing key!
1659+
status: error
1660+
schema:
1661+
$ref: '#/components/schemas/ApiStatusMessage'
1662+
description: Forbidden
1663+
summary: Invalidate JWK cache for all APIs
1664+
tags:
1665+
- JWK cache invalidation
16061666
/tyk/certs:
16071667
get:
16081668
description: List all certificates in the Tyk Gateway.

0 commit comments

Comments
 (0)