Resource for Orderable's fulfillment with other Orderables when CommodityTypes and TradeItems are defined

Description

As an OpenLMIS developer, when building workflows I need an API that answers two questions about the Orderables that I work with so that I may know which other Orderables...

GET /api/orderableFulfills
http://jsoneditoronline.org/?id=07dd6c27c4e436f545fca7b40f874aa9

Or with search parameters:
GET /api/orderableFulfills?id=uuidX&id=uuidY&...
http://jsoneditoronline.org/?id=07dd6c27c4e436f545fca7b40f874aa9

The format of the response for both is an object whose keys are Orderable UUIDs. If the second form with search params are given, those keys will be the UUIDs given in the URI.

The value of each key is two fields:

  • canFulfillForMe

  • canBeFulfilledByMe

note: the id's here are short examples, in implementation they should all be Orderalbe UUIDs
lookout for: long URI's returning HTTP 414

AC:

  • A GET operation exists in Reference Data at GET /api/orderableFulfills

  • The response is similar to the example above

  • Search is possible through URI parameters, asking for specific Orderable UUIDs

  • do not page the response

  • do not etag the response

QAlity Plus - Test Management

Checklists

Activity

Klaudia Pałkowska 
January 25, 2018 at 12:45 PM

I tested the ticket and everything works properly.

Paweł Albecki 
January 18, 2018 at 12:53 PM

Mateusz Kwiatkowski 
January 18, 2018 at 12:50 PM

should "canFulfillForMe" and "canBeFulfilledByMe" fields be populated using identifiers from Orderable to find Commodity Types/Trade Items?

Done
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Story Points

Original estimate

Time tracking

1d 6h logged2h remaining

Components

Sprint

Fix versions

Priority

Time Assistant

Created January 17, 2018 at 4:40 PM
Updated February 28, 2018 at 11:07 PM
Resolved January 25, 2018 at 12:44 PM

Flag notifications