Skip to content

A tiny flask app to redirect v2 Datastore to Datastore Classic. See also the v1->v2 branch.

License

Notifications You must be signed in to change notification settings

codeforIATI/datastore-redirects

Repository files navigation

Datastore Redirects

A tiny flask app to do v2 -> v1 datastore redirects. Based on original work by @andylolz.

Why are redirects important?

Putting in place redirects for the IATI Datastore will reduce disruption for users. Wherever possible, users can continue to use the same API calls, getting back the same response, without having to make any changes on their end. Without redirects, all users will be forced to make changes, which may involve having to go back to vendors to request changes to the source code.

Test it out!

Below are examples of requests equivalent in format to those made to the V2 Datastore. The requests are reshaped and redirected to the Datastore Classic.

Django endpoints

SOLR endpoints

Installation

$ git clone https://github.com/codeforiati/datastore-redirects.git
$ cd datastore-redirects
$ pipenv install

Running

$ pipenv run flask run

About

A tiny flask app to redirect v2 Datastore to Datastore Classic. See also the v1->v2 branch.

Resources

License

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •