Commit Graph

128 Commits

Author SHA1 Message Date
Oliver Gierke
89d026b7e7 DATAREST-1110 - Prepare 2.6.6 (Ingalls SR6). 2017-07-26 23:45:52 +02:00
Oliver Gierke
53f847457e DATAREST-1110 - Updated changelog. 2017-07-26 23:45:46 +02:00
Oliver Gierke
0b723e6138 DATAREST-1111 - Updated changelog. 2017-07-25 16:15:50 +02:00
Oliver Gierke
f06d3b104c DATAREST-1093 - Updated changelog. 2017-07-25 10:04:04 +02:00
Oliver Gierke
72cc9213e2 DATAREST-1090 - Prepare 2.6.5 (Ingalls SR5). 2017-07-24 18:43:24 +02:00
Oliver Gierke
825831b43c DATAREST-1090 - Updated changelog. 2017-07-24 18:43:18 +02:00
Mark Paluch
4cd191c661 DATAREST-1071 - Updated changelog. 2017-06-14 17:35:00 +02:00
Mark Paluch
f5837901a5 DATAREST-1059 - Prepare 2.6.4 (Ingalls SR4). 2017-06-08 10:56:03 +02:00
Mark Paluch
911e0d4ce2 DATAREST-1059 - Updated changelog. 2017-06-08 10:56:00 +02:00
Mark Paluch
88a37c529c DATAREST-1058 - Updated changelog. 2017-06-07 12:23:37 +02:00
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