Home » Tag Archives: REST

Tag Archives: REST

Web Services Interview Questions and Answers

java-interview-questions-answers

In this post we cover almost every portion of the concept of Web services that you need to be familiar with to answer any tier questions. You would also find the best Web Services Interview Questions and Answers in classifications so you can only get in a specific provision if necessary. Varieties of web applications developed on various programming platforms ...

Read More »

Are you ready to see GraphQL in action?

spring-interview-questions-answers

In last article we have discussed about GraphQL advantages over REST. In this article we will see GraphQL in action. I have created a sample application to showcase differences between REST and GraphQL. First we will see REST implementation of simple product detail end point. I have used Spring Boot to demonstrate REST. Download sample project and follow steps outlined ...

Read More »

Comparing Java REST Documentation Frameworks

java-interview-questions-answers

Deciding which Java framework to choose when documenting your REST APIs can be quite the hassle. In this blogpost we will briefly compare the three documentation frameworks for REST web services that we ourselves use, and how they integrate with the Spring framework (which is the Java framework most often used at Foreach). These are RESTful API Modeling Language (RAML), ...

Read More »

What’s the case for your API?

java-interview-questions-answers

Disclaimer: In pure REST, API’s are opaque and the URL should be whatever what was sent as a link in the response to a previous request. But, I’m not talking pure REST, I’m talking more pragmatic APIs which involve some concepts from REST and as well as general API best practices. When writing an API, it starts simple. You identify the ...

Read More »

How to bind @RequestParam to object in Spring

spring-interview-questions-answers

Do you have multiple parameters annotated with @RequestParam in a request mapping method and feel it isn’t readable? The annotation looks pretty straightforward when there’s one or two input parameters expected in a request but when the list gets longer you might feel overwhelmed. You cannot use the @RequestParam annotation inside objects but it doesn’t mean you’re left with no ...

Read More »

Microservices Messaging: Why REST Isn’t Always the Best Choice

Microservices are a big business. Thanks to advances in container orchestration, multi-process applications development and sheer user demand, companies are edging away from traditional monolithic applications towards distributed, highly-available microservices. Breaking applications into smaller chunks reaps rewards in many guises. However, with this distribution there arises a new requirement: messaging for inter-service communication. How does microservices messaging tie back to ...

Read More »

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 »