PokeAPI/ditto

Supporting v1 of PokeAPI

tdmalone opened this issue ยท 13 comments

From PokeAPI/pokeapi#353:

I am also thinking to the v1 users. @phalt once said that a lot of calls are directed to the v1 endpoint. Is it possible to make ditto scan also the v1 endpoints?

I think we should keep supporting it if it's not too difficult. We will never need to add new data to the v1 API, so if modifying ditto is too hard, we might be able to manually save the JSON and just keep it in the repo.

I've been looking at this and it looks like V1 is quite broken, for example https://pokeapi.co/api/v1/pokemon/32/. Is it really worth keeping v1 alive?

Also a bunch of the build functions are broken. build_egg_pokes, build_type_pokes, build_move_descriptions, and build_pokedex_descriptions all throw exceptions.

IMO we should just drop v1 after a grace period, with intermittent outages to alert folks.

I would generally agree with dropping v1 too... I'm not sure on the usage stats of it though.

But if it's broken.....!

If it's broken, and nobody's complained yet, I say drop it. At this point, only very old projects will still be using it (it was deprecated in December 2014).

We can put in a permanent error message for any v1 API requests.

phalt commented

Some stats I pulled from the live server:

V1 API hits daily ~1k
V2 API hits daily ~20k

If this was a business, I'd deprecate version 1. Cost of maintaining it isn't worth it.

i like the idea of @cmmartti to drop the v1 and put a permanent error message for any v1 API requests, we know some very old project use the pokeapi v1 in pokeapi.co, but as it will not be in this domain (probably) I think we can only use v2.

phalt commented

Just return 301 moved permanently responses. That's the responsible HTTP thing to do.

With the new docs site now online, the deprecation of v1 has a public notification at https://pokeapi.co/docs/v1.html/

Is 15 October a good date? I put it in as a placeholder because we never talked about it yet, but the outage meant the site went live earlier than expected.

I have no objections to that - to be honest, I donโ€™t think the date is going to make much of a difference, as anyone using v1 still probably isnโ€™t checking the site anyway.

Looks like we're dropping v1 support, closing.