thiagolima-bm / magento2_simpleApi

Simple Magento 2 API customization

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Acaldeira SimpleAPI

Magento 2 Acaldeira SimpleAPI Module

Description

This module shows how Magento 2 API works.

Compatibility

  • Magento >= 2.0

This library aims to support and is tested against the following PHP implementations:

  • PHP 7.0

Installation Instructions

Install using composer by adding to your composer file using commands:

  1. create a folder at magento's root folder called "acmodules"

  2. extract the extension inside the folder "acmodules/simpleapi"

  3. update Magento's composer.json file with the following

    2.1 add require

     "acaldeira/simpleapi": "*"
    

    2.2 add repositories

     {
         "type": "path",
         "url": "acmodules/simpleapi"
     }
    
  4. composer update

  5. bin/magento setup:upgrade

Testing Instructions

    GET 
        http://mymagentourl/rest/V1/simpleApi/product/:productId

Result:

Product Info

    POST 
        http://mymagentourl/rest/V1/simpleApi/product/calculateCost
    
        body {"options": {"productId": 100, "country": "US", "region": "New York", "postcode": "10010"}}

Result:

Quote Info

Support

Credits

Contribution

Any contribution is highly appreciated. The best way to contribute code is to open a pull request on GitHub.

License

Respect the Magento OSL license, which is included in this codebase.

Copyright

Copyright (c) 2017 Acaldeira.

About

Simple Magento 2 API customization


Languages

Language:PHP 100.0%