<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.dirkjanswagerman.nl/index.php?action=history&amp;feed=atom&amp;title=Stuck_in_the_middle_%3A_Weblog</id>
	<title>Stuck in the middle : Weblog - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.dirkjanswagerman.nl/index.php?action=history&amp;feed=atom&amp;title=Stuck_in_the_middle_%3A_Weblog"/>
	<link rel="alternate" type="text/html" href="https://wiki.dirkjanswagerman.nl/index.php?title=Stuck_in_the_middle_:_Weblog&amp;action=history"/>
	<updated>2026-10-25T14:18:22Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.2</generator>
	<entry>
		<id>https://wiki.dirkjanswagerman.nl/index.php?title=Stuck_in_the_middle_:_Weblog&amp;diff=3690&amp;oldid=prev</id>
		<title>Dirkjan: Created page with &quot;=URL= http://www.jroller.com/rickard/entry/the_domain_model_as_rest  =Description= The domain model as REST anti-pattern  Today JavaLobby published yet another domain-model-as...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.dirkjanswagerman.nl/index.php?title=Stuck_in_the_middle_:_Weblog&amp;diff=3690&amp;oldid=prev"/>
		<updated>2020-08-25T10:36:17Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;=URL= http://www.jroller.com/rickard/entry/the_domain_model_as_rest  =Description= The domain model as REST anti-pattern  Today JavaLobby published yet another domain-model-as...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;=URL=&lt;br /&gt;
http://www.jroller.com/rickard/entry/the_domain_model_as_rest&lt;br /&gt;
&lt;br /&gt;
=Description=&lt;br /&gt;
The domain model as REST anti-pattern&lt;br /&gt;
&lt;br /&gt;
Today JavaLobby published yet another domain-model-as-REST article, using Spring and Jersey. As already pointed out, this really is an anti-pattern, and is not RESTful, and cannot be so either.&lt;br /&gt;
&lt;br /&gt;
The point that all of these types of articles miss is the HATEOAS part, the hyperlinking of resources. If you expose your domain model, basically saying &amp;quot;here&amp;#039;s all I got, use as you see fit&amp;quot;, there is no sensible way to create links between resources that expose the application state. There is no sensible way to tell the client &amp;quot;here&amp;#039;s what you can do next&amp;quot;, because the &amp;quot;REST&amp;quot; API allows anything at any time.&lt;br /&gt;
&lt;br /&gt;
Here&amp;#039;s an example, from my own app, which showed me the problem with this approach. I have users in my system. I need two ways to work with their passwords: the user must be allowed to change his own password, and the administrator shall be allowed to reset any users&amp;#039; password. In the beginning, when I was exposing my domain model, the URL&amp;#039;s for thi&lt;br /&gt;
[[Category:software]]&lt;br /&gt;
&lt;br /&gt;
[[Category:REST]]&lt;br /&gt;
&lt;br /&gt;
[[Category:bookmark]]&lt;br /&gt;
&lt;br /&gt;
[[Category:software]]&lt;/div&gt;</summary>
		<author><name>Dirkjan</name></author>
		
	</entry>
</feed>