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

Assignee

Łukasz Lewczyński

Reporter

Josh Zamor

Labels

None

Story Points

3

Time tracking

16h

Components

Sprint

None

Fix versions

Priority

Critical
Configure