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…

Posted in Java REST

HttpsUrlConnection REST API Call – Auth Token And Proxy Server

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…

Posted in PHP REST

PHP Consume External REST APIs

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

Introduction In this tutorial I am going to explain you how to use docker compose to dockerize your Nodejs MySQL REST API for CRUD operations. I am not going to tell you here how to build the REST CRUD application but you can always go back and check the detail tutorial on this here. I…

Posted in Docker MySQL NodeJS REST

Docker Compose – Dockerizing Nodejs MySQL REST API CRUD Example

Here in this tutorial I am going to show you how to use Swagger API with Django REST framework. Swagger API provides well structured documentation for REST API endpoints so a new person can say how to test a REST API without knowing its internal implementation. Essentially, Swagger does a simple but very powerful thing:…

Posted in Django Swagger

How to use Swagger with Python based Django REST APIs

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,…

Posted in REST

REST API – HTTP GET with Request Body

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…

Posted in File Download File Upload REST Rest Assured

File Upload and File Download REST APIs 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…

Posted in REST Rest Assured

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

Introduction This tutorial will show you an example on how to document REST APIs using OpenAPI 3. When creating a REST API, good documentation is instrumental. Here we will use OpenAPI 3 in Spring application for creating documentation for REST APIs. We create and deploy REST services but we do not have an option to…

Posted in REST Spring Boot Spring REST Swagger

Documenting REST APIs with OpenAPI 3

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…

Posted in PHP REST

PHP REST API Authentication Using JWT

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…

Posted in AJAX jQuery PHP REST

PHP REST API AJAX jQuery CRUD Example

Introduction We will create REST APIs to allow users login and logout from an application using Python and Flask. We have seen in another tutorial how to login and logout from an application where UI or front end was built using flask template file but here we are not providing any UI or front end…

Posted in Flask Python REST

Python Flask REST API Login Logout Example