The Totsy REST API server implementation is a PHP web application built atop the open-source REST web service framework Sonno and the Magento e-commerce platform.
The application expects two environment variables set (typically provided in the web server configuration):
-
API_ENV
is the application environment: dev | stg | prod -
MAGENTO_ROOT
is the base path to the Magento web application root.
The project uses PHP Composer for dependency management. Specific dependencies can be found in the package.json
file.
However, the only other dependency of the project, outside the scope of composer, is a Magento installation. The path to a local Magento installation must be supplied in a $MAGENTO_ROOT
environment variable.
All documentation is located in the doc
directory.
Reference documentation (usage instructions) are located at doc/ref/
.
The official Web Application Description Language (WADL) specification document is located at doc/wadl/totsy.wadl
. A human-readable version of this document can be generated from this WADL file using the doc/wadl/totsy_wadl_doc-2006-10.xsl
XSL stylesheet.
- Add a suite of integration tests using Guzzle and unit tests using the EcomDev_PHPUnit module.
- Add analytics.