Skip to content

Commit 18a869e

Browse files
committed
Add podcast-valueTimeSplit parameter to /podcasts/bytag
https://podcastindex.social/@dave/111250186996313754
1 parent 8386906 commit 18a869e

File tree

8 files changed

+74
-15
lines changed

8 files changed

+74
-15
lines changed

Postman Docs/PodcastIndex.postman_collection.json

+8-2
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,13 @@
397397
{
398398
"key": "podcast-value",
399399
"value": "",
400-
"description": "(Required) Get feeds supporting the `value` tag.\n\nParameter shall not have a value\n"
400+
"description": "Get feeds supporting the [`podcast:value`](https://github.com/Podcastindex-org/podcast-namespace/blob/main/docs/1.0.md#value) tag.\n\nParameter shall not have a value\n"
401+
},
402+
{
403+
"key": "podcast-valueTimeSplit",
404+
"value": "",
405+
"description": "Get feeds supporting the [`podcast:valueTimeSplit`](https://github.com/Podcastindex-org/podcast-namespace/blob/main/docs/1.0.md#value-time-split) tag.\n\nParameter shall not have a value\n",
406+
"disabled": true
401407
},
402408
{
403409
"key": "max",
@@ -418,7 +424,7 @@
418424
}
419425
]
420426
},
421-
"description": "This call returns all feeds that support the specified\n[podcast namespace](https://github.com/Podcastindex-org/podcast-namespace/blob/main/docs/1.0.md) tag.\n\nThe only supported tag is `podcast:value` using the `podcast-value` parameter.\n\nWhen called without a `start_at` value, the top 500 feeds sorted by popularity are returned in descending order.\n\n\nWhen called with a `start_at` value, the feeds are returned sorted by the `feedId` starting with the specified value\nup to the max number of feeds to return. The `nextStartAt` specifies the value to pass to the next `start_at`.\nRepeat this sequence until no items are returned.\n\n\nExamples:\n - https://api.podcastindex.org/api/1.0/podcasts/bytag?podcast-value&max=200&pretty\n - https://api.podcastindex.org/api/1.0/podcasts/bytag?podcast-value&max=200&start_at=1&pretty"
427+
"description": "This call returns all feeds that support the specified\n[podcast namespace](https://github.com/Podcastindex-org/podcast-namespace/blob/main/docs/1.0.md) tag.\n\nThe only supported tags are:\n - `podcast:value` using the `podcast-value` parameter\n - `podcast:valueTimeSplit` using the `podcast-valueTimeSplit` parameter\n\nOnly the `podcast-value` or `podcast-valueTimeSplit` parameter should be used. If multiple are specified, the\nfirst parameter is used and the others are ignored.\n\nWhen called without a `start_at` value, the top 500 feeds sorted by popularity are returned in descending order.\n\nWhen called with a `start_at` value, the feeds are returned sorted by the `feedId` starting with the specified value\nup to the max number of feeds to return. The `nextStartAt` specifies the value to pass to the next `start_at`.\nRepeat this sequence until no items are returned.\n\nExamples:\n - https://api.podcastindex.org/api/1.0/podcasts/bytag?podcast-value&max=200&pretty\n - https://api.podcastindex.org/api/1.0/podcasts/bytag?podcast-value&max=200&start_at=1&pretty\n - https://api.podcastindex.org/api/1.0/podcasts/bytag?podcast-valueTimeSplit&pretty"
422428
},
423429
"response": []
424430
},

