[Koha-bugs] [Bug 17314] New: REST API: Add API route to create, list and delete a purchase suggestion
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Sun Sep 18 16:59:45 CEST 2016
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17314
Bug ID: 17314
Summary: REST API: Add API route to create, list and delete a
purchase suggestion
Change sponsored?: ---
Product: Koha
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P5 - low
Component: Web services
Assignee: koha-bugs at lists.koha-community.org
Reporter: mail at jkozlovsky.cz
QA Contact: testopia at bugs.koha-community.org
It would be nice to have an API for creating a purchase suggestion.
It would be used for instance in VuFind.
Proposed implementation:
To create:
POST /suggestions/{borrowernumber}
Incoming data:
{
title (required)
author
copyrightdate
isbn
publishercode
collectiontitle
place
itemtype
patronreason
note
negcap
}
Outcoming data:
200 OK / 403 Forbidden / 409 Conflict (when already exists the proposal)
{
error
status
}
To list:
GET /suggestions/{borrowernumber}
Outcoming data:
list of suggestions
To delete:
DELETE /suggestions/{borrowernumber}/{suggestion_id}
Outcoming data:
204 No Content (successful deletion) / 403 Forbidden / 404 Not Found
--
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
More information about the Koha-bugs
mailing list