Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Source WebAPI #24

Closed
okorshenko opened this issue May 19, 2017 · 0 comments
Closed

Source WebAPI #24

okorshenko opened this issue May 19, 2017 · 0 comments
Assignees

Comments

@okorshenko
Copy link

okorshenko commented May 19, 2017

Description

To allow integration with the external services Web API for Source Management is required. It should provide set of endpoints enabling third-parties with CRUD operations on Sources.

Acceptance Criteria

  • Source Management Web API operates with the data structures described in
    SourceInterface
  • Source Management Provides the following list of operations on Sources:
    • Loading of the single Source entity by identifier with the GET request.
    • Loading the list of Sources filtered by search criteria with the GET request.
    • Creation of the new Source from the SourceInterface data with the POST request.
    • Update of the existing Source providing identifier and SourceInterface data with the PUT request.
  • ACL is defined for endpoints.

Details

Resource Request method Permissions Payload Response Implementation Description
/V1/inventory/source/:sourceId GET Admin InventoryApi::source SourceInterface Magento\InventoryApi\Api\SourceRepositoryInterface::get Get Single Source by identifier
/V1/inventory/source/search GET Admin InventoryApi::source SourceInterface[] Magento\InventoryApi\Api\SourceRepositoryInterface::getList Load Sources filtered by Search Criteria
/V1/inventory/source POST Admin InventoryApi::source, InventoryApi::source_edit SourceInterface Created source_id Magento\InventoryApi\Api\SourceRepositoryInterface::save Create Source
/V1/inventory/source/:sourceId PUT Admin InventoryApi::source SourceInterface SourceInterface Magento\InventoryApi\Api\SourceRepositoryInterface::save Update Source

Documentation: Source WebAPI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants