Home » Tag Archives: RESTful Web Services (page 7)

Tag Archives: RESTful Web Services

Playing with JerseyTest (Jersey 2.5.1 and DI)

java-interview-questions-answers

I’m going to try explaining a trivial REST example. The idea is building a basic schema to start playing with Jersey. When I begin to use some framework, I usually develop a test enviroment for failing fast, and that is what I’m going to do. The next example has these features: Jersey 2.5.1 Dependency Injection JUnit for testing     ...

Read More »

Consuming Spring-hateoas Rest service using Spring RestTemplate and Super type tokens

spring-interview-questions-answers

Spring-hateoas provides an excellent way for applications to create REST based services which follow the HATEOAS principle. My objective here is not to show how to create the service itself, but to demonstrate how to write a client to the service. The sample service that I am going to use is the ” the-spring-rest-stack” written by Josh Long( @starbuxman). The ...

Read More »

Check your REST parameters!

java-interview-questions-answers

I was doing research related to my ongoing “project student” series and realized that I had made one of the most common – and most easily remedied – mistakes. I wasn’t using everything I know about the webapp to push my security perimeter outwards. I am thinking specifically about the UUID parameters. I know that every valid externally visible ID ...

Read More »

Project Student: Webservice Server with Jersey

java-logo

This is part of Project Student. Other posts are Webservice Client With Jersey, Business Layer and Persistence with Spring Data. The second layer of the RESTful webapp onion is the webservice server. It should be a thin layer that wraps calls to the business layer but does not do significant processing of its own. This post has a lot of ...

Read More »

Project Student: Webservice Client with Jersey

java-interview-questions-answers

This is part of Project Student. Other posts are Webservice Client with Jersey, Business Layer and Persistence with Spring Data. The first layer of the RESTful webapp onion is the webservice client. It can be used to mimic web pages containing AJAX content or by programmatic users of the webapp. N.B., the latter might include other webapps, e.g., if you ...

Read More »

Spring REST: Exception handling vol. 1

spring-interview-questions-answers

Table of contents Spring REST: Exception handling vol. 1 Spring REST: Exception handling vol. 2 Spring REST: Exception handling vol. 3 Hi everyone, it’s time to continue publish new articles in my blog. So I’m happy to announce that I’m planning to write a couple of technical series of posts. In the current post I’m going to start talking about ...

Read More »

HOW-TO: Get started quickly with Spring 4.0 to build a simple REST-Like API (walkthrough)

spring-interview-questions-answers

HOW-TO: Get started quickly with Spring 4.0 to build a simple REST-Like API (walkthrough) Yet another tutorial about creating Web API with Spring MVC. Not really sophisticated. Just a walkthrough. The resulting app will serve simple API, will use Mongo as its persistence and it will be secured with Spring Security. Getting started – POM Of course, I am still ...

Read More »

Spring REST: Exception handling vol. 3

spring-interview-questions-answers

It’s a last article from the series about Spring REST exception handling. Finally this time I will talk about handling of REST exceptions which can occur during a form processing. So in this tutorial you will see everything related to REST, forms and exception handling. What about client side? JQuery will be used to reflect all responses of the REST ...

Read More »

Create a simpe RESTful service with vert.x 2.0, RxJava and mongoDB

mongodb-logo

A new article after an hiatus of almost half a year. In this article we’ll have quick look at how you can get started with vert.x and more interestingly how you can use RxJava to make programming asynchronous systems a lot easier. We’ll cover the following subjects: Create an empty vert.x project using maven Import in IntelliJ and create a ...

Read More »

Spring REST: Exception handling vol. 2

spring-interview-questions-answers

This is a second article from the series about REST Exception handling with Spring. In my previous post I have described how to organise the most simple exception handling in a REST service. This time I will go further and I will show you when you’d better to use exception handling on a @ControllerAdvice level. INTRO Before I will start ...

Read More »
Do you want to know how to develop your skillset and become a ...

Subscribe to our newsletter to start Rocking right now!

To get you started we give you our best selling eBooks for FREE!
Get ready to Rock!
To download the books, please verify your email address by following the instructions found on the email we just sent you.

THANK YOU!

Close