Level up your Twilio API skills in TwilioQuest, an educational game for Mac, Windows, and Linux. Download Now
Build the future of communications.
Start building for free
  • By Michael Okoh
    Building and Consuming a RESTful API in Laravel PHP Building and Consuming a RESTful API in Laravel.png

    From your favorite social networks, down to your favorite banking applications, our modern world is driven by a lot of APIs. In this article, you will learn how to build a modern RESTful API and an application that will implement the API.

    Prerequisites

    • PHP 7.1 or Higher
    • Composer
    • MySql
    • Laravel 5.6 or Higher
    • Postman

    To follow along with this tutorial, you should have a basic understanding of the PHP language. Basic knowledge of the Laravel framework is required.

    Understanding our Application

    You will be building a CRUD API. CRUD means Create, Read, Update, and Delete. Our API will have the following endpoints:

    GET /api/students will return all students and will be accepting GET requests.

    GET /api/students/{id} will return a student record by referencing its id and will be accepting GET requests.

    POST /api/students will create a new student record and will be accepting POST requests.

    PUT /api/students/{id} will update …

    Read More
  • Newer
    Older
    Sign up and start building
    Not ready yet? Talk to an expert.