Django and GeoDjango (covered in Chapter 12, GeoDjango) are used extensively for REST API creation. With its batteries-included design motto, Django allows for easy API development. The Django REST framework adds easy API publication to the code base.
Explore the Django REST Framework here: http://www.django-rest-framework.org/.