Bug 29668

Summary: Add API route to create a basket
Product: Koha Reporter: Julian Maurice <julian.maurice>
Component: REST APIAssignee: Julian Maurice <julian.maurice>
Status: Patch doesn't apply --- QA Contact:
Severity: enhancement    
Priority: P5 - low CC: jonathan.druart, paul.derscheid, tomascohen
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:
Attachments: Bug 29668: Add API route to add a basket

Description Julian Maurice 2021-12-09 07:26:06 UTC

    
Comment 1 Julian Maurice 2021-12-09 07:27:42 UTC
Created attachment 128371 [details] [review]
Bug 29668: Add API route to add a basket

Example usage:

POST /api/v1/acquisitions/baskets

{
    "vendor_id": 1,
    "name": "Basket #1",
}

Test plan:
1. Try requesting this endpoint with your favorite API tool
   (I recommend https://github.com/frigus02/RESTer)
2. Run `prove t/db_dependent/api/v1/acquisitions_baskets/post.t`
Comment 2 Paul Derscheid 2022-05-20 10:37:45 UTC
This isn't compatible with the current master branch because of some changes in the api directory structure, but I think you already know.

Some merge conflicts have to be resolved. There is the new route acquisitions/baskets/managers which probably wasn't there yet when this patch was written.