Commit Graph

18 Commits

Author SHA1 Message Date
Oliver Gierke
76ae2475ec #278 - Shortened README to point to the reference documentation. 2015-03-05 10:30:39 +01:00
Amr Mostafa
2945e9994f #272 - Fix reference to non-existing interface in readme.
Reference now mentions LinkDiscoverer instead of LinkProvider.
2015-02-10 14:04:11 +01:00
Oliver Gierke
e84e9a3f5f #224 - Fixed type in readme.
Removed trailing whitespace as well.
2014-08-22 17:38:51 +02:00
fiddlerpianist
f4c43b26c4 #215 - Fixed Traverson constructor usage in readme. 2014-07-23 15:55:41 +02:00
Dietrich Schulten
9ca7049348 #183 - Added documentation for how to use CurieProvider.
Original pull request: #200.
2014-07-08 20:47:05 +02:00
qizeqing
84104897af #177 - Fix typo in readme.md. 2014-05-20 10:53:38 +02:00
Oliver Gierke
0985979428 #131 - Add Traverson hypermedia client API.
Introduce Traverson as means to traverse hypermedia based APIs by providing a set of relation names to discover and follow to access the final representation. Traverson allows to specify a parameter map that will be used  to potentially expand the URIs discovered.

We currently support LinkDiscoverer based relation discovery, which means that relations in HAL representations can be found by simply stating their names. Alternatively JSON path expressions can be used (starting with a $).
2014-05-01 17:47:46 +02:00
Oliver Gierke
d11bec0bc3 #162 - Fixed readme to mention @Relation, not @RelationType. 2014-03-20 15:46:33 +01:00
Lyle Hanson
a984f12d5a #65 - Fixed typo in readme.md. 2013-05-16 00:10:02 +02:00
Oliver Gierke
05bd3ddb44 #44 - Updated readme.md to document new features introduced in 0.5. 2013-04-30 19:27:02 +02:00
Oliver Gierke
25f68fa208 Polished EntityLinks documentation (previously non-existent). 2012-12-19 14:38:56 +01:00
Oliver Gierke
531dd8f5ed #18 - Added support for creating links from method mappings.
ControllerLinkBuilder(Factory) now has a linkTo(Method method, Object… parameters) and linkTo(Object dummyMethodInvocationResult) method to either inspect the given method or the result of the dummy method invocation that can be created through DummyInvocationUtils.methodOn(…). So for the following controller:

@Controller
@RequestMapping("/people")
class PersonController {
  
  @RequestMapping(value = "/{person}", method = RequestMethod.GET)
  public HttpEntity<PersonResource> show(@PathVariable Long person) { … }
}

you could now do:

Link link = linkTo(methodOn(PersonController.class).show(2L)).withSelfRel();
assertThat(link.getHref(), is("/people/2")));

The code is highly inspired by the code Dietrich Schulten (@dschulten) provided in his pull requests but radically reduced to the core functionality. I also didn't add support for JAX-RS in the first place, but this is definitely a topic going forward.
2012-12-19 13:10:31 +01:00
Oliver Gierke
dc36bb26fe Fixed links representation in readme.md. 2012-10-09 12:39:06 +02:00
Oliver Gierke
cdc9ec9bfa Fixed broken code highlighting and typo. 2012-07-19 18:38:55 +03:00
Oliver Gierke
6326eb5642 Updated documentation.
Clarify how ControllerLinkBuilder actually works internally.
2012-05-11 18:14:51 +03:00
Oliver Gierke
e1cb5d6ae5 Fixed formatting.
Enabled syntax highlighting and fixed broken link.
2012-05-11 13:49:06 +03:00
Oliver Gierke
3abbea4a28 Minor fixes for glitches in readme.md. 2012-05-11 13:44:13 +03:00
Oliver Gierke
21b1a4ec8c Initial commit. 2012-05-10 20:25:31 +02:00