Commit Graph

118 Commits

Author SHA1 Message Date
Mark Paluch
bb8be787c9 DATAREST-1052 - Updated changelog. 2017-05-09 11:36:18 +02:00
Oliver Gierke
3b30be15c2 DATAREST-1057 - Updated changelog. 2017-04-19 21:04:22 +02:00
Oliver Gierke
eaec427fa9 DATAREST-1056 - Prepare 2.6.3 (Ingalls SR3). 2017-04-19 19:32:01 +02:00
Oliver Gierke
709128f54f DATAREST-1056 - Updated changelog. 2017-04-19 19:31:57 +02:00
Oliver Gierke
0d638a3e7c DATAREST-1017 - Updated changelog. 2017-04-19 13:04:11 +02:00
Oliver Gierke
77a89d346b DATAREST-1016 - Prepare 2.6.2 (Ingalls SR2). 2017-04-19 10:10:48 +02:00
Oliver Gierke
cced2a322e DATAREST-1016 - Updated changelog. 2017-04-19 10:10:43 +02:00
Michael J. Simons
4a75efcad1 DATAREST-1046 - Fix instructions how to manually add a validator.
Original pull request: #264.
2017-04-11 10:22:13 +02:00
Oliver Gierke
ccfe96de48 DATAREST-946 - Updated changelog. 2017-04-10 14:07:11 +02:00
Mark Paluch
aa5e816f08 DATAREST-1020 - Mention correct method in reference docs to configure global CORS mappings.
Point in reference documentation to `addMapping(…)` instead of `addCorsMapping(…)`.
2017-03-08 11:20:20 +01:00
Oliver Gierke
544f785c55 DATAREST-989 - Updated changelog. 2017-03-02 16:57:52 +01:00
Oliver Gierke
794d59463c DATAREST-990 - Prepare 2.6.1 (Ingalls SR1). 2017-03-02 09:33:29 +01:00
Oliver Gierke
56fdd2d1b3 DATAREST-990 - Updated changelog. 2017-03-02 09:33:01 +01:00
Oliver Gierke
d8dcef1de9 DATAREST-966 - Updated changelog. 2017-01-26 12:08:53 +01:00
Oliver Gierke
18df680b0f DATAREST-967 - Prepare 2.6 GA (Ingalls). 2017-01-26 10:26:35 +01:00
Oliver Gierke
b458af18a8 DATAREST-967 - Updated changelog. 2017-01-26 10:26:33 +01:00
Mark Paluch
ffe96e4079 DATAREST-976 - Embedded properties are now considered in sort property paths.
We now allow sorting by properties of embedded objects. An embedded object is not linkable to a root object but embedded in the resource itself. If any part of the sort property path points to a linkable association, the whole sort property path is discarded silently and not used for sorting any further.

Original pull request: #251.
2017-01-16 13:30:30 +01:00
Oliver Gierke
130582a263 DATAREST-932 - Updated changelog. 2016-12-21 19:35:32 +01:00
Oliver Gierke
729e6476ec DATAREST-862 - Prepare 2.6 RC1 (Ingalls). 2016-12-21 16:19:34 +01:00
Oliver Gierke
9bd5cc878a DATAREST-862 - Updated changelog. 2016-12-21 16:19:31 +01:00
Ken Dombeck
76ddc30533 DATAREST-951 - Fixed example in sample in reference documentation.
Original pull request: #244.
2016-12-06 08:31:39 +01:00
Lukasz Kryger
080d1b0dab DATAREST-960 - Fixed typos in reference documentation.
Fix typo "returnBodyOnupdate" -> "returnBodyOnUpdate".

Original pull request: #242.
2016-12-02 19:40:45 +01:00
Oliver Gierke
262a2a1e1a DATAREST-934 - Updated changelog. 2016-11-23 13:52:47 +01:00
Oliver Gierke
63bc492140 DATAREST-915 - Updated changelog. 2016-11-03 18:56:47 +01:00
Oliver Gierke
40bb8e8e6c DATAREST-573 - Polishing.
Removed RepositoryRestConfiguration.addCorsMapping(…) as we currently don't have any other shortcut methods for configuration like this.

Tweaked the setup of (now Repository)CorsConfigurationAccessor to be created earlier so that we avoid recreation for every lookup. Introduced a NoOpStringValueResolver to be used by default so that we don't need to deal with the case of the resolver being null at the end of the call chain. Replaced constructor of RepositoryCorsConfigurationAccessor with corresponding Lombok annotation.

Updated reference documentation accordingly.

Original pull request: #233.
2016-10-28 14:19:26 +02:00
Mark Paluch
a3870ca528 DATAREST-573 - Add support for new CORS configuration mechanisms introduced in Spring 4.2.
We now support CORS configuration mechanisms introduced in Spring 4.2. CORS can be configured on multiple levels: Repository interface, Repository REST controller and global level. Spring Data REST CORS configuration is isolated so Spring Web MVC'S CORS configuration does not apply to Spring Data REST resources.

 Multiple configuration sources are merged so different aspects of CORS can be configured in separate locations.

@CrossOrigin
interface PersonRepository extends CrudRepository<Person, Long> {}