api_src/components/parameters/podcast-value.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ name: podcast-value
22
in: query
33
# language=Markdown
44
description: |
5-
Get feeds supporting the `value` tag.
5+
Get feeds supporting the [`podcast:value`](https://github.com/Podcastindex-org/podcast-namespace/blob/main/docs/1.0.md#value) tag.
66
77
88
Parameter shall not have a value
99
schema:
1010
type: boolean
1111
allowEmptyValue: true
12-
required: true
12+
required: false
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: podcast-valueTimeSplit
2+
in: query
3+
# language=Markdown
4+
description: |
5+
Get feeds supporting the [`podcast:valueTimeSplit`](https://github.com/Podcastindex-org/podcast-namespace/blob/main/docs/1.0.md#value-time-split) tag.
6+
7+
8+
Parameter shall not have a value
9+
schema:
10+
type: boolean
11+
allowEmptyValue: true
12+
required: false

api_src/paths/podcasts/bytag.yaml

+9-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,13 @@ get:
88
[podcast namespace](https://github.com/Podcastindex-org/podcast-namespace/blob/main/docs/1.0.md) tag.
99
1010
11-
The only supported tag is `podcast:value` using the `podcast-value` parameter.
11+
The only supported tags are:
12+
- `podcast:value` using the `podcast-value` parameter
13+
- `podcast:valueTimeSplit` using the `podcast-valueTimeSplit` parameter
14+
15+
16+
Only the `podcast-value` or `podcast-valueTimeSplit` parameter should be used. If multiple are specified, the
17+
first parameter is used and the others are ignored.
1218
1319
1420
When called without a `start_at` value, the top 500 feeds sorted by popularity are returned in descending order.
@@ -22,11 +28,13 @@ get:
2228
Examples:
2329
- https://api.podcastindex.org/api/1.0/podcasts/bytag?podcast-value&max=200&pretty
2430
- https://api.podcastindex.org/api/1.0/podcasts/bytag?podcast-value&max=200&start_at=1&pretty
31+
- https://api.podcastindex.org/api/1.0/podcasts/bytag?podcast-valueTimeSplit&pretty
2532
operationId: podcasts/bytag
2633
security:
2734
- $ref: '../../components/security/security.yaml'
2835
parameters:
2936
- $ref: '../../components/parameters/podcast-value.yaml'
37+
- $ref: '../../components/parameters/podcast-valueTimeSplit.yaml'
3038
- $ref: '../../components/parameters/max_5000.yaml'
3139
- $ref: '../../components/parameters/start_at.yaml'
3240
- $ref: '../../components/parameters/pretty.yaml'

api_src/root.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
openapi: 3.0.2
22
info:
3-
version: 1.11.0
3+
version: 1.12.0
44
title: PodcastIndex.org API
55
termsOfService: 'https://github.com/Podcastindex-org/legal/blob/main/TermsOfService.md'
66
contact:

docs/pi_api.json

+17-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"openapi": "3.0.2",
33
"info": {
4-
"version": "1.11.0",
4+
"version": "1.12.0",
55
"title": "PodcastIndex.org API",
66
"termsOfService": "https://github.com/Podcastindex-org/legal/blob/main/TermsOfService.md",
77
"contact": {
@@ -507,7 +507,7 @@
507507
"Podcasts"
508508
],
509509
"summary": "By Tag",
510-
"description": "This call returns all feeds that support the specified\n[podcast namespace](https://github.com/Podcastindex-org/podcast-namespace/blob/main/docs/1.0.md) tag.\n\n\nThe only supported tag is `podcast:value` using the `podcast-value` parameter.\n\n\nWhen called without a `start_at` value, the top 500 feeds sorted by popularity are returned in descending order.\n\n\nWhen called with a `start_at` value, the feeds are returned sorted by the `feedId` starting with the specified value\nup to the max number of feeds to return. The `nextStartAt` specifies the value to pass to the next `start_at`.\nRepeat this sequence until no items are returned.\n\n\nExamples:\n - https://api.podcastindex.org/api/1.0/podcasts/bytag?podcast-value&max=200&pretty\n - https://api.podcastindex.org/api/1.0/podcasts/bytag?podcast-value&max=200&start_at=1&pretty\n",
510+
"description": "This call returns all feeds that support the specified\n[podcast namespace](https://github.com/Podcastindex-org/podcast-namespace/blob/main/docs/1.0.md) tag.\n\n\nThe only supported tags are:\n - `podcast:value` using the `podcast-value` parameter\n - `podcast:valueTimeSplit` using the `podcast-valueTimeSplit` parameter\n\n\nOnly the `podcast-value` or `podcast-valueTimeSplit` parameter should be used. If multiple are specified, the\nfirst parameter is used and the others are ignored.\n\n\nWhen called without a `start_at` value, the top 500 feeds sorted by popularity are returned in descending order.\n\n\nWhen called with a `start_at` value, the feeds are returned sorted by the `feedId` starting with the specified value\nup to the max number of feeds to return. The `nextStartAt` specifies the value to pass to the next `start_at`.\nRepeat this sequence until no items are returned.\n\n\nExamples:\n - https://api.podcastindex.org/api/1.0/podcasts/bytag?podcast-value&max=200&pretty\n - https://api.podcastindex.org/api/1.0/podcasts/bytag?podcast-value&max=200&start_at=1&pretty\n - https://api.podcastindex.org/api/1.0/podcasts/bytag?podcast-valueTimeSplit&pretty\n",
511511
"operationId": "podcasts/bytag",
512512
"security": [
513513
{
@@ -521,6 +521,9 @@
521521
{
522522
"$ref": "#/components/parameters/podcast-value"
523523
},
524+
{
525+
"$ref": "#/components/parameters/podcast-valueTimeSplit"
526+
},
524527
{
525528
"$ref": "#/components/parameters/max_5000"
526529
},
@@ -1913,12 +1916,22 @@
19131916
"podcast-value": {
19141917
"name": "podcast-value",
19151918
"in": "query",
1916-
"description": "Get feeds supporting the `value` tag.\n\n\nParameter shall not have a value\n",
1919+
"description": "Get feeds supporting the [`podcast:value`](https://github.com/Podcastindex-org/podcast-namespace/blob/main/docs/1.0.md#value) tag.\n\n\nParameter shall not have a value\n",
1920+
"schema": {
1921+
"type": "boolean"
1922+
},
1923+
"allowEmptyValue": true,
1924+
"required": false
1925+
},
1926+
"podcast-valueTimeSplit": {
1927+
"name": "podcast-valueTimeSplit",
1928+
"in": "query",
1929+
"description": "Get feeds supporting the [`podcast:valueTimeSplit`](https://github.com/Podcastindex-org/podcast-namespace/blob/main/docs/1.0.md#value-time-split) tag.\n\n\nParameter shall not have a value\n",
19171930
"schema": {
19181931
"type": "boolean"
19191932
},
19201933
"allowEmptyValue": true,
1921-
"required": true
1934+
"required": false
19221935
},
19231936
"max_5000": {
19241937
"name": "max",

docs/pi_api.yaml

+24-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
openapi: 3.0.2
22
info:
3-
version: 1.11.0
3+
version: 1.12.0
44
title: PodcastIndex.org API
55
termsOfService: https://github.com/Podcastindex-org/legal/blob/main/TermsOfService.md
66
contact:
@@ -589,7 +589,13 @@ paths:
589589
[podcast namespace](https://github.com/Podcastindex-org/podcast-namespace/blob/main/docs/1.0.md) tag.
590590
591591
592-
The only supported tag is `podcast:value` using the `podcast-value` parameter.
592+
The only supported tags are:
593+
- `podcast:value` using the `podcast-value` parameter
594+
- `podcast:valueTimeSplit` using the `podcast-valueTimeSplit` parameter
595+
596+
597+
Only the `podcast-value` or `podcast-valueTimeSplit` parameter should be used. If multiple are specified, the
598+
first parameter is used and the others are ignored.
593599
594600
595601
When called without a `start_at` value, the top 500 feeds sorted by popularity are returned in descending order.
@@ -603,6 +609,7 @@ paths:
603609
Examples:
604610
- https://api.podcastindex.org/api/1.0/podcasts/bytag?podcast-value&max=200&pretty
605611
- https://api.podcastindex.org/api/1.0/podcasts/bytag?podcast-value&max=200&start_at=1&pretty
612+
- https://api.podcastindex.org/api/1.0/podcasts/bytag?podcast-valueTimeSplit&pretty
606613
operationId: podcasts/bytag
607614
security:
608615
- API-Key: []
@@ -611,6 +618,7 @@ paths:
611618
Authorization: []
612619
parameters:
613620
- $ref: '#/components/parameters/podcast-value'
621+
- $ref: '#/components/parameters/podcast-valueTimeSplit'
614622
- $ref: '#/components/parameters/max_5000'
615623
- $ref: '#/components/parameters/start_at'
616624
- $ref: '#/components/parameters/pretty'
@@ -1759,14 +1767,26 @@ components:
17591767
name: podcast-value
17601768
in: query
17611769
description: |
1762-
Get feeds supporting the `value` tag.
1770+
Get feeds supporting the [`podcast:value`](https://github.com/Podcastindex-org/podcast-namespace/blob/main/docs/1.0.md#value) tag.
17631771
17641772
17651773
Parameter shall not have a value
17661774
schema:
17671775
type: boolean
17681776
allowEmptyValue: true
1769-
required: true
1777+
required: false
1778+
podcast-valueTimeSplit:
1779+
name: podcast-valueTimeSplit
1780+
in: query
1781+
description: |
1782+
Get feeds supporting the [`podcast:valueTimeSplit`](https://github.com/Podcastindex-org/podcast-namespace/blob/main/docs/1.0.md#value-time-split) tag.
1783+
1784+
1785+
Parameter shall not have a value
1786+
schema:
1787+
type: boolean
1788+
allowEmptyValue: true
1789+
required: false
17701790
max_5000:
17711791
name: max
17721792
in: query

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "pi_api_docs",
3-
"version": "1.11.0",
3+
"version": "1.12.0",
44
"private": true,
55
"devDependencies": {
66
"@redocly/cli": "^1.3.0",

0 commit comments

Comments
 (0)