Add export formats BibTeX and Endnote to the REST API

Issue #1921 resolved
Sebastian Böttger created an issue

For TYPO3/Wordpress and other 3rd-party tools there are extensions/plugins for BibSonomy to extend functionality of these systems with BibSonomy features.

To reduce complexity of this extensions/plugins and to get consistent export formats in BibSonomy and in 3rd-party tools it is necessary to get the export formats from one source.

Additionally, at the moment we've the problem that private posts will be delivered from REST API but the their respective export formats are not reachable without being logged in.

Please add BibTeX and Endnote exports to the API.

For URL pattern I suggest:

/api/users/[username]/posts/[resourceHash]?format=(bibtex|endnote)

Comments (12)

  1. Robert Jäschke

    Should be possible by implementing a corresponding renderer, right? That's a "Fleißaufgabe" and nothing complicated. A nice job for a new student?

  2. Former user Account Deleted

    Done by adding BibTex and EndNote Renderers, which simply call toBibTex- and toEndnoteString from BibTex- and EndnoteUtils. Currently, if the post going through export, does not contain a ressource of type BibTex, a UnsupportedOperationException is thrown.

  3. Daniel Zoller

    Cleaned up all renderers that only exported posts into specific formats (see AbstractPostExportRenderer).

    Could you please check if the serializeError method must be implemented by all subtypes of AbstractPostExportRenderer?

  4. Former user Account Deleted

    If you want to output occuring errors in Renderer specific format then i would suggest yes.

  5. Log in to comment