The model for Series says that seriesId is an integer, but the query yields a string:
Code: Select all
"data": {
"id": 343949,
// ...
"seriesId": "343949",
// ...
}
Code: Select all
"data": {
"id": 343949,
// ...
"seriesId": "343949",
// ...
}
Stingray wrote:Greetings,
I've tried to use swagger.json for new API to autogenerate some client code and realized that swagger definition is incorrect.
Specifically, /search/series returns an object with "data" field that is an array of Series object, and not a single object as swagger.json says.
What I can do to fix the definition?
Thanks
codegrabber wrote:It's also out of date when querying for episodes:Stingray wrote:Greetings,
I've tried to use swagger.json for new API to autogenerate some client code and realized that swagger definition is incorrect.
Specifically, /search/series returns an object with "data" field that is an array of Series object, and not a single object as swagger.json says.
What I can do to fix the definition?
Thanks
The newest poll returns additional language info:
"language": {
"episodeName": "en",
"overview": ""
},
Which is nowhere mentioned...
These fixes should be up on dev now (https://api-dev.thetvdb.com/swagger). I'll look at getting it pushed live shortly, have some other things I'd like to finish before deploying to prod.codegrabber wrote:Another thing which I just encountered:
The model for Series says that seriesId is an integer, but the query yields a string:
This is rather annoying unfortunately...Code: Select all
"data": { "id": 343949, // ... "seriesId": "343949", // ... }
Good to know I can submit issues over there. If I can make it easier for you guys to keep track of them, I'll most certainly do.MattS wrote:Stingray wrote:Greetings,
I've tried to use swagger.json for new API to autogenerate some client code and realized that swagger definition is incorrect.
Specifically, /search/series returns an object with "data" field that is an array of Series object, and not a single object as swagger.json says.
What I can do to fix the definition?
Thankscodegrabber wrote:It's also out of date when querying for episodes:Stingray wrote:Greetings,
I've tried to use swagger.json for new API to autogenerate some client code and realized that swagger definition is incorrect.
Specifically, /search/series returns an object with "data" field that is an array of Series object, and not a single object as swagger.json says.
What I can do to fix the definition?
Thanks
The newest poll returns additional language info:
"language": {
"episodeName": "en",
"overview": ""
},
Which is nowhere mentioned...These fixes should be up on dev now (https://api-dev.thetvdb.com/swagger). I'll look at getting it pushed live shortly, have some other things I'd like to finish before deploying to prod.codegrabber wrote:Another thing which I just encountered:
The model for Series says that seriesId is an integer, but the query yields a string:
This is rather annoying unfortunately...Code: Select all
"data": { "id": 343949, // ... "seriesId": "343949", // ... }
For future issues, it's best to create a GitLab account (if you haven't already) and submit issues there (https://gitlab.thetvdb.com/site/thetvdb_api/issues). It's difficult to keep up with here and Trello isn't much better.
I've noticed the same issue with the /series/{id}/filter endpoint.WilliamABradley wrote: ↑Tue Aug 23, 2016 5:30 amAlso just discovered that filtering a Series properties with LastUpdated, and any other properties, LastUpdated doesn't appear in results.
Code: Select all
{
"data": {
"seriesId": "275274",
"seriesName": "Rick and Morty"
},
"errors": {}
}
Code: Select all
curl -X GET --header 'Accept: application/json' --header 'Accept-Language: en' --header 'Authorization: Bearer eyJhbGciOiJS[...]BDUhSBQpehg' 'https://api.thetvdb.com/series/275274'
Code: Select all
{
"data": {
"id": 275274,
"seriesName": "Rick and Morty",
"aliases": [],
"banner": "graphical/275274-g6.jpg",
"seriesId": "275274",
"status": "Continuing",
"firstAired": "2013-12-02",
"network": "Adult Swim",
"networkId": "",
"runtime": "25",
"genre": [
"Adventure",
"Animation",
"Comedy",
"Science-Fiction"
],
"overview": "Rick & Morty relata las aventuras de un científico loco, mal encarado y alcohólico que vive en casa de su hija, Beth, junto a Jerry, el marido de ésta y los dos hijos de la pareja, Summer y Morty, compañero de su abuelo en sus andanzas.",
"lastUpdated": 1573662855,
"airsDayOfWeek": "Sunday",
"airsTime": "11:30 PM",
"rating": "TV-MA",
"imdbId": "tt2861424",
"zap2itId": "EP01833673",
"added": "2013-11-13 09:41:13",
"addedBy": 346515,
"siteRating": 9.3,
"siteRatingCount": 127,
"slug": "rick-and-morty"
}
}