Home » REST » Page 5

Tag Archives: REST

A configurable JAX-RS ExceptionMapper with MicroProfile Config

java-interview-questions-answers

When you create REST services with JAX-RS, you typically either return nothing (so HTTP 201/2/4 etc) or some data, potentially in JSON format (so HTTP 200), or some Exception / Error (so HTTP 4xx or 5xx). We usually translate a Runtime Exception into some HTTP 5xx and a Checked Exception into some 4xx. Because we want to keep our boundary ...

Read More »

How to Invoke an External REST API from a Cloud Function

java-interview-questions-answers

In a previous blog post I showed how to create your first cloud function (plus a video). It’s very likely that your cloud function will need to invoke an external REST API. The following tutorial will show you how to create such function (it’s very easy). Sign into an IBM Cloud account Click Catalog Remove the label:lite filter and type ...

Read More »

Speed Up Services With Reactive API in Java EE 8

java-interview-questions-answers

Services can often be optimized with asynchronous processing even without changing their behavior towards the outside world. The reason why some services aren’t efficient is that they need to wait for other services to provide a result to continue further. Let’s look how to call external REST services without waiting for them and also do multiple parallel calls independently and ...

Read More »

And some more REST tips

java-interview-questions-answers

In previous blog posts I have covered some ideas and tips for achieving a REST architecture. In this post, I cover a few more ideas and tips. Caching Caching is a big part of the original dissertation.  See section 5.1.4  Strategies include validation (client checks it has the latest version) and expiration (client assumes it has the latest version until a ...

Read More »

REST: Using a Controller endpoint?

java-interview-questions-answers

In general REST architectures, the fundamental concept is a Resource.  After Resources, the next thing is to develop a Uniform Interface to these resources, which in HTTP land usually means: Create is POST Read is GET Update is PUT (or PATCH for Partial Update) Delete is DELETE In the real world, inevitably some operations won’t map so nicely to resources. ...

Read More »

Spring Boot Tutorial

spring-interview-questions-answers

1. Introduction If you always wanted to work with a Web Framework which allows you to jump-start into API development without the hassle of setting up Web Servers, collecting all the wired dependencies, installing various tools, you’ve been blessed with an excellent framework, Spring Boot. The prime motto of Spring Boot is convention over configuration. In this lesson, we will ...

Read More »

Spring Boot & Angular 5 & Spring Data & Rest Example (CRUD)

This tutorial provides a complete implementation of Spring Boot, Angular 5 and spring data to build an end to end single page java web application with example.We will be using spring boot 1.5 to expose REST APIs and angular5 with routing to build our client that will be consuming the APIs exposed by the server.Also, we will be integrating MySql ...

Read More »

Build REST Web Service using Spring Boot

spring-interview-questions-answers

This tutorial provides a step-by-step guide on how to build a restfull web service using Spring Boot. Prerequisites: Eclipse IDE (neon release) Maven 4 Java 1.8 1. Create maven web project Open eclipse then create a new maven web project and name it as SpringBootRest. The structure of the generated project looks like the following: 2. pom.xml After creating the web project, the ...

Read More »

Top 20 Spring REST Interview Questions Answers for Java Programmers

spring-interview-questions-answers

Hello guys, I have been sharing some REST with Spring tutorials from last a couple of weeks and today, I am going to share some of the frequently asked Spring and REST interview questions to Java developers applying for Web developer roles. Since Spring Framework is the most popular and the standard framework for developing Java web application and RESTful Web ...

Read More »