You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tika.apache.org by "Nick Burch (Jira)" <ji...@apache.org> on 2022/03/07 23:33:00 UTC

[jira] [Commented] (TIKA-3694) Tika Server endpoint to return more details on a mime type

    [ https://issues.apache.org/jira/browse/TIKA-3694?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17502627#comment-17502627 ] 

Nick Burch commented on TIKA-3694:
----------------------------------

I've added new HTML and JSON endpoints {{/mime-types/type/subtype}} which return additional details on the specified type (or 404 if unknown), eg
{code:java}
{
  "extensions" : [ ".cbor" ],
  "acronym" : "CBOR",
  "alias" : [ ],
  "description" : "Concise Binary Object Representation container",
  "links" : [ "http://tools.ietf.org/html/rfc7049" ],
  "type" : "application/cbor",
  "defaultExtension" : ".cbor"
}{code}
On the basis that people may have custom parsing around the all-types Text and JSON endpoints, no change made there to the output. The all-types HTML endpoint now returns a little bit more info, and links to the full details one.

> Tika Server endpoint to return more details on a mime type
> ----------------------------------------------------------
>
>                 Key: TIKA-3694
>                 URL: https://issues.apache.org/jira/browse/TIKA-3694
>             Project: Tika
>          Issue Type: Improvement
>          Components: mime, server
>    Affects Versions: 2.3.0
>            Reporter: Nick Burch
>            Priority: Major
>
> As raised on the user list - [https://lists.apache.org/thread/mhtj6cgf323525hs6dow1oz68nkqwfgy] - users calling the Java APIs are able to get additional details on a mime type, such as common extensions and descriptions. Those calling the Tika Server can only get limited information on mime types, such as which are known to Tika
> In addition to the current {{/mime-types}} endpoint (html/json/text), we should add a more detailed one that takes a specific type.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)