tika-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kathrincolyn <kathrinco...@yahoo.in>
Subject Re: [jira] [Commented] (TIKA-1497) tika-server cannot output JSON
Date Tue, 23 Dec 2014 08:57:12 GMT
Hi Tim, we are all JAX-RS experts here, JAX-RS is the easiest part :-)+1  to
merging MetadataEp into MetadataResourceThanks, Sergey> tika-server cannot
output JSON http://fixithere.net/ <http://fixithere.net/>  >
------------------------------>>                 Key: TIKA-1497>                
URL: https://issues.apache.org/jira/browse/TIKA-1497>             Project:
Tika>          Issue Type: Improvement>          Components: server>           
Reporter: Peter Bowyer>         Attachments: TIKA-1497.patch,
TIKA-1497v2.patch>>> I would like the response from> curl -X PUT -T
/path/to/file.pdf http://localhost:9998/meta> to be JSON and not CSV?.> I've
discovered JSONMessageBodyWriter.java
so I think the functionality is present, tried adding --header "Accept:
application/json" to the cURL call, in line with the documentation for
outputting CSV, but no luck so far.> According to [~sergey_beryozkin]> "I
see MetadataResource returning StreamingOutput and it has
@Produces(text/csv) only. As such this MBW has no effect at the moment.> We
can update MetadataResource to return Metadata directly if application/json
is requested or update MetadataResource to directly convert Metadata to JSON
in case of JSON being accepted."... [show rest of quote]-- This message was
sent by Atlassian JIRA(v6.3.4#6332) 

View this message in context: http://lucene.472066.n3.nabble.com/jira-Commented-TIKA-1497-tika-server-cannot-output-JSON-tp4175237p4175722.html
Sent from the Apache Tika - Development mailing list archive at Nabble.com.
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message