eblondel/zen4R

Zenodo to InvenioRDM - update record management methods with new API endpoint

eblondel opened this issue · 0 comments

Creation / Update

  • depositRecord / createEmptyRecord
    • create: api/deposit/depositions --> api/records
    • update: api/deposit/depositions/{id} --> api/records/{id}/draft
  • depositRecordVersion

Read

User records / drafts (Depositions)

  • getDepositions
    • api/deposit/depositions --> api/user/records
    • all_versions query param changed to allversions
    • change response resp to resp$hits$hits
  • getDepositionById
  • getDepositionByDOI
  • getDepositionByConceptId
  • getDepositionByConceptDOI

Published records

  • getRecords
    • trailing slash to remove from API endpoint
    • all_versions query param changed to allversions
  • getRecordById
  • getRecordByDOI
  • getRecordByConceptId
  • getRecordByConceptDOI

Deletion

  • deleteRecord
    • api/deposit/depositions/{id} --> api/records/{id}/draft
  • deleteRecordByDOI
  • deleteRecords