Home » REST

Tag Archives: REST

Publishing & Subscribing to AWS SNS Messages with Node.js

Hello. In this tutorial, we will see publishing and subscribing to AWS SNS Messages with Node.js. We will understand AWS SNS and create a simple application that will interact with SNS with the help of exposed endpoints. 1. Introduction AWS Simple Notification Service (SNS) is a cloud service for delivering notifications from applications to subscribed endpoints and clients. It is ...

Read More »

Build a REST API with Spring and Java Config

In this article we’ll see how to build a REST API using Spring Boot and Java Config. 1. Introduction Spring is a diversified framework and we can build basically any kind of application using its tools. Also, a majority of applications today use Spring Boot as the background of web services to connect and create a Server-Client solution. In the ...

Read More »

How to Handle Exceptions in Rest Service

In this article, we will explain how to Handle Exceptions in Rest Service. 1. Introduction Rest Service is a lightweight service that is built on the REpresentational State Transfer (REST) architecture via HTTP protocol. HTTP status code defines 4xx and 5xx error codes. Java API for RESTFul Web services (JAX-RS) specification is defined by Java EE with a set of ...

Read More »

RESTful Web Service Discovery

1. Introduction This is an in-depth article related to the discovery of Restful Web Service. Spring Boot framework has features to build applications. Spring Boot has features related to building rest services and unit testing the application. It has a eureka registry to lookup and discover the RESTful Web Services. The standard HATEOAS (Hypermedia As The Engine Of Application State) ...

Read More »

REST vs GraphQL: A Detailed Comparison

In this article, we will take a look at the most important differences between REST vs GraphQL. 1. Introduction REST and GraphQL are web services technologies that are popular. This article talks about the differences between REST and GraphQL. REST APIs are simpler compared to SOAP. REST was a defacto standard till 2011. Facebook created GraphQL for mobile applications. GraphQL ...

Read More »

How to Call a REST API Using jQuery AJAX in Spring Boot

1. Introduction This is an in-depth article related to the JQuery AJAX Call to Spring Boot based Rest Service. Spring Boot framework has features to build applications. Spring Boot has features related to building rest services and unit testing the application. 2. Spring Boot Rest API – JQuery AJAX Call 2.1 Prerequisites Java 8 or 9 is required on the ...

Read More »

Spring Boot MockMVC Tutorial

In this article, we provide a tutorial about Spring Boot MockMVC. 1. Introduction As a software developer, you need to validate that your code is working correctly. You accomplish this by testing. There are different types of tests: Unit tests target a specific section of code, such as a methodIntegration tests verify that the interactions between your code and other ...

Read More »

Building a REST Service with Spring Boot and MongoDB

1. Introduction This is an in-depth article related to the Spring Boot based Rest Service with MongoDB. Spring Boot framework has features to build applications. Spring Boot has features related to building rest services with MongoDB and unit testing the application. 2. Spring Boot Rest Service using MongoDB 2.1 Prerequisites Java 8 or 9 is required on the Linux, windows ...

Read More »

Spring REST Docs Example

Welcome to the Spring REST Docs Example. So you have written your Web API and now you must provide documentation so that other people can use it. Spring REST Docs helps you document your RESTful services. The beauty of Spring REST Docs is whilst you are writing unit tests, you can use these tests to generate documentation for your HTTP ...

Read More »

Deploying Multiple Spring Boot Microservices to Docker

Welcome readers, in this tutorial, we will show how to deploy multiple Spring Boot Microservices on Docker. 1. Introduction Before starting the tutorial, we will make an introduction to Spring Boot and Docker. 1.1 Spring Boot introduction Spring boot is a module that provides rapid application development feature to the spring framework including auto-configuration, standalone-code, and production-ready codeIt creates applications ...

Read More »