diff --git a/README.rst b/README.rst index 0089e89..4a75f04 100644 --- a/README.rst +++ b/README.rst @@ -12,7 +12,7 @@ swapi-python :target: https://pypi.python.org/pypi/swapi -A Python helper library for swapi.co - the Star Wars API +A Python helper library for swapi.dev - the Star Wars API NOTE: Tests will run against hosted API as opposed to data from github repo @@ -42,7 +42,7 @@ All resources are accessible through the top-level ``get_resource()`` methods:: Methods ======= -These are the top-level methods you can use to get resources from swapi.co. To learn more about the models and objects that are returned, see the ``models`` page. +These are the top-level methods you can use to get resources from swapi.dev. To learn more about the models and objects that are returned, see the ``models`` page. get_person(id) ------------ diff --git a/docs/models.rst b/docs/models.rst index 1babae0..610001f 100644 --- a/docs/models.rst +++ b/docs/models.rst @@ -108,7 +108,7 @@ A novelty method that prints out each line of the opening crawl with a 0.5 secon Multiple Collection Model ========================= -When you query swapi.co for multiple resources of the same type, they will be returned as a ``ResourceQuerySet``, which is a collection of those resources that you requested. For example, to get the ``Starship`` resources linked to a person, you can do the following:: +When you query swapi.dev for multiple resources of the same type, they will be returned as a ``ResourceQuerySet``, which is a collection of those resources that you requested. For example, to get the ``Starship`` resources linked to a person, you can do the following:: luke = swapi.get_person(1) starships = luke.get_starships() diff --git a/requirements.txt b/requirements.txt index 369bc90..313f23c 100644 --- a/requirements.txt +++ b/requirements.txt @@ -14,5 +14,5 @@ pep8==1.5.7 pyflakes==0.8.1 requests==2.5.0 six==1.8.0 -ujson==1.33 +ujson==4.0.2 wheel==0.24.0 diff --git a/setup.py b/setup.py index 72f6a39..a7532c8 100755 --- a/setup.py +++ b/setup.py @@ -12,7 +12,7 @@ history = open('HISTORY.rst').read().replace('.. :changelog:', '') requirements = [ - 'requests==2.5.0', 'six==1.8.0', 'ujson==1.33' + 'requests==2.5.0', 'six==1.8.0', 'ujson==4.0.2' ] setup( diff --git a/swapi/settings.py b/swapi/settings.py index 6ef09cc..571f941 100644 --- a/swapi/settings.py +++ b/swapi/settings.py @@ -9,7 +9,7 @@ if DEBUG: BASE_URL = 'http://localhost:8000/api' else: - BASE_URL = 'http://swapi.co/api' + BASE_URL = 'http://swapi.dev/api' PEOPLE = 'people' PLANETS = 'planets'