Improving RESTful Web Services

In the previous chapter, we created RESTful web services in Lumen, and we identified some missing elements or improvements required. In this chapter, we will work on improving that and completing some missing elements. We will improve certain elements with respect to fulfilling loopholes and code quality.

We will cover the following topics in this chapter to improve our RESTful web service:

  • Dingo, simplifying RESTful API development:
    • Installing and configuring Dingo API package
    • Simplifying routes
    • API versioning
    • Rate limiting
    • Internal requests
  • Authentication and middleware
  • Transformers
  • Need of encryption:
    • SSL, different options
  • Summary

Get Building RESTful Web Services with PHP 7 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.