Spring boot Actuator Example – Integration with rest service

What is Spring Boot Actuator ? Spring Boot Actuator is a spring feature which allows any web-app developer to add features to their web-services and applications to make them production-ready, such as monitoring and administration. The actuator is available as a library which attaches on-the-fly and provides tools to manage a web app by monitoring … Read more

REST API Interview Questions

Rest APi interview Questions

Here is a list of top 15 REST API interview questions and answers.  These questions would provide you with basic information about both simple and advanced topics. What is REST API ? REpresentational State Transfer, or REST for short, is an architectural style for building distributed, client-server systems. By providing a small set of useful … Read more

RESTFul webservices with Jersey And Spring

reset service test

JAX-RS and Jersey JAX-RS, is the “Java™ API for RESTful Web Services (JAX-RS)”. Documented in JSR 311 & JSR 339 it specifies a bunch of interfaces and annotations that can be used to define RESTful Webservices in java. Jersey is a reference implementation of JAX-RS Spec. In addition to implementing the JSR 331 and 339, … Read more

Secure REST Service – Basic authentication

In this tutorial, we will learn how to secure a Jersey based REST server implementation using Basic Authentication. As we have already discussed various ways of securing a REST Service, here we look in detail at Basic Authentication. REST Basic Authentication Tutorial In Basic Authentication, the client will send user credentials every time data is … Read more

Secure a REST Service

When we develop REST APIs for our application to enable integration with other applications, often we would want to secure the interface. This is done for a variety of reasons. We would like to prevent sniffing of data on the network by unauthorized people. We may want to categorize each user using user role and … Read more

Introduction to REST

Sir Tim Berners-Lee invented the World Wide Web in 1989. In the past three decades, the Web has evolved a lot, and most of the Millennials and Post-Millennials see it as an intricate part of their daily life. Ever wondered how the world wide web became so successful? Why has the Internet become so viral? … Read more

REST – Spring Boot

Since its inception in 2002, the Spring framework saw a tremendous growth in terms of functionalities which ultimately made the framework a bit complex. One of the main error-prone areas in traditional Spring programming was, of course, the enormous amount of config XML files that one had to create for a fairly large Spring project. … Read more

REST Service Using Spring

In this tutorial, we will be learning how a RESTful service can be built with Spring. We would be creating a simple Restful service using spring and running it in eclipse. Tools We will be using the following tools for development in this tutorial. Maven 3.3.9 Java 1.8.0.101 Spring Tool Suite [ standalone or eclipse plugin] … Read more

REST Client Using Jersey

Creating REST Client In the previous tutorial, we created a simple REST service that responds to a HTTP GET call. We saw it working by opening the page in a browser and seeing the correct results. In this tutorial, we will see how to create a REST client that consumes the simple service that we … Read more

RESTful Service with Java using Jersey

What is REST? REST stands for Representational State Transfer. It is an architectural style based on HTTP protocol and was conceptualized by Roy Fielding way back in the year 2000. In REST service, everything is a resource and every resource has an id. The resources reside at the REST server end and is consumed by … Read more