|
1 | 1 | { |
2 | 2 | "openapi": "3.0.2", |
3 | 3 | "info": { |
4 | | - "version": "1.11.0", |
| 4 | + "version": "1.11.1", |
5 | 5 | "title": "PodcastIndex.org API", |
6 | 6 | "termsOfService": "https://github.com/Podcastindex-org/legal/blob/main/TermsOfService.md", |
7 | 7 | "contact": { |
|
1519 | 1519 | } |
1520 | 1520 | } |
1521 | 1521 | }, |
| 1522 | + "/pubnotify": { |
| 1523 | + "get": { |
| 1524 | + "tags": [ |
| 1525 | + "Hub" |
| 1526 | + ], |
| 1527 | + "summary": "Pub Notify (Hub)", |
| 1528 | + "description": "Notify the index that a feed has changed\n\n\nNote: No API key needed for this endpoint.\n\n\nExamples:\n\n - https://hub.podcastindex.org/pubnotify?id=920666&pretty\n - https://hub.podcastindex.org/pubnotify?url=https://feeds.theincomparable.com/batmanuniversity&pretty\n", |
| 1529 | + "operationId": "pubnotify", |
| 1530 | + "security": [], |
| 1531 | + "servers": [ |
| 1532 | + { |
| 1533 | + "url": "https://hub.podcastindex.org", |
| 1534 | + "description": "Server for handling feed publish/update notifications" |
| 1535 | + } |
| 1536 | + ], |
| 1537 | + "parameters": [ |
| 1538 | + { |
| 1539 | + "$ref": "#/components/parameters/id_feed_podcast_pi_pubnotify" |
| 1540 | + }, |
| 1541 | + { |
| 1542 | + "$ref": "#/components/parameters/url_pubnotify" |
| 1543 | + }, |
| 1544 | + { |
| 1545 | + "$ref": "#/components/parameters/reason" |
| 1546 | + }, |
| 1547 | + { |
| 1548 | + "$ref": "#/components/parameters/podping" |
| 1549 | + }, |
| 1550 | + { |
| 1551 | + "$ref": "#/components/parameters/pretty" |
| 1552 | + } |
| 1553 | + ], |
| 1554 | + "responses": { |
| 1555 | + "200": { |
| 1556 | + "$ref": "#/components/responses/hub_pubnotify" |
| 1557 | + }, |
| 1558 | + "400": { |
| 1559 | + "$ref": "#/components/responses/400" |
| 1560 | + }, |
| 1561 | + "401": { |
| 1562 | + "$ref": "#/components/responses/401" |
| 1563 | + } |
| 1564 | + } |
| 1565 | + } |
| 1566 | + }, |
1522 | 1567 | "/hub/pubnotify": { |
1523 | 1568 | "get": { |
1524 | 1569 | "tags": [ |
|
1535 | 1580 | { |
1536 | 1581 | "$ref": "#/components/parameters/url_pubnotify" |
1537 | 1582 | }, |
| 1583 | + { |
| 1584 | + "$ref": "#/components/parameters/reason_liveonly" |
| 1585 | + }, |
1538 | 1586 | { |
1539 | 1587 | "$ref": "#/components/parameters/pretty" |
1540 | 1588 | } |
|
2271 | 2319 | }, |
2272 | 2320 | "example": "https://feeds.theincomparable.com/batmanuniversity" |
2273 | 2321 | }, |
| 2322 | + "reason": { |
| 2323 | + "name": "reason", |
| 2324 | + "in": "query", |
| 2325 | + "description": "Send a [podping](https://github.com/Podcastindex-org/podping-hivewriter#podping-reasons) with the specified reason.\n\n\nTo just send an `update` podping, the `podping` parameter can be used instead.\n", |
| 2326 | + "schema": { |
| 2327 | + "type": "string", |
| 2328 | + "enum": [ |
| 2329 | + "", |
| 2330 | + "live", |
| 2331 | + "liveEnd" |
| 2332 | + ] |
| 2333 | + }, |
| 2334 | + "example": "" |
| 2335 | + }, |
| 2336 | + "podping": { |
| 2337 | + "name": "podping", |
| 2338 | + "in": "query", |
| 2339 | + "description": "Send a [podping](https://github.com/Podcastindex-org/podping-hivewriter#podping-reasons) with an `update` reason.\n\n\nParameter shall not have a value\n", |
| 2340 | + "schema": { |
| 2341 | + "type": "boolean" |
| 2342 | + }, |
| 2343 | + "allowEmptyValue": true |
| 2344 | + }, |
| 2345 | + "reason_liveonly": { |
| 2346 | + "name": "reason", |
| 2347 | + "in": "query", |
| 2348 | + "description": "Send a [podping](https://github.com/Podcastindex-org/podping-hivewriter#podping-reasons) with the specified reason.\n\n\nTo just send an `update` podping, use the [https://hub.podcastindex.org/pubnotify](#get-/pubnotify) server instead.\n", |
| 2349 | + "schema": { |
| 2350 | + "type": "string", |
| 2351 | + "enum": [ |
| 2352 | + "", |
| 2353 | + "live", |
| 2354 | + "liveEnd" |
| 2355 | + ] |
| 2356 | + }, |
| 2357 | + "example": "" |
| 2358 | + }, |
2274 | 2359 | "chash": { |
2275 | 2360 | "name": "chash", |
2276 | 2361 | "in": "query", |
|
0 commit comments