Posted in Codeigniter REST

Working With RESTful Services In Codeigniter 3 – POST Example

Introduction In this tutorial I am going to show you how you can work with RESTful or REST webservice in Codeigniter framework. I will build a REST API for HTTP POST method. The HTTP POST method is used to create a new resource in server side. Related Posts: Working with RESTful services in Codeigniter – PUT example Codeigniter GET example…

Continue Reading... Working With RESTful Services In Codeigniter 3 – POST Example
Posted in Codeigniter REST

Working With RESTful Services in Codeigniter 3 – GET Example

Introduction In this tutorial I am going to show you how you can work with RESTful or REST webservice in Codeigniter framework. I am going to use HTTP method GET to fetch data from database server. Related Posts: Working with RESTful services in Codeigniter – POST example Working with RESTful services in Codeigniter – PUT example Working with RESTful services…

Continue Reading... Working With RESTful Services in Codeigniter 3 – GET Example
Posted in Codeigniter REST

Setup RESTful Service With Codeigniter 3

Introduction This tutorial will show you how to setup RESTful service with CodeIgniter so that we can create and deploy REST services with CodeIgniter applications. Codeigniter Rest Server is a fully RESTful server implementation for CodeIgniter using one library, one config file and one controller.

Continue Reading... Setup RESTful Service With Codeigniter 3
Posted in Mule ESB REST

REST Web Service with Mule ESB

In this tutorial I am going to show you how we can create REST web service in Mule ESB. We will use HTTP Connector as a request-response medium to interact with REST web service. You can see also SOAP Web Service with Mule ESB and Send data to remote REST web application using Mule ESB

Continue Reading... REST Web Service with Mule ESB
Posted in Mule ESB REST

Send data to remote REST web application using Mule ESB

In this tutorial I am going to show you how to send data from Mule application to remote web application which is basically a REST webservice application. Prerequisites Eclipse, JDK 1.8, JAX-RS jars 2.23.2 Have maven installed and configured JAX-RS dependencies in pom.xml For this tutorial we will create a web maven project in Eclipse. If you already have an…

Continue Reading... Send data to remote REST web application using Mule ESB
Posted in File Upload REST

Upload file using REST webservice

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. A RESTful Web service is…

Continue Reading... Upload file using REST webservice
Posted in File Download REST

Download 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. A RESTful Web service is…

Continue Reading... Download file using REST webservice
Posted in REST Security

REST Webservice Basic Authentication

Table of Contents Introduction HTTP Methods Prerequisites Project Setup Deployment Descriptor REST Resource Test Class Testing Basic Authentication in REST Service Source Code Introduction In this tutorial I am going to show you how you can authenticate the REST webservice using sending credential information in Cookie. The most important concept in REST is resources, which are identified by global IDs…

Continue Reading... REST Webservice Basic Authentication
Posted in Junit REST

Convert List, Map to JSON in REST Response using Jersey

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 URI of the REST resources….

Continue Reading... Convert List, Map to JSON in REST Response using Jersey
Posted in REST

REST Service with MultivaluedMap using Jersey

Introduction Here I am going to give an example on how MultivaluedMap in REST web service works. A MultivaluedMap<K, V> is a map of key-values pairs. Each key can have zero or more values, where K – the type of keys maintained by this map and V – the type of mapped values. The most important concept in REST is…

Continue Reading... REST Service with MultivaluedMap using Jersey