openlibhums / janeway

A web-based platform for publishing journals, preprints, conference proceedings, and books
https://janeway.systems/
GNU Affero General Public License v3.0
172 stars 65 forks source link

Preprint endpoint in API #3010

Open alainna opened 2 years ago

alainna commented 2 years ago

Is your feature request related to a problem? Please describe. It would be beneficial to external connections to have a preprint endpoint in the Janeway API

Describe the solution you'd like Preprint endpoint in Janeway API; get preprint metadata in tasty XML/Json format. yay!

Things we'd expect that the preprint API would be able to access:

Uncertain, but assuming that API may need access to some of the data:

At this point, I would assume that, with the exception of comments and discussion, the main Repository_xxx tables would need to be accessed via the API for the POST/PUT functionality, whilst the main ones in the first chunk above may be the only ones required for the GET functionality. (This expectation may be incorrect.)

alainna commented 2 years ago

@ajrbyers FYI, added the tables with data I'd expect that we would wish to be accessible via API.

hardyoyo commented 2 years ago

@alainna I wonder if you could have a look at the API endpoint added by #3166 and let me know what's still missing? The Django REST Framework mostly adheres to the Django object models, so... getting anything more than the preprint model onto the preprint endpoint will take some creative coding.