Hi Again, i just pushed some new and great changes to the API, this is a brief description of the changes:
- Added .htaccess so you can now use API URL's without index.php, examples: (Thanks to Christian Estrella)
OLD: GET http://mysystem.com/api/index.php/locations/
NEW: GET http://mysystem.com/api/locations/
- Added Pagination to GET methods, it used to return all entries, now is per page, under index.php it has define("RESULTS_PER_PAGE", 2); that defines how many entries you will get per page, if you dont establish a page on the request you will get the first page. (Thanks to Christian Estrella)
OLD Request: GET http://mysystem.com/api/index.php/locations/
OLD Response: ALL LOCATIONS
NEW Request 1: GET http://mysystem.com/api/index.php/locations/
NEW Response 1: First Page of Locations
NEW Request 2: GET http://mysystem.com/api/index.php/locations/?page=5
NEW Response 2: Page 5 of Locations
- Added Sales Transactions Methods for Quotes, Sales Orders, Deliveries, Invoices (GET, PUT, POST)
NOTE: This changes hasn't been tested deeply, might have some bugs
GitHub Commit ID: https://github.com/andresamayadiaz/FrontAccountingSimpleAPI/commit/b94360564f2bf80fe6d466d85767897351cee3de
Hope everybody likes the changes and if you can help me do some testing i will really appreciate that.