PHP REST API Multiple Files Upload

REST API Multiple Files Upload In this tutorial I am going to show you an example how to upload multiple files using REST (Representational State Transfer) API. I will also create a client program to upload multiple files through REST API. I am not using any Postman or SOAP UI tool to test the file upload functionality, so I am…

PHP REST API Single File Upload

REST API File Upload I am going to show you how to upload single file using REST API in PHP language. The full form of REST is Representational State Transfer. I will use POST method to upload the file. The REST API will get the file content from the client and will store the file content to a specified destination….

HttpsUrlConnection REST API Call – Auth Token And Proxy Server

Introduction In this example I am going to show you how to call REST APIs using javax.net.ssl.HttpsURLConnection. So, I am using plain Java code to send or receive data to or from the REST APIs. I am also going to show you how to send authentication token in the HTTP header. I am also going to show you how to use…

PHP Consume External REST APIs

Introduction In this PHP example, I am going to show you how to call external REST APIs in PHP programming. I am not going to build here any new REST API, but I will call or consume those REST APIs which are already available for testing purpose. But if you want to know then you can check my tutorial about…

CodeIgniter 4 Consume External REST APIs

CodeIgniter 4 REST API Client 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 APIs….

REST API – HTTP GET with Request Body

Here I am going to discuss about whether it is a good idea to send parameter in request body of the HTTP GET request or not. Request body is also known as payload of the request. I will also discuss about idempotent and safe http methods. Generally payload in the body is sent for POST, PUT, etc. http methods where…

File Upload and File Download REST APIs Testing using Rest Assured in Java

Introduction In this tutorial I will show you how to test REST APIs used for file upload and file download. The file upload or download application might have been created using any server side technology. I am going to use here Rest Assured library with Junit 5 framework in Java programming language. I will use multipart for file upload test….

How to perform CRUD operations REST API testing using Rest Assured in Java

Introduction In this example we will see how to perform CRUD operations REST API testing using Rest Assured library in Java programming language. Testing and validating REST services in Java is harder than in dynamic languages such as Ruby and Groovy. REST Assured brings the simplicity of using these languages into the Java domain. This tutorial will show you how…

PHP REST API Authentication Using JWT

Introduction Here in this tutorial, PHP REST API authentication using JWT, you will see how to use JWT (JSON Web Token) to authorize users and allow them to continue their works once they are logged in using their regular credentials (usernames and passwords). Users use their credentials to get the JWTs and continue their work until JWTs expire. In this…

PHP REST API AJAX jQuery CRUD Example

Introduction In this example we will see an example on PHP AJAX jQuery CRUD. CRUD is an acronym for four operations such as Create, Read, Update and Delete. We are going to perform CRUD operations on company details. We will use here MySQL database to store company detail information. We will perform each operation asynchronously through AJAX technique using jQuery…