-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Add http endpoints for JabMap #13519
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
155 commits
Select commit
Hold shift + click to select a range
6d4abb3
Try to have first endpoint
koppor 82c01d0
Refine ServerCLI
koppor 4cbe324
Add initial support for "demo"
koppor 4b344e5
Add JAbSrvLauncher
koppor 142d29f
Add hint to start.
koppor 528c588
Merge branch 'main' into jabmap
koppor d49c116
Merge remote-tracking branch 'origin/main' into jabmap
koppor ea620a5
initial cayw
palukku 7d57d0e
Merge branch 'main' into cayw
palukku 0877a93
fix issues mentioned by subhramit
palukku 546b32a
Merge branch 'JabRef:main' into cayw
palukku 3cdbc6d
Merge branch 'cayw' into jabmap
koppor 9b52f2f
Merge branch 'main' into cayw
koppor 7c2826f
Merge branch 'JabRef:main' into cayw
palukku a673d68
Merge remote-tracking branch 'origin/main' into jabmap
koppor bf276cb
WIP: for get preview
koppor 3005b75
Finalize endpoint
koppor 4911107
Merge remote-tracking branch 'origin/main' into cayw
koppor 4ae1a03
Merge branch 'cayw' into add-cyaw
koppor 93beea3
Merge branch 'jabmap' into add-cyaw
koppor 3404185
Merge pull request #1 from iloveskittles82/add-cyaw
koppor 57b7ad1
change get mindmap json method
iloveskittles82 ee66720
add test to rest-api
iloveskittles82 9faad94
Merge remote-tracking branch 'origin/jabmap' into jabmap
iloveskittles82 795d229
Merge branch 'JabRef:main' into cayw
palukku 50d4e68
added new formatting for the entry preview get request and another test
iloveskittles82 1e176fd
added html preview get function
iloveskittles82 bca73f6
WIP added method which returns list of all pdf files in library
iloveskittles82 fa06686
Merge branch 'JabRef:main' into cayw
palukku d96ed1e
Merge branch 'JabRef:main' into cayw
palukku 4931bb5
added method for getting json list of pdf files in library and create…
iloveskittles82 be6bd38
minor adjustments
iloveskittles82 700885c
fixed check for online-reference pdf
iloveskittles82 18e105d
Merge branch 'JabRef:main' into cayw
palukku 91ffba8
initial cayw
palukku 2e49274
initial cayw
palukku d2da505
Merge branch 'main' into cayw
palukku b72a1ce
fix issues mentioned by subhramit
palukku 015d5a3
Merge branch 'JabRef:main' into cayw
palukku 2f895ec
Merge branch 'main' into cayw
koppor 0626829
Merge branch 'JabRef:main' into cayw
palukku 0a6743b
Merge remote-tracking branch 'origin/main' into cayw
koppor 0825582
Merge branch 'JabRef:main' into cayw
palukku 7e9c94f
Merge branch 'JabRef:main' into cayw
palukku 85ef99e
Merge branch 'main' into cayw
palukku 04a1fab
fix issues mentioned by subhramit
palukku 62c7929
Merge branch 'JabRef:main' into cayw
palukku c3828cf
Merge branch 'main' into cayw
koppor edf2b71
Merge branch 'JabRef:main' into cayw
palukku f516650
Merge remote-tracking branch 'origin/main' into cayw
koppor 54f3937
Merge branch 'JabRef:main' into cayw
palukku 90e4c96
Merge branch 'JabRef:main' into cayw
palukku 6bc30a0
Merge branch 'JabRef:main' into cayw
palukku 22200fc
Merge branch 'JabRef:main' into cayw
palukku 59cece2
fix minor comments and add librarypath (#3)
palukku 99ff753
Merge remote-tracking branch 'origin/cayw' into cayw
palukku 89d09f8
Fix submodules
palukku f7de70a
fix jabrefHost.py
palukku a9d66b2
fix jabrefHost.py
palukku caca932
Discard changes to jabgui/buildres/linux/jabrefHost.py
koppor f32016f
Discard changes to jabgui/buildres/macos/Resources/jabrefHost.py
koppor 56eabd3
Fix mode
koppor 64ae673
changed port for the http server
palukku 15da4da
fix modifier order
palukku cd9fb2f
modernize file input
palukku 54eef3d
add changes to CHANGELOG.md
palukku 06a2d5a
fix small things
palukku 70865c1
Add icon for dialog
koppor 92dadba
Merge branch 'cayw' of github.com:palukku/jabref into cayw
koppor 0b17fa0
Apply suggestions from code review
koppor 4f516fc
Fix import
koppor 889bc1b
change paths.get to path.of
palukku 5822b8b
Merge remote-tracking branch 'origin/cayw' into cayw
palukku 5389fdc
Polish strings
koppor ceebe6d
reuse limit from Stringutil and fix comments
palukku e3176ee
Merge remote-tracking branch 'origin/cayw' into cayw
palukku bd88c8a
reuse limit from Stringutil and fix comments
palukku f018a9a
changed modifier private
palukku dd2ac4f
use latest library
palukku d58a196
Apply suggestions from code review
koppor 4986c3f
Merge branch 'main' into cayw
koppor 83d8635
Magic merge commit for PR #13185
koppor d88ce8d
Merge into cayw
koppor a669931
Merge branch 'cayw' into jabmap
koppor 845328e
Merge remote-tracking branch 'origin/main' into jabmap
koppor 070f03e
Merge branch 'main' into jabmap
koppor 7225214
Remove remoteThread from HeadlessExecutorService
koppor efd8435
Initial HttpServerManager
koppor 9621a46
Remove duplicate code
koppor 8fee8b6
Make http server available in the GUI
koppor 6f9ecda
Fix class name
koppor 6bbe5ad
Add to preferences
koppor 36efdb3
Fix JabSrv CLI startup
koppor 55a381b
Fix port in rest-api.http
koppor 679f01b
Merge remote-tracking branch 'origin/main' into http-in-gui
koppor b6a4f65
Fix CLI start
koppor e0074e8
Add some debug for shutdown
koppor f929f68
Fix libraries for GUI
koppor a43be05
Enable start of http server on JabRef start
koppor 84ffa73
Proper shutdown
koppor 5257c2d
Merge branch 'http-in-gui' into jabmap
koppor af42217
fix port numbers
koppor 233f6c9
Fix checkstyle
koppor a461055
Fix tests
koppor 25d0b14
Merge branch 'http-in-gui' into jabmap
koppor 4e09e8a
Merge branch 'main' into http-in-gui
koppor 34b0d79
Merge branch 'http-in-gui' into jabmap
koppor 1864c41
Merge remote-tracking branch 'origin/main' into jabmap
koppor 39aad76
Magic merge commit for PR #13457
koppor fff413c
Merge into jabmap
koppor f01526d
add "N/A" when missing parent citationkey in pdfDTO
iloveskittles82 d7a785c
Merge remote-tracking branch 'origin/jabmap' into jabmap
iloveskittles82 a184c29
Hotfix for CAYW in GUI
koppor 87f4998
Merge branch 'fix-cayw' into jabmap
koppor 3586448
Merge branch 'main' into fix-cayw
koppor 26c8f00
Add support for library ids in CAYW
koppor 097026f
Merge branch 'fix-cayw' into add-bib-ids-to-cayw
koppor fa64252
Reformat code
koppor b50c333
Try to have focus
koppor 560852a
Add demo to cayw.http
koppor ac05b28
Magic merge commit for PR #13470
koppor 9b9b53c
Merge into add-bib-ids-to-cayw
koppor 3de0cf2
Merge branch 'add-bib-ids-to-cayw' into jabmap
koppor c3d991d
Adapt LibraryResource to ServerUtils
koppor ffb65a2
OpenRewrite
koppor 0ff2a73
Merge branch 'add-bib-ids-to-cayw' into jabmap
koppor 2c5f704
Magic merge commit for PR #13470
koppor 82c736b
Merge into jabmap
koppor d167546
Magic merge commit for PR #13471
koppor 03391b8
Merge into jabmap
koppor 68e4895
Merge branch 'main' into jabmap
koppor 8385a64
Fix JabSrvLauncher
koppor 56efda7
fix internal server issue upon request
iloveskittles82 10390ed
Merge branch 'main' into jabmap
koppor 22b8524
Merge branch 'main' into jabmap
koppor 6ec24a0
Merge branch 'main' into jabmap
koppor bbbdae4
add get request method for retrieving all annotations in a library as…
iloveskittles82 88a6692
removed `//TODO` line and added getters for PDFAnnotationDTO
iloveskittles82 8cb5d1d
Merge branch 'main' into jabmap
koppor 98f52f8
added endpoint for a list of all pdf annotations in library
iloveskittles82 426f782
Merge remote-tracking branch 'origin/jabmap' into jabmap
iloveskittles82 d004ac5
Added Javadoc comments and a new standard mindmap.
iloveskittles82 b141b8e
added two sources for annotations endpoint
iloveskittles82 d05d417
updated default mindmap for server
iloveskittles82 72d6dc4
rename PDFAnnotationDTO to PdfAnnotationDTO to match LinkedPdfFileDTO…
iloveskittles82 37dc4eb
Unified JavaDoc style
iloveskittles82 d474bb4
simplify CORS filter
iloveskittles82 a978973
Merge branch 'main' into jabmap
koppor 9cb47c7
more cleanup
iloveskittles82 c10f612
did a rewrite run
iloveskittles82 4eaa897
added more javadoc and paths for requests
iloveskittles82 51fde13
fixed "put" request error
iloveskittles82 91e34b8
remove annotation endpoint
iloveskittles82 a84dd38
Merge branch 'main' into jabmap
iloveskittles82 0d306f9
Remove unused DTOs
koppor File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
jabsrv/src/main/java/org/jabref/http/dto/LinkedPdfFileDTO.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| package org.jabref.http.dto; | ||
|
|
||
| import org.jabref.model.entry.BibEntry; | ||
| import org.jabref.model.entry.LinkedFile; | ||
|
|
||
| public class LinkedPdfFileDTO { | ||
| private final String fileName; | ||
| private final String parentCitationKey; | ||
| private final String path; | ||
|
|
||
| public LinkedPdfFileDTO(BibEntry parentEntry, LinkedFile file) { | ||
| this.parentCitationKey = parentEntry.getCitationKey().orElse("N/A"); | ||
| this.path = file.getLink(); | ||
| this.fileName = path.substring(path.lastIndexOf('/') + 1); | ||
| } | ||
|
|
||
| public String getFileName() { | ||
| return fileName; | ||
| } | ||
|
|
||
| public String getParentCitationKey() { | ||
| return parentCitationKey; | ||
| } | ||
|
|
||
| public String getPath() { | ||
| return path; | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.