REST Web Services 29 - HATEOAS (Part 1)

preview_player
Показать описание

In Part 1 of this 2-part tutorial, we'll implement HATEOAS links in the Message response for the "self" rel attribute.
Рекомендации по теме
Комментарии
Автор

Hi Kaushik,
You are really good and so unself which is very rare to find in the IT industry. Thanks so much for this wonderful tutorial. When I learned REST API from you I dont have to follow any book it is so simple...you are very good...god bless you man...Vilas

vilastadoori
Автор

I have learned so much from you Koushik... Thank you! A suggested topic would be to cover securing the application/securing the REST methods.

robl
Автор

I viewed all the tutorials in this series so far. Awaiting for the rest of the tutorials that you have in this series. Thank you.

bsrengarajan
Автор

This is really awesome tutorial for REST. Looking forward to get REST Security sessions also from you. Your way of putting up the content is great. Keep It UP.

mittalankur
Автор

Keep the good work man, you're helping a lot of people, thanks!

pedrohenriquealmeidarodrig
Автор

Thanks, man!
You are the best teacher!
Thanks again!

Ronniefil
Автор

Best tutorial !!! Can't thank you enough.

jacquisurfer
Автор

Thanks for giving the brief knowledge about everything related to java Just waiting for Hadoop Tutorial from you

mangeshkulkarni
Автор

Are the getters and setters used internally as well?? I forgot to add for the links in the code, it didn't show any error, but obviously, didn't show the links in the output as well.
Does Jersey call them during conversion?

bhavukmathur
Автор

Thanks for the awesome tutorial! What I dont get is why not add the links when you add messages, if we add links like this when we get one message, the links are not gonna show up when we try to get all messages. Anyone please lemme know.

west-gaming-space
Автор

why not just use getAbsolutePathBuilder()
instead of

lembergsohn
Автор

hello what is the use of @xmltransient on comments list in message model. How do we use it ? It is clear that comments is a sub res of messages but how does it work ? I also found that you haven't declared comment model as @XmlRootElement

shubhamupadhyay
Автор

Hi i need help with jboss + oracle + simple call stored procedure web service or restful

gianpaul
Автор

i didn't get the links as json response and there were couple of warnings too,
is it because of that or some other error

vipulthakur
Автор

I am getting a java.lang.ClassCastException:
java.util.ArrayList cannot be cast to ...model.Message

any ideas?

Great tutorials BTW.

geoffgriffiths
Автор

Is there any way to add the links without modifying the model classes ? What I mean is that in the case that we already have the model classes implemented and not editable for some reasons, is there a way to add the links in the response without changing the actual model classes ? 
BTW, great tutotial !

yingcai
Автор

1:56 The links could be sth like this ...
2:38 create a new model class called Link

ruixue
Автор

you should publish a book for all topics of your tutorial.

iandmetick
Автор

Hi Sir, the very good tutorial I ever seen, thank you very much, sir, if u have any Github link this source code, please provide this, thx again

shivaprabhagar
Автор

Hi, I like your tutorials but you are teaching bad code practices.
For example, why should our MODEL Message contain Links, that are related to web part only. It required at least some decorator.
And a "helper" method in Message that takes 2 string args insted of Link. So, if iternal Link representation changes, we have to change Message class?

I understand that this is a tutorial on REST API, not design consepts, buy each time you do dirty :) things, you could just say: "I'm doing this just to be quick, but you shouldn't do this".

Anyway, thanks for your tutorials.

ИванНиколайчук-фы