Skip to content

Create BibEntryResource #13588

@koppor

Description

@koppor

JabRef has a build-in http server.

Currently, the BibEntry handling is included at org.jabref.http.server.LibraryResource. Example: org.jabref.http.server.LibraryResource#getPlainRepresentation.

Task:

  1. Move all @Path("entries/{entryId}") annotated methods to BibEntryResource.java (which needs to be created)
  2. Add BibEntryResource to org.jabref.http.server.Server#startServer
  3. Check that everything works using jabsrv/src/test/rest-api.http --> http://localhost:23119/libraries/demo/entries/Corti_2009
  4. Create BibEntryResourceTest.java similar to org.jabref.http.server.LibraryResourceTest, but test BibEntry---

@Path("entries/pdffiles") annoted methods should be kept. We handle BibDatabaseContext and BibDatabase both in LibraryResource (currently).

Metadata

Metadata

Labels

component: jabsrvJabRef's http servergood first issueAn issue intended for project-newcomers. Varies in difficulty.📍 AssignedAssigned by assign-issue-action (or manually assigned)🔔 reminder-sent

Type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions