freme-project / e-Publishing

Apache License 2.0
0 stars 0 forks source link

406 response using example from documentation #16

Closed andish closed 9 years ago

andish commented 9 years ago

http://api-dev.freme-project.eu/doc/#!/e-Publishing/htmlToEPub Steps: 1) downloaded to my desktop the archive alice.zip 2) htmlZip field: chosen that zip from my local computer 3) metadata field: copied to clipborad and pasted content of 'Sample Metadata Json'

{  "titles":[     "Alice in Utopia",     "Alice in Europe"  ],  "creators":[     {         "firstName": "Joske",         "lastName": "Vermeulen",         "roles":["author"]     },     {         "firstName": "Nick",         "lastName": "Borth",         "roles":["author"]     }  ],  "contributors":[     {         "firstName": "Frans",         "lastName": "Vervaacke",         "roles":["illustrator"]     },     {         "firstName": "John",         "lastName": "Riplosh",         "roles":["illustrator"]     }  ],  "subjects":[     "alice",     "rabbit"  ],  "coverImage":"cover.jpeg",  "language":"en",  "descriptions":"This is the story about Alice in wonderland, involving a rabbit etc.",  "identifier":{     "value":"urn:1235-568-2235"  },  "tableOfContents":[     {        "title":"Chapter 1",        "resource":"01.xhtml"     },     {        "title":"Chapter 2",        "resource":"02.xhtml"     }  ] }

4) Button "Try it out"

Response Code: 406

OS: Windows 10 Browser: Chrome

josauder commented 9 years ago

I don't think this is an error in the Documentation. Also does not work with curl. Did any input parameters change?

pheyvaer commented 9 years ago

probably related to #17

jnehring commented 9 years ago

@andish Please test again when the documentation is updated through #17

andish commented 9 years ago

yes, it was related to incorect json sample. so I close this