Closed andish closed 9 years ago
The documentation has an error. The example JSON string has descriptions
as a String, but should be an array of Strings as explained in the documentation above.
So documentation needs to be updated.
@josauder please update the e-Publishing documentation. Change the JSON metadata example. I tested it and it works. @andish can you please check if this solves your problem?
{
"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"
}
]
}
Yes, now it is returning the result.
Request following:
alice.zip file was downloaded from the documentation page. http://api-dev.freme-project.eu/doc/#!/e-Publishing/htmlToEPub without success to use the service