@netlify/open-api 2.23.1 → 2.23.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/swagger.json +70 -1
- package/package.json +1 -1
package/dist/swagger.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"swagger": "2.0",
|
|
3
3
|
"info": {
|
|
4
|
-
"version": "2.23.
|
|
4
|
+
"version": "2.23.2",
|
|
5
5
|
"title": "Netlify's API documentation",
|
|
6
6
|
"description": "Netlify is a hosting service for the programmable web. It understands your documents and provides an API to handle atomic deploys of websites, manage form submissions, inject JavaScript snippets, and much more. This is a REST-style API that uses JSON for serialization and OAuth 2 for authentication.\n\nThis document is an OpenAPI reference for the Netlify API that you can explore. For more detailed instructions for common uses, please visit the [online documentation](https://www.netlify.com/docs/api/). Visit our Community forum to join the conversation about [understanding and using Netlify’s API](https://community.netlify.com/t/common-issue-understanding-and-using-netlifys-api/160).\n\nAdditionally, we have two API clients for your convenience:\n- [Go Client](https://github.com/netlify/open-api#go-client)\n- [JS Client](https://github.com/netlify/build/tree/main/packages/js-client)",
|
|
7
7
|
"termsOfService": "https://www.netlify.com/legal/terms-of-use/",
|
|
@@ -4467,6 +4467,53 @@
|
|
|
4467
4467
|
}
|
|
4468
4468
|
}
|
|
4469
4469
|
},
|
|
4470
|
+
"/purge": {
|
|
4471
|
+
"post": {
|
|
4472
|
+
"operationId": "purgeCache",
|
|
4473
|
+
"description": "Purges cached content from Netlify's CDN. Supports purging by Cache-Tag.",
|
|
4474
|
+
"tags": [
|
|
4475
|
+
"purge"
|
|
4476
|
+
],
|
|
4477
|
+
"consumes": [
|
|
4478
|
+
"application/json"
|
|
4479
|
+
],
|
|
4480
|
+
"parameters": [
|
|
4481
|
+
{
|
|
4482
|
+
"name": "payload",
|
|
4483
|
+
"in": "body",
|
|
4484
|
+
"schema": {
|
|
4485
|
+
"type": "object",
|
|
4486
|
+
"properties": {
|
|
4487
|
+
"site_id": {
|
|
4488
|
+
"type": "string"
|
|
4489
|
+
},
|
|
4490
|
+
"site_slug": {
|
|
4491
|
+
"type": "string"
|
|
4492
|
+
},
|
|
4493
|
+
"cache_tags": {
|
|
4494
|
+
"type": "array",
|
|
4495
|
+
"items": {
|
|
4496
|
+
"type": "string"
|
|
4497
|
+
}
|
|
4498
|
+
}
|
|
4499
|
+
}
|
|
4500
|
+
},
|
|
4501
|
+
"required": true
|
|
4502
|
+
}
|
|
4503
|
+
],
|
|
4504
|
+
"responses": {
|
|
4505
|
+
"202": {
|
|
4506
|
+
"description": "OK"
|
|
4507
|
+
},
|
|
4508
|
+
"400": {
|
|
4509
|
+
"description": "Invalid request parameters"
|
|
4510
|
+
},
|
|
4511
|
+
"404": {
|
|
4512
|
+
"description": "Site not found"
|
|
4513
|
+
}
|
|
4514
|
+
}
|
|
4515
|
+
}
|
|
4516
|
+
},
|
|
4470
4517
|
"/sites/{site_id}/snippets": {
|
|
4471
4518
|
"parameters": [
|
|
4472
4519
|
{
|
|
@@ -15447,6 +15494,23 @@
|
|
|
15447
15494
|
}
|
|
15448
15495
|
}
|
|
15449
15496
|
},
|
|
15497
|
+
"purge": {
|
|
15498
|
+
"type": "object",
|
|
15499
|
+
"properties": {
|
|
15500
|
+
"site_id": {
|
|
15501
|
+
"type": "string"
|
|
15502
|
+
},
|
|
15503
|
+
"site_slug": {
|
|
15504
|
+
"type": "string"
|
|
15505
|
+
},
|
|
15506
|
+
"cache_tags": {
|
|
15507
|
+
"type": "array",
|
|
15508
|
+
"items": {
|
|
15509
|
+
"type": "string"
|
|
15510
|
+
}
|
|
15511
|
+
}
|
|
15512
|
+
}
|
|
15513
|
+
},
|
|
15450
15514
|
"deploy": {
|
|
15451
15515
|
"type": "object",
|
|
15452
15516
|
"properties": {
|
|
@@ -16985,6 +17049,7 @@
|
|
|
16985
17049
|
"environmentVariables",
|
|
16986
17050
|
"file",
|
|
16987
17051
|
"metadata",
|
|
17052
|
+
"purge",
|
|
16988
17053
|
"snippet"
|
|
16989
17054
|
]
|
|
16990
17055
|
},
|
|
@@ -17105,6 +17170,10 @@
|
|
|
17105
17170
|
"name": "snippet",
|
|
17106
17171
|
"x-displayName": "Snippet"
|
|
17107
17172
|
},
|
|
17173
|
+
{
|
|
17174
|
+
"name": "purge",
|
|
17175
|
+
"x-displayName": "Cache purge"
|
|
17176
|
+
},
|
|
17108
17177
|
{
|
|
17109
17178
|
"name": "dnsZone",
|
|
17110
17179
|
"x-displayName": "DNS zone"
|