AtlasOfLivingAustralia / doi-service

ALA DOI minting service - integrates with ANDS to produce the DOI, provides a landing page, and stores the associated file
https://doi.ala.org.au/
0 stars 4 forks source link

Convert existing API to RESTful #19

Closed sbearcsiro closed 6 years ago

sbearcsiro commented 7 years ago

Presently doi-service exposes 3 API endpoints:

POST /api/v1/doi/mintDoi GET /api/v1/doi/$id GET /api/v1/doi/$id/download

Convert these into a more RESTful style, eg:

POST /api/doi GET /api/doi/$id GET /api/doi/$id/file

Include versioning via the Accept-Version header (Grails has built in support for this).

Keep the old URLs as redirects to the new methods where possible.

Note: due to the "/" embedded in DOIs, we're precluded from using the built in Grails "resources" URL mapping method as best I can tell.

javier-molina commented 6 years ago

Already in prod