Introduction In this tutorial I will show you how to call or consume external REST APIs in CodeIgniter 4 framework. REST is an acronym that stands for Representational State Transfer. I had shown how to build REST API CRUD Example earlier but here I am going to show an example on CodeIgniter 4 consume REST…

Posted in Codeigniter REST

CodeIgniter 4 Consume External REST APIs

Here I am going to show you how to create REST API CRUD example using Nodejs Express and MySQL server. CRUD means Create, Read, Update and Delete operations which are performed through REST (Representational State Transfer) resources that works on http/https protocol. REST resources or APIs work on verbs, such as, GET, POST, PUT, DELETE,…

Posted in MySQL NodeJS

NodeJS Express MySQL REST API CRUD Example

Here we are going to discuss about whether it is a good idea to send parameter in request body of the HTTP GET request or not. We will also discuss about idempotent and safe methods. When you are doing a GET request on entity, you are actually requesting the content of the entity. If you…

Posted in REST

REST API – HTTP GET with Request Body

In this tutorial I am going to show you how we can upload file using REST or RESTful web service. The most important concept in REST is resources, which are identified by global IDs — typically using URIs. Client applications use HTTP methods (GET/ POST/ PUT/ DELETE) to manipulate the resource or collection of resources….

Posted in File Upload REST

Upload file using REST webservice

In this tutorial I am going to show you how we can download file using REST or RESTful web service. The most important concept in REST is resources, which are identified by global IDs — typically using URIs. Client applications use HTTP methods (GET/ POST/ PUT/ DELETE) to manipulate the resource or collection of resources….

Posted in File Download REST

Download file using REST webservice

Introduction In this post we will see how to convert List, Map to JSON in REST Response using Jersey API. We will create three separate REST methods to convert List to JSOn, Map to JSON and List of Map to JSON string. We will annotate the REST resource class with @Path for having the base…

Posted in Junit REST

Convert List, Map to JSON in REST Response using Jersey