|
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": {
|
|
1516 | 1516 | }
|
1517 | 1517 | }
|
1518 | 1518 | },
|
| 1519 | + "/pubnotify": { |
| 1520 | + "get": { |
| 1521 | + "tags": [ |
| 1522 | + "Hub" |
| 1523 | + ], |
| 1524 | + "summary": "Pub Notify (Hub)", |
| 1525 | + "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", |
| 1526 | + "operationId": "pubnotify", |
| 1527 | + "security": [], |
| 1528 | + "servers": [ |
| 1529 | + { |
| 1530 | + "url": "https://hub.podcastindex.org", |
| 1531 | + "description": "Server for handling feed publish/update notifications" |
| 1532 | + } |
| 1533 | + ], |
| 1534 | + "parameters": [ |
| 1535 | + { |
| 1536 | + "$ref": "#/components/parameters/id_feed_podcast_pi_pubnotify" |
| 1537 | + }, |
| 1538 | + { |
| 1539 | + "$ref": "#/components/parameters/url_pubnotify" |
| 1540 | + }, |
| 1541 | + { |
| 1542 | + "$ref": "#/components/parameters/reason" |
| 1543 | + }, |
| 1544 | + { |
| 1545 | + "$ref": "#/components/parameters/podping" |
| 1546 | + }, |
| 1547 | + { |
| 1548 | + "$ref": "#/components/parameters/pretty" |
| 1549 | + } |
| 1550 | + ], |
| 1551 | + "responses": { |
| 1552 | + "200": { |
| 1553 | + "$ref": "#/components/responses/hub_pubnotify" |
| 1554 | + }, |
| 1555 | + "400": { |
| 1556 | + "$ref": "#/components/responses/400" |
| 1557 | + }, |
| 1558 | + "401": { |
| 1559 | + "$ref": "#/components/responses/401" |
| 1560 | + } |
| 1561 | + } |
| 1562 | + } |
| 1563 | + }, |
1519 | 1564 | "/hub/pubnotify": {
|
1520 | 1565 | "get": {
|
1521 | 1566 | "tags": [
|
|
1532 | 1577 | {
|
1533 | 1578 | "$ref": "#/components/parameters/url_pubnotify"
|
1534 | 1579 | },
|
| 1580 | + { |
| 1581 | + "$ref": "#/components/parameters/reason_liveonly" |
| 1582 | + }, |
1535 | 1583 | {
|
1536 | 1584 | "$ref": "#/components/parameters/pretty"
|
1537 | 1585 | }
|
|
2259 | 2307 | },
|
2260 | 2308 | "example": "https://feeds.theincomparable.com/batmanuniversity"
|
2261 | 2309 | },
|
| 2310 | + "reason": { |
| 2311 | + "name": "reason", |
| 2312 | + "in": "query", |
| 2313 | + "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", |
| 2314 | + "schema": { |
| 2315 | + "type": "string", |
| 2316 | + "enum": [ |
| 2317 | + "", |
| 2318 | + "live", |
| 2319 | + "liveEnd" |
| 2320 | + ] |
| 2321 | + }, |
| 2322 | + "example": "" |
| 2323 | + }, |
| 2324 | + "podping": { |
| 2325 | + "name": "podping", |
| 2326 | + "in": "query", |
| 2327 | + "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", |
| 2328 | + "schema": { |
| 2329 | + "type": "boolean" |
| 2330 | + }, |
| 2331 | + "allowEmptyValue": true |
| 2332 | + }, |
| 2333 | + "reason_liveonly": { |
| 2334 | + "name": "reason", |
| 2335 | + "in": "query", |
| 2336 | + "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", |
| 2337 | + "schema": { |
| 2338 | + "type": "string", |
| 2339 | + "enum": [ |
| 2340 | + "", |
| 2341 | + "live", |
| 2342 | + "liveEnd" |
| 2343 | + ] |
| 2344 | + }, |
| 2345 | + "example": "" |
| 2346 | + }, |
2262 | 2347 | "chash": {
|
2263 | 2348 | "name": "chash",
|
2264 | 2349 | "in": "query",
|
|
0 commit comments