Documenting REST APIs With Open API And Spring Boot

REST API Documentation 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 I will use OpenAPI 3 in Spring application for creating documentation for REST APIs. I will create and deploy REST services but I do not have an option to let others…

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…

How To Generate And Validate JWT Using PHP Without Using Third Party API

Introduction In this tutorial you will see how to generate and validate JWT (JSON Web Token) using PHP programming language without using any third-party library or plugin. I would not explain here what is JWT and why JWT is used but you can find wonderful documentation in its own JWT Website. This example of generating and validating JWT does not…

Supplier, Consumer and BiConsumer in Java 8

Supplier Consumer BiConsumer I will discuss here about the new feature added to Java 8 – a functional interface, Supplier, Consumer and BiConsumer. In simple words, a supplier is a method that returns a value. A supplier is any method which takes no arguments and returns a value. Its job is to supply an instance of an expected class. Whereas,…

REST over Https with Client certificate Authentication

Introduction The tutorial, REST over HTTPS with client certificate authentication, will show you how we can use client certificate to handshake with server along with basic authentication for consuming the service. Even you can use header authentication along with client certificate to make more secure. I will create Spring Boot application on Spring REST API and build the application using…

Event Driven Streaming using Spring Cloud Stream and Apache Kafka

In this tutorial we will see an example of event driven streaming using Spring Cloud Stream and Apache Kafka streaming platform. How do we deal with some events, such as, a new user has registered to a portal, an order was placed, a file has been uploaded etc? Let’s say when an order was placed then we need a call…

Automation Testing using Cucumber and Selenium Web Driver

Introduction This tutorial will show you how to perform automation testing using Cucumber and Selenium web driver. Cucumber is a BDD framework used to perform behavior testing whereas Selenium is used to perform automation testing for web applications across different browsers and platforms. In this example we will search a keyword in Google website and verify whether it returns a…

Cucumber Tags Example

Introduction In this tutorial you will see how to work on Cucumber Tags. Tags in Cucumber are great ways to organize your features and scenarios. It is pretty much simple when you have one, two, or maybe five scenarios in a feature file. However, in real life project, for each feature, you may have 20, 30, or may be more…

How To Create Java Based Hibernate Configurations

Java Based Configuration In this tutorial I will discuss how to create Java based Hibernate configurations. In Java based configuration you don’t need to create any XML or properties file for putting Hibernate configuration. The configuration for connection to database and creating SessionFactory instance is written in to a Java file. I will put Hibernate configuration as well SessionFactory using…

How to send Bulk Emails with Attachments using Python and Flask

Introduction In this tutorial I will show you how to send bulk emails with attachments using Python and Flask API. Flask API will be used to build the web based application and using Python’s email library I will send the email to multiple recipients. So sending bulk emails means sending an email to multiple recipients. If you want you may…