add JabRef layout rendering to REST-API

Issue #1338 wontfix
Robert Jäschke created an issue

It should suffice to write an implementation of org.bibsonomy.rest.renderer.Renderer that acts as proxy for org.bibsonomy.services.renderer.LayoutRenderer. I.e., map

public void serializePosts(Writer writer, List<? extends Post<? extends Resource>> posts, ViewModel viewModel) throws InternServerException;

to

public <T extends Resource> StringBuffer renderLayout(final LAYOUT layout, final List<Post<T>> posts, final boolean embeddedLayout) throws LayoutRenderingException, IOException;

All other methods should either be ignored (UnsupportedOperationException, UnsupportedRenderingFormat, or something like this)? or deliver some reasonable output.

Choosing rendering formats should/could be done via accept headers. Either "Accept: layout/harvard" or something similar.

Comments (2)

  1. Log in to comment