Xebax
e12e1980fc
REST API: Add comments in the @deprecated tags.
2016-06-22 10:43:35 +02:00
Xebax
70ba8ec78d
REST API: Bring back the existing API (for backward compatibility).
...
Bring back the existing API and mark all the operations as deprecated.
Both the existing and the new API are documented and browsable with the
Restler API Explorer. The existing API appears under "root".
2016-06-22 10:08:54 +02:00
Xebax
9e9e224c46
REST API: fix deleting a product/service.
...
The global variable $user must be set before calling the
Product::delete() method else the check of permissions fails.
2016-06-21 23:08:22 +02:00
Xebax
4a0d554986
Revert "REST API: fix deleting a product/service."
...
This reverts commit d7c8a466b1 .
2016-06-21 22:54:38 +02:00
Xebax
3cac54741d
REST API: fix the index() method in Categories.
...
In the Categories class, set all the parameters of the index() method as
optional to make this method compatible with the one of the parent
class, DolibarrApi.
2016-06-20 17:56:33 +02:00
Xebax
388839296e
REST API: update the URLs in RestAPIUserTest.php.
2016-06-20 17:56:33 +02:00
Xebax
3b662d6ed8
REST API: improve the API to get/add categories for an item.
...
Move the GET /xxx/{id}/categories requests to the corresponding classes
(Contacts, Products, Thirdparties).
Move the addCustomerCategory() method to the Thirdparties class. Use the
POST verb for the request instead of GET because the request modifies
the state of the server.
2016-06-20 17:56:33 +02:00
Xebax
8d86b8b37d
REST API: fix the definition of /orders/{id}/validate.
2016-06-20 17:56:33 +02:00
Xebax
ce6d7046be
REST API: remove getByCategory() from Products
...
because the same feature is available with GET /products/.
2016-06-20 17:56:33 +02:00
Xebax
9a509dd0ee
REST API: add the 'category' filter in /products/
...
and fix the 'to_sell' and 'to_buy' filters.
2016-06-20 17:56:33 +02:00
Xebax
6d67303501
REST API: move the definition of /contacts/{id}/createUser
...
from api_users.class.php to api_contacts.class.php.
2016-06-20 17:56:33 +02:00
Xebax
d7c8a466b1
REST API: fix deleting a product/service.
...
Add a User parameter to the Product::delete() method to explicitly set
the user that performs the action instead of using a global variable.
In the calls to Product::delete() with a fetched object, remove the
deprecated parameter $id.
2016-06-20 17:56:33 +02:00
Xebax
58c25ff665
REST API: fix the error 500 when updating a product.
2016-06-20 17:56:33 +02:00
Xebax
9f526c512d
REST API: sort the classes before adding them to Restler.
...
The Restler API Explorer shows the classes in the order they are added
and it's a mess if they are not sorted.
2016-06-20 17:56:33 +02:00
Xebax
f6eac2b643
REST API: replace the home made API explorer by the Restler API Explorer.
2016-06-20 17:56:33 +02:00
Xebax
5ea526c29e
REST API: update the API to have /login and /status.
...
Replace the GenericApi class by two classes, Login and Status, else the
endpoints would be /generic/login and /generic/status.
2016-06-20 17:56:33 +02:00
Xebax
04778f932e
REST API: replace the /thirdparty/ API by /thirdparties/.
...
Remove several /thirdparty/list/xxx endpoints because they are redundant
with the /thirdparties/ endpoint whith the 'mode' filter.
Remove the customer/byemail/{email} endpoint because it is redundant
with the /thirdparties/ endpoint whith the 'email' filter.
Remove all the /customer/ endpoints because they do the same thing as
the corresponding /thirdparty/ endpoints.
2016-06-20 17:56:33 +02:00
Xebax
571f6b8a26
REST API: replace the /order/ API by /orders/.
...
Remove the /thirdparty/{socid}/order/list endpoint because it is
redundant with the /orders/ endpoint whith the 'societe' filter.
2016-06-20 17:56:33 +02:00
Xebax
f03d6e1bed
REST API: replace the /product/ API by /products/.
...
Added some FIXME:
- the put() method does its job but the API returns an error 500
- delete() does not work.
2016-06-20 17:56:33 +02:00
Xebax
8cf0bceadd
REST API: replace the /invoice/ API by /invoices/.
...
Rename the 'mode' parameter to 'status' in GET /invoices.
Fix the error handling in DELETE /invoices/{id}.
2016-06-20 17:56:33 +02:00
Xebax
db77efc067
REST API: replace the /category/ API by /categories/.
...
Remove several /category/list/xxx endpoints because they are redundant
with the /categories/ endpoint whith the 'type' filter.
2016-06-20 17:56:33 +02:00
Xebax
396d31e18e
REST API: begin the refactoring.
...
Simplify the code that looks for the API classes and replace the
/contact/ and /user/ APIs by /contacts/ and /users/.
2016-06-20 17:56:33 +02:00
Xebax
d6b9eb1a85
REST API: enable the Restler API Explorer.
2016-06-20 17:56:33 +02:00
Laurent Destailleur
6317cb53f2
FIX Merge of 2 thirdparties when there is one common tag.
2016-06-20 15:42:16 +02:00
Laurent Destailleur
b62be8dd0b
Fix: Test table llx_expedition to allow delete of thirdparty
2016-06-20 14:17:17 +02:00
Laurent Destailleur
195fcc5653
Minor fixes
2016-06-20 11:43:53 +02:00
Laurent Destailleur
b01eed697e
Fix sort on thirdparty on bank transaction list
2016-06-20 11:30:43 +02:00
Laurent Destailleur
10f2d7cd67
Fix Debug and minor fixes
2016-06-20 10:54:02 +02:00
Laurent Destailleur
8356dd1080
Fix minor
2016-06-20 10:22:08 +02:00
Laurent Destailleur
6cfc585205
Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop
2016-06-20 03:21:55 +02:00
Laurent Destailleur
febf56e28c
Sync transifex
2016-06-20 03:21:35 +02:00
Laurent Destailleur
7f4e163a52
Fix scrutinizer reports
2016-06-20 02:37:02 +02:00
Laurent Destailleur
a4d4cb2a4a
Merge pull request #5373 from grandoc/develop
...
internationalization of code comment
2016-06-20 02:14:26 +02:00
Laurent Destailleur
2223d283dc
Sync transifex
2016-06-20 00:45:25 +02:00
Laurent Destailleur
74f19944b9
Fix rtl language ar_SA
2016-06-20 00:13:30 +02:00
philippe grand
0cc990402e
internationalization of code comment
2016-06-19 17:39:40 +02:00
Laurent Destailleur
8187dc2006
Fix css
2016-06-19 16:07:34 +02:00
Laurent Destailleur
eac5cbb0dd
FIX Fix the reposition on the clear target button.
2016-06-19 11:59:55 +02:00
Laurent Destailleur
0cbfb28a0f
FIX using media files in dolfilemanager with spaces inside.
2016-06-19 11:45:13 +02:00
Laurent Destailleur
e08ac03618
Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop
2016-06-19 11:19:30 +02:00
Laurent Destailleur
cd122462aa
Fix errors on files/dir permissions on dolfilemanager.
2016-06-19 11:19:11 +02:00
Laurent Destailleur
b9982620f9
Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop
2016-06-18 19:49:11 +02:00
Laurent Destailleur
d0a15d32b2
Clean language files
2016-06-18 19:48:58 +02:00
Laurent Destailleur
f9509bf345
Merge pull request #5368 from grandoc/develop
...
international comment for code
2016-06-18 18:10:12 +02:00
Laurent Destailleur
4a6427134f
Merge pull request #5367 from atm-florian/develop
...
FIX bug with PgSQL on GROUP BY missing column
2016-06-18 18:09:43 +02:00
Laurent Destailleur
f817b562ad
Clean language files
2016-06-18 17:17:45 +02:00
Laurent Destailleur
94b7e176a6
Clean language files
2016-06-18 16:46:21 +02:00
Laurent Destailleur
de76f2a9aa
Clean language files
2016-06-18 15:50:37 +02:00
Laurent Destailleur
d192438eae
Enhance tool to clean language files
2016-06-18 12:50:15 +02:00
philippe grand
e28bac3464
Merge remote-tracking branch 'upstream/develop' into develop
...
update from upstream
2016-06-18 11:59:27 +02:00