O'Reilly logo

Test-Driven Development with Django by Kevin Harvey

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 7. Share and Share Alike

In this chapter, we'll expose the data in our application via a REST API. As we do, we'll learn:

  • The importance of documentation in the API development process
  • How to write functional tests for API endpoints
  • API patterns and best practices

It's an API world, we're just coding in it

It's very common nowadays to include a public REST API in your web project. Exposing your services or data to the world is generally done for one of two reasons:

  • You've got interesting data, and other developers might want to integrate that information into a project they're working on
  • You're building a secondary system that you expect your users to interact with, and that system needs to interact with your data (that is, a mobile or desktop ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required