@RepositoryRestController
@RequestMapping("/person")
public class PersonController {

	@CrossOrigin(maxAge = 3600)
	@RequestMapping(method = RequestMethod.GET, "/xml/{id}", produces = MediaType.APPLICATION_XML_VALUE)
	public Person retrieve(@PathVariable Long id) {
		// ...
	}
}

@Component
public class SpringDataRestCustomization extends RepositoryRestConfigurerAdapter {

  @Override
  public void configureRepositoryRestConfiguration(RepositoryRestConfiguration config) {

    config.addCorsMapping("/person/**")
        .allowedOrigins("http://domain2.com")
        .allowedMethods("PUT", "DELETE")
        .allowedHeaders("header1", "header2", "header3")
        .exposedHeaders("header1", "header2")
        .allowCredentials(false).maxAge(3600);
  }
}
2016-10-28 14:19:26 +02:00
Oliver Gierke
7bfe442691 DATAREST-903 - Updated changelog. 2016-09-29 14:42:09 +02:00
Oliver Gierke
f5ad5d23c2 DATAREST-913 - Updated changelog. 2016-09-29 11:42:09 +02:00
Oliver Gierke
8492063779 DATAREST-901 - Updated changelog. 2016-09-21 08:08:43 +02:00
Oliver Gierke
bd2d3907a6 DATAREST-842 - Updated changelog. 2016-09-21 08:08:41 +02:00
Jens von Pilgrim
7d0c3d1476 DATAREST-859 - Fix links to included code in conditionals reference documentation.
Original pull request: #217.
2016-09-19 15:40:34 +02:00
Craig Dennis
3d9ed01d3f DATAREST-858 - Fix links to included code in security reference documentation.
Original pull request: #212.
2016-09-19 15:40:20 +02:00
Oliver Gierke
ba8dbc1163 DATAREST-803 - Prepare 2.6 M1 (Ingalls). 2016-07-27 13:51:38 +02:00
Oliver Gierke
31bb5834de DATAREST-803 - Updated changelog. 2016-07-27 13:51:34 +02:00
Oliver Gierke
aa1b1f7843 DATAREST-804 - Updated changelog. 2016-06-15 14:31:49 +02:00
Oliver Gierke
5f3305dd07 DATAREST-802 - Updated changelog. 2016-04-06 23:14:26 +02:00
Oliver Gierke
18173c96bf DATAREST-790 - Prepare 2.5 GA (Hopper). 2016-04-06 16:34:46 +02:00
Oliver Gierke
cfbeab88d2 DATAREST-790 - Updated changelog. 2016-04-06 16:34:40 +02:00
Massimo Mangoni
78c468532b DATAREST-790 - Fixed typos in the reference documentation.
Original pull request: #203.
2016-04-06 13:26:23 +02:00
Oliver Gierke
90d94df1ea DATAREST-782 - Prepare 2.5 RC1 (Hopper). 2016-03-18 11:06:58 +01:00
Oliver Gierke
1d867d6474 DATAREST-782 - Updated changelog. 2016-03-18 11:06:54 +01:00
Oliver Gierke
6b9f274388 DATAREST-766 - Updated changelog. 2016-02-23 14:27:24 +01:00
Oliver Gierke
790b861f81 DATAREST-756 - Prepare 2.5 M1 (Hopper). 2016-02-12 15:36:20 +01:00
Oliver Gierke
51617131bc DATAREST-756 - Updated changelog. 2016-02-12 15:36:14 +01:00
Oliver Gierke
7e3b426ee9 DATAREST-731 - Updated changelog. 2015-12-18 11:04:35 +01:00
Vladimir Tsukur
8744b9c2f4 DATAREST-711 - Actualized examples with projection configuration and fixed typos.
Original pull request: #202.
2015-12-16 16:28:08 +01:00
Oliver Gierke
959ddf8e15 DATAREST-724 - Updated documentation to mention new Java 8 config options for URI customization. 2015-12-10 12:46:42 +01:00
Oliver Gierke
44ab756873 DATAREST-724 - Added support for customizing the property to be used for URI generation.
Spring Data REST now exposes an EntityLookup interface that allows to customize the property of an entity that shall be used to create item resource URIs. By default this mechanism uses the backend identifier and uses the repository's findOne(…) method.

The EntityLookup now exposes one method to return the property value to be used for URI generation as well as one method to obtain the entity instance from the very same raw identifier value. The EntityLookups are registered with both the SelfLinkProvider (for link creation) and the RepositoryInvoker (to obtain the entity instance).
2015-12-09 12:42:15 +01:00
Oliver Gierke
e50a9dcb89 DATAREST-714 - Reference documentation now mentions RepositoryrestConfigurer instead of RepositorytestMvcConfiguration.
Fixed documentation on how to customize Spring Data REST by moving away from extending RepositoryRestMvcConfiguration to RepositoryRestConfigurer.
2015-11-25 14:46:00 +01:00
Oliver Gierke
f497f40746 DATAREST-473 - Reference documentation updates for repository detection strategy. 2015-11-25 14:44:38 +01:00