Skip to content

Commit

Permalink
Removed XML serialization for easier proxying.
Browse files Browse the repository at this point in the history
  • Loading branch information
bitzl committed Apr 22, 2016
1 parent f4c01a8 commit 9ee8246
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
3 changes: 0 additions & 3 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,3 @@ This service also offers a freely configurable demo object (see application.yml.

In application.yml one can define one PID with the desired response for testing. In case of this PID, the underlying archive won't be queried.

## Content Negotiation

If not ordered otherwise the service produces JSON. To get an XML representation, use `Accept: application/xml` header or add ".xml" at the end of the URL *(experimental)*.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>de.multimedia.emulation.emil.integration</groupId>
<artifactId>framework</artifactId>
<version>1.0-RELEASE</version>
<version>1.1-RELEASE</version>
<name>EMiL - Integration Microservice Framework</name>
<packaging>jar</packaging>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public EmilController(ArchiveService archiveService, DemoService demoService) {
* @return A representation of the object and all suitable files.
* @throws Exception if the request fails.
*/
@RequestMapping(value = "/{id}", method = RequestMethod.GET, produces = {"application/json", "application/xml"})
@RequestMapping(value = "/{id}", method = RequestMethod.GET, produces = {"application/json"})
@ResponseBody
public ArchiveObject get(@PathVariable("id") String id) throws Exception {
if (demoService.isDemoObjectId(id)) {
Expand Down

0 comments on commit 9ee8246

Please sign in to comment.