Build the future of communications.
Start Building for Free

REST API posts

  • By Oluyemi Olususi
    Build a RESTful API using Golang and Gin Build a RESTful API using Golang and Gin

    Go has risen to be one of the most in-demand programming languages - despite being relatively young. For example, it's been used to build a wide range of applications including CLIs, compilers, APIs, and desktop apps. What's more, it has a gentler learning curve and faster execution time than most modern languages. So you'd be hard-pressed to go wrong by using Go for your next project.

    This is the first in a series of articles where I will show you how to build, test, dockerize, and deploy an application written in Go. In this article, you will build a RESTful API using Golang and Gin. If you're not familiar with it, Gin is an HTTP web framework written in Go. The application will have a database powered by PostgreSQL.

    What you will build

    You will build an API for a personal diary app which will have the following …

    Read More
  • By Anthony Dellavecchia
    Get The Latest NBA News Sent to Your Phone via SMS F5 Your Phone to Get the Latest NBA News

    In light of June 30th, 2022, the date when NBA teams can begin negotiations with free agents, now is an exciting time to be a basketball fan. We’ve already seen so much breaking news like Kevin Durant and Kyrie Irving demanding trades, the Timberwolves giving away the farm for Rudy Golbert, and surely much more to come.

    I know many fans who are F5ing their news feeds on their computers, so wouldn’t it be fun to do from your phone too? In this post, I’ll teach you how to write a Python application that texts you NBA news.


    Before getting started, it’s important to have the following before moving on:

    • Python 3.6 or higher installed on your machine.
    • A Twilio account. If you haven’t yet, sign up for a free Twilio trial.
    • ngrok installed on your machine. ngrok is a useful tool for connecting your local server …
    Read More
  • By Pedro Lopes
    How to Build a REST API for a Real Estate Agency with Twilio TaskRouter, Java, and Spring Boot header - How to Build a REST API for a Real Estate Agency with Twilio TaskRouter, Java, and Spring Boot

    Many businesses use a routing system to delegate a task to the correct agent that will execute it. An example is a real estate agency. In this kind of business, each client has an economic profile, and so each one can be served by a different type of salesperson.

    The customer of a real estate agency is commonly called a lead. A lead is a potential buyer or renter of real estate. A lead with a high monthly income, and thus a high purchasing power, is better for the agency, and will be served by a more experienced salesperson. On the other hand, a lead with low purchasing power could be served by beginner or less experienced salespeople.

    In this post, I will show you how to create a REST API for a real estate agency. This API will receive and delegate leads to the respective salespeople. Creating this …

    Read More
  • By Michael Okoh
    Laravel PHPでRESTful APIを構築する方法 Laravel PHPでRESTful APIを構築する方法

    この記事はMichael Okohこちらで公開した記事(英語)を日本語化したものです。

    ソーシャルネットワークから銀行アプリケーションまで、現代社会は多くのAPIで動いています。本稿では、Laravel PHPを使ってRESTful APIと、それを実装するアプリケーションを構築する方法について学びます。



    • PHP 7.1以降
    • Composer
    • MySQL
    • Laravel 5.6以降
    • Postman


    本稿では、学生に関するデータを取り扱うCRUD APIを構築します。CRUDは、Create(作成)、Read(読み取り)、Update(更新)、Delete(削除)を意味します。このAPIには、次のエンドポイントがあります。

    • GET /api/studentsは、すべての学生レコードを返し、GETリクエストを受け入れます。
    • GET /api/students/{id}は、学生レコードのidを参照して学生レコードを返し、GETリクエストを受け入れます。
    • POST /api/studentsは、新しい学生レコードを作成し、POSTリクエストを受け入れます。
    • PUT /api/students/{id}は、学生レコードのidを参照して既存の学生レコードを更新し、PUTリクエストを受け入れます。
    • DELETE /api/students/{id}は、学生レコードのidを参照して学生レコードを削除し、DELETE …
    Read More
  • By Oluyemi Olususi
    CodeIgniterとJSON Web Tokenを使用したセキュアなRESTful APIの構築方法 CodeIgniterとJSON Web Tokenを使用したセキュアなRESTful APIの構築方法

    この記事はOluyemi Olususiこちらで公開した記事(英語)を日本語化したものです。

    クラウドサービスの利用と応用が拡大する中で、Simple Object Access Protocol(SOAP)よりも効率的なアーキテクチャスタイルの必要性が増しています。REST(REpresentational State Transfer)はクライアントとApplication Programming Interface(API)との軽量でステートレスな通信を可能にします。RESTを使った通信はステートレスです。Restful APIのアクセスコントロールはトークンベースで行われ、クライアントが要求したアクションをリソースに実行する権限があるかどうかを判別する情報が伝えられます。

    本稿では、CodeIgniterを使用したRESTful APIの作成方法を紹介します。CodeIgniterは強力な機能を持つPHPフレームワークで、非常に小さなリソースでフルスケールのWebアプリケーションを構築できます。




    • Composer
    • ローカルデータベースインスタンス
      このチュートリアルではMy …
    Read More
  • By Kenneth Ekandem
    How to Create a Restful CRUD API in PHP Using Laravel and Google Firebase How to Create a Restful CRUD API in PHP Using Laravel and Google Firebase

    In this tutorial, you will learn how to create a RESTful CRUD (Create, Read, Update, and Delete) API with Laravel that stores its data in a Firebase realtime database.

    What is Firebase?

    Google Firebase is a Google-backed application development platform that enables developers to develop iOS, Android, and Web-based applications. Firebase provides tools for tracking analytics, reporting and fixing app crashes, creating marketing and product experiments, and much more.

    So, without wasting time, let us dive in.


    1. PHP 7.4, though ideally 8.1.
    2. Composer installed globally.
    3. jq.
    4. Prior experience with Laravel.
    5. A text editor such as Visual Studio Code or an IDE such as PhpStorm.
    6. A Google account.

    Install and set up the Laravel application

    To begin, you first have to install a Laravel application and run it on your local development machine.

    To do that, in your terminal, run the command …

    Read More
  • By Nida Khan
    How to Create REST APIs with Java and Spring Boot header - How to Create REST APIs with Java and Spring Boot

    I’ve been using Twilio’s REST APIs for quite some time now. I was always amazed to see how REST APIs are used in establishing communication between client and server over HTTP. You call an API, which calls the server. The server then performs the whole business logic and returns the result.

    I always wanted to know how these APIs are developed so that I can create APIs myself. This led me to explore various frameworks such as Spring Boot. After developing several REST APIs using Spring Boot, I decided to write this tutorial to help beginners get started with Spring Boot.

    In this tutorial, you will develop REST APIs in Spring Boot to perform CRUD operations on an employee database.


    Read More
  • By Chimezie Enyinnaya
    Laravel SanctumでPHPのRESTful APIを構築する Laravel SanctumでPHPのRESTful APIを構築する

    この記事はソフトウェアエンジニアのChimezie Enyinnayaこちらで公開した記事(英語)を日本語化したものです。

    Laravel Sanctum(旧称Airlock)は、シングルページアプリケーション(SPA)、モバイルアプリケーションや基本的なトークンベースのAPI用に作成されたLaravelパッケージです。これによりAPIトークンをユーザーに発行し、Laravelセッションを使用したシングルページアプリケーション認証が行えます。Laravel Sanctumは、既存のLaravel Passportパッケージの簡易版です。PassportよりもSanctumを選ぶ理由は以下のとおりです。

    1. PassportはOAuth2認証が実装されています。これを使用しないのであれば、APIトークンの発行はSanctumで行えます。
    2. Sanctumは超軽量でシンプルに実装できます。
    3. Sanctumは、Vue、Angular、Reactなどのシングルページアプリケーションに対応しています。モバイルアプリケーション認証も対応しています。



    1. Laravelの知識。
    2. Insomniaなど、HTTPクライアントの使用に関する基本知識。

    Laravel Sanctumでは多くのことができますが、このチュートリアルではLaravel Sanctumを使用したAPIの構築方法を説明します。



    Read More
  • By Luís Leão
    Criar e consumir uma API RESTful no PHP Laravel Criar e consumir uma API RESTful no PHP Laravel

    Desde suas redes sociais favoritas até os aplicativos bancários que você mais usa, nosso mundo moderno é conduzido por muitas APIs. Neste artigo, você aprenderá a criar uma API RESTful moderna e um aplicativo que implementará a API.


    • PHP 7.1 ou superior
    • Composer
    • MySql
    • Laravel 5.6 ou posterior
    • Postman

    Para acompanhar este tutorial, você deve ter um entendimento básico da linguagem PHP. É necessário o conhecimento básico da estrutura Laravel.

    Noções básicas sobre o aplicativo

    Você vai criar uma API CRUD. CRUD é a sigla em inglês de "Create, Read, Update, and Delete" (Criar, ler, atualizar e excluir). Nossa API terá os seguintes endpoints:

    GET /api/students retornará todos os alunos e aceitará solicitações GET.

    GET /api/students/{id} retornará um registro de aluno fazendo referência a seu id e aceitando solicitações GET.

    POST /api/students criará um novo registro de alunos e aceitará solicitações POST.

    PUT /api/students/{id} atualizará …

    Read More
  • By Oluyemi Olususi
    Build a RESTful API using PHP and Yii2 Build a RESTful API using PHP and Yii2

    Since its introduction, RESTful architecture has redefined the way we think about (and build) software applications by breaking down complex application ecosystems into smaller, more focused applications communicating with each other via RESTful calls.

    Client-Server Architecture allows web clients and mobile apps to communicate with the same infrastructure (such as a server-side API) to provide a seamless user experience.

    In this tutorial, I will show you how to build a RESTful API using the Yii framework (version 2)- a high-performance, component-based PHP framework.


    A basic understanding of the Yii framework and PHP will be of help in this tutorial. However, I will provide brief explanations and links to the applicable parts of the official documentation throughout the tutorial. If you’re unclear on any concept, you can review the linked material before continuing.

    Additionally, you need to have the following installed on your system:

    • PHP version 7 or higher with …
    Read More
  • Newer
    Sign up and start building
    Not ready yet? Talk to an expert.