java-tutorials/spring-rest
Tomasz Lelek 4d8949f659 Custom media types rest (#946)
* Custom Media Types for REST

* add test, add DTO, remove example of API versioning to make example simpler

* client accept only that custom-media type

* remove not needed new_line

* leave custom media type on class level

* do not need content type header

* GET do not need content-Type

* add liveTest for custom Content type

* Merge branch 'master' of https://github.com/eugenp/tutorials into Custom_media_types_rest

# Conflicts:
#	spring-rest/src/main/java/org/baeldung/web/controller/mediatypes/CustomMediaTypeController.java
#	spring-rest/src/main/java/org/baeldung/web/dto/BaeldungItem.java
#	spring-rest/src/test/java/org/baeldung/web/controller/mediatypes/CustomMediaTypeControllerTest.java

* test name proper given_when_then pattern

* add custom content-type 'application/json-p'

* import proper class

* proper test name

* proper API migraton test, SecondBaeldungItem breaks backward compatibility

* add proper endpoint
2016-12-30 15:15:55 -06:00
..
src Custom media types rest (#946) 2016-12-30 15:15:55 -06:00
.gitignore project restructure for cleanup purposes 2013-07-26 12:08:21 +03:00
README.md Created README.md and added relevant articles (#901) 2016-12-18 02:15:07 -06:00
pom.xml formatting work 2016-12-28 16:35:14 +02:00