Skip to content

Commit 179878a

Browse files
committed
Add podcastguid option to episodes/byguid
Also adds `podcastGuid` to response for `episodes/byguid`
1 parent 4d04a1d commit 179878a

File tree

8 files changed

+2033
-272
lines changed

8 files changed

+2033
-272
lines changed

Postman Docs/PodcastIndex.postman_collection.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -830,6 +830,12 @@
830830
"description": "The Feed URL\n",
831831
"disabled": true
832832
},
833+
{
834+
"key": "podcastguid",
835+
"value": "917393e3-1b1e-5cef-ace4-edaa54e1f810",
836+
"description": "The GUID from the `podcast:guid` tag in the feed. This value is a unique, global identifier for the podcast.\n\nSee the namespace spec for\n[guid](https://github.com/Podcastindex-org/podcast-namespace/blob/main/docs/1.0.md#guid) for details.",
837+
"disabled": true
838+
},
833839
{
834840
"key": "fulltext",
835841
"value": "",
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: podcastguid
2+
in: query
3+
# language=Markdown
4+
description: |
5+
The GUID from the `podcast:guid` tag in the feed. This value is a unique, global identifier for the podcast.
6+
7+
8+
See the namespace spec for
9+
[guid](https://github.com/Podcastindex-org/podcast-namespace/blob/main/docs/1.0.md#guid) for details.
10+
schema:
11+
type: string
12+
example: "917393e3-1b1e-5cef-ace4-edaa54e1f810"

api_src/components/responses/episodes_byguid.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ content:
1010
$ref: '../properties/feedid_query.yaml'
1111
url:
1212
$ref: '../properties/feedurl_query.yaml'
13+
podcastGuid:
14+
$ref: '../properties/podcastguid.yaml'
1315
guid:
1416
$ref: '../properties/guid_query.yaml'
1517
episode:

api_src/paths/episodes/byguid.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ get:
77
Get all the metadata for a single episode by passing its guid and the feed id or URL.
88
99
10-
The `feedid` or the `feedurl` is required.
10+
The `feedid`, `feedurl`, or `podcastguid` is required.
1111
1212
1313
Examples:
@@ -21,6 +21,7 @@ get:
2121
- $ref: '../../components/parameters/guid_episode.yaml'
2222
- $ref: '../../components/parameters/feedurl.yaml'
2323
- $ref: '../../components/parameters/feedid.yaml'
24+
- $ref: '../../components/parameters/podcastguid_optional.yaml'
2425
- $ref: '../../components/parameters/fulltext.yaml'
2526
- $ref: '../../components/parameters/pretty.yaml'
2627
responses:

docs/pi_api.json

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -903,7 +903,7 @@
903903
"Episodes"
904904
],
905905
"summary": "By GUID",
906-
"description": "Get all the metadata for a single episode by passing its guid and the feed id or URL.\n\n\nThe `feedid` or the `feedurl` is required.\n\n\nExamples: \n\n - Search using Podcast Index feed ID: https://api.podcastindex.org/api/1.0/episodes/byguid?guid=PC2084&feedid=920666&pretty\n - Search using feed URL: https://api.podcastindex.org/api/1.0/episodes/byguid?guid=PC2084&feedurl=http://mp3s.nashownotes.com/pc20rss.xml&pretty\n",
906+
"description": "Get all the metadata for a single episode by passing its guid and the feed id or URL.\n\n\nThe `feedid`, `feedurl`, or `podcastguid` is required.\n\n\nExamples: \n\n - Search using Podcast Index feed ID: https://api.podcastindex.org/api/1.0/episodes/byguid?guid=PC2084&feedid=920666&pretty\n - Search using feed URL: https://api.podcastindex.org/api/1.0/episodes/byguid?guid=PC2084&feedurl=http://mp3s.nashownotes.com/pc20rss.xml&pretty\n",
907907
"operationId": "episodes/byguid",
908908
"security": [
909909
{
@@ -923,6 +923,9 @@
923923
{
924924
"$ref": "#/components/parameters/feedid"
925925
},
926+
{
927+
"$ref": "#/components/parameters/podcastguid_optional"
928+
},
926929
{
927930
"$ref": "#/components/parameters/fulltext"
928931
},
@@ -2112,6 +2115,15 @@
21122115
},
21132116
"example": "920666"
21142117
},
2118+
"podcastguid_optional": {
2119+
"name": "podcastguid",
2120+
"in": "query",
2121+
"description": "The GUID from the `podcast:guid` tag in the feed. This value is a unique, global identifier for the podcast.\n\n\nSee the namespace spec for\n[guid](https://github.com/Podcastindex-org/podcast-namespace/blob/main/docs/1.0.md#guid) for details.\n",
2122+
"schema": {
2123+
"type": "string"
2124+
},
2125+
"example": "917393e3-1b1e-5cef-ace4-edaa54e1f810"
2126+
},
21152127
"max_random": {
21162128
"name": "max",
21172129
"in": "query",
@@ -5465,6 +5477,9 @@
54655477
"url": {
54665478
"$ref": "#/components/schemas/feedurl_query"
54675479
},
5480+
"podcastGuid": {
5481+
"$ref": "#/components/schemas/podcastguid"
5482+
},
54685483
"guid": {
54695484
"$ref": "#/components/schemas/guid_query"
54705485
},

docs/pi_api.yaml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -884,7 +884,7 @@ paths:
884884
Get all the metadata for a single episode by passing its guid and the feed id or URL.
885885
886886
887-
The `feedid` or the `feedurl` is required.
887+
The `feedid`, `feedurl`, or `podcastguid` is required.
888888
889889
890890
Examples:
@@ -901,6 +901,7 @@ paths:
901901
- $ref: '#/components/parameters/guid_episode'
902902
- $ref: '#/components/parameters/feedurl'
903903
- $ref: '#/components/parameters/feedid'
904+
- $ref: '#/components/parameters/podcastguid_optional'
904905
- $ref: '#/components/parameters/fulltext'
905906
- $ref: '#/components/parameters/pretty'
906907
responses:
@@ -1980,6 +1981,18 @@ components:
19801981
schema:
19811982
type: string
19821983
example: '920666'
1984+
podcastguid_optional:
1985+
name: podcastguid
1986+
in: query
1987+
description: |
1988+
The GUID from the `podcast:guid` tag in the feed. This value is a unique, global identifier for the podcast.
1989+
1990+
1991+
See the namespace spec for
1992+
[guid](https://github.com/Podcastindex-org/podcast-namespace/blob/main/docs/1.0.md#guid) for details.
1993+
schema:
1994+
type: string
1995+
example: 917393e3-1b1e-5cef-ace4-edaa54e1f810
19831996
max_random:
19841997
name: max
19851998
in: query
@@ -4762,6 +4775,8 @@ components:
47624775
$ref: '#/components/schemas/feedid_query'
47634776
url:
47644777
$ref: '#/components/schemas/feedurl_query'
4778+
podcastGuid:
4779+
$ref: '#/components/schemas/podcastguid'
47654780
guid:
47664781
$ref: '#/components/schemas/guid_query'
47674782
episode:

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "1.11.0",
44
"private": true,
55
"devDependencies": {
6-
"@redocly/cli": "^1.0.2",
6+
"@redocly/cli": "^1.1.0",
77
"copyfiles": "^2.4.1",
88
"http-server": "^14.1.1",
99
"livereload": "^0.9.3"

0 commit comments

Comments
 (0)