DiVA REST Api
Create
To create data, use:
POST http://epc.ub.uu.se/diva/rest/record/theTypeYouWantToCreate
Examples of what the body should look like can be found here:
AbstractRecordType
Read
To read a list of types, use:
GET http://epc.ub.uu.se/diva/rest/record/theTypeYouWantToRead
To read an instance of a type, use:
GET http://epc.ub.uu.se/diva/rest/record/theTypeYouWantToRead/theIdOfTheInstanceYouWantToRead
Update
To update data use:
POST http://epc.ub.uu.se/diva/rest/record/theTypeYouWantToUpdate/theIdOfTheDataYouWantToUpdate
Examples of what the body should look like can be found here:
AbstractRecordType
Delete
To delete data use:
DELETE http://epc.ub.uu.se/diva/rest/record/theTypeYouWantToUpdate/theIdOfTheDataYouWantToDelete
Further documentation
You can find further documentation in the official DiVA-wiki: https://wiki.epc.ub.uu.se/x/P4UhBQ.
Examples can be found in our acceptance tests