Commit Graph

143 Commits

Author SHA1 Message Date
Oliver Gierke
c8d8ed7e5f DATAREST-1128 - Updated changelog. 2017-10-11 19:01:42 +02:00
Mark Paluch
3ea2847bf0 DATAREST-1129 - Prepare 3.0 GA (Kay). 2017-10-02 11:09:17 +02:00
Mark Paluch
8b0df947cd DATAREST-1129 - Updated changelog. 2017-10-02 11:09:14 +02:00
Mark Paluch
69ef4ef42d DATAREST-1138 - Adapt to changed Spring Framework 5 documentation structure.
Update links in the reference docs to their new locations.
2017-09-27 14:04:30 +02:00
Oliver Gierke
aff2608077 DATAREST-1112 - Prepare 3.0 RC3 (Kay). 2017-09-11 17:23:52 +02:00
Oliver Gierke
618667582b DATAREST-1112 - Updated changelog. 2017-09-11 17:23:47 +02:00
Mark Paluch
9a48da9e16 DATAREST-1114 - Updated changelog. 2017-09-11 12:44:06 +02:00
Oliver Gierke
5e5c2fd89b DATAREST-1110 - Updated changelog. 2017-07-27 00:49:00 +02:00
Oliver Gierke
0d52e0ffab DATAREST-1111 - Prepare 3.0 RC2 (Kay). 2017-07-25 15:33:33 +02:00
Oliver Gierke
157105182d DATAREST-1111 - Updated changelog. 2017-07-25 15:33:28 +02:00
Oliver Gierke
1215fef4cc DATAREST-1093 - Prepare 3.0 RC1 (Kay). 2017-07-25 09:48:02 +02:00
Oliver Gierke
3d799f21ba DATAREST-1093 - Updated changelog. 2017-07-25 09:47:57 +02:00
Oliver Gierke
e73b123957 DATAREST-1090 - Updated changelog. 2017-07-24 22:20:44 +02:00
Mark Paluch
ff3998290e DATAREST-1071 - Prepare 3.0 M4 (Kay). 2017-06-14 17:03:00 +02:00
Mark Paluch
a6b3bdf438 DATAREST-1071 - Updated changelog. 2017-06-14 17:02:59 +02:00
Mark Paluch
d1b59f8cf6 DATAREST-1059 - Updated changelog. 2017-06-08 11:56:20 +02:00
Mark Paluch
978b287a6f DATAREST-1058 - Updated changelog. 2017-06-07 12:23:36 +02:00
Mark Paluch
5d41cb01ec DATAREST-1052 - Prepare 3.0 M3 (Kay). 2017-05-09 11:22:12 +02:00
Mark Paluch
0cf0c49843 DATAREST-1052 - Updated changelog. 2017-05-09 11:22:09 +02:00
Oliver Gierke
632ca25998 DATAREST-1057 - Updated changelog. 2017-04-19 21:04:20 +02:00
Oliver Gierke
7260c9553a DATAREST-1056 - Updated changelog. 2017-04-19 20:01:48 +02:00
Oliver Gierke
886f920093 DATAREST-1017 - Updated changelog. 2017-04-19 13:04:09 +02:00
Oliver Gierke
b5d5e2cdee DATAREST-1016 - Updated changelog. 2017-04-19 11:50:50 +02:00
Michael J. Simons
2a2c4154be DATAREST-1046 - Fix instructions how to manually add a validator.
Original pull request: #264.
2017-04-11 10:22:03 +02:00
Oliver Gierke
06c2b746c4 DATAREST-989 - Updated changelog. 2017-04-10 14:06:15 +02:00
Oliver Gierke
63504a7f0e DATAREST-946 - Prepare 3.0 M2 (Kay). 2017-04-04 21:12:02 +02:00
Oliver Gierke
95c013e507 DATAREST-946 - Updated changelog. 2017-04-04 21:11:57 +02:00
Mark Paluch
272dc179ad 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:13 +01:00
Oliver Gierke
e632196290 DATAREST-990 - Updated changelog. 2017-03-02 11:11:05 +01:00
Oliver Gierke
a612f4a2ac DATAREST-966 - Updated changelog. 2017-01-26 12:12:37 +01:00
Oliver Gierke
248250329f DATAREST-967 - Updated changelog. 2017-01-26 12:12:08 +01:00
Mark Paluch
69c39377ec 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:36:15 +01:00
Oliver Gierke
992512cf96 DATAREST-932 - Updated changelog. 2016-12-21 19:35:37 +01:00
Oliver Gierke
0b2f685a82 DATAREST-862 - Updated changelog. 2016-12-21 18:46:44 +01:00
Ken Dombeck
603db869c0 DATAREST-951 - Fixed example in sample in reference documentation.
Original pull request: #244.
2016-12-06 08:32:54 +01:00
Lukasz Kryger
80e9af743d DATAREST-960 - Fixed typos in reference documentation.
Fix typo "returnBodyOnupdate" -> "returnBodyOnUpdate".

Original pull request: #242.
2016-12-02 19:41:38 +01:00
Oliver Gierke
3f408ba0fd DATAREST-934 - Prepare 3.0 M1 (Kay). 2016-11-23 10:35:08 +01:00
Oliver Gierke
aa3fa8da91 DATAREST-934 - Updated changelog. 2016-11-23 10:35:04 +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