dolibarr-git
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dolibarr-git] [Dolibarr/dolibarr] d6b9eb: REST API: enable the Restler


From: Laurent Destailleur
Subject: [Dolibarr-git] [Dolibarr/dolibarr] d6b9eb: REST API: enable the Restler API Explorer.
Date: Wed, 27 Jul 2016 05:10:13 -0700

  Branch: refs/heads/develop
  Home:   https://github.com/Dolibarr/dolibarr
  Commit: d6b9eb1a8562740adbcb41e1f2d544d8c9daa923
      
https://github.com/Dolibarr/dolibarr/commit/d6b9eb1a8562740adbcb41e1f2d544d8c9daa923
  Author: Xebax <address@hidden>
  Date:   2016-06-20 (Mon, 20 Jun 2016)

  Changed paths:
    M htdocs/api/index.php

  Log Message:
  -----------
  REST API: enable the Restler API Explorer.


  Commit: 396d31e18edf21d036ccfd0c0b157fb8c8d25e81
      
https://github.com/Dolibarr/dolibarr/commit/396d31e18edf21d036ccfd0c0b157fb8c8d25e81
  Author: Xebax <address@hidden>
  Date:   2016-06-20 (Mon, 20 Jun 2016)

  Changed paths:
    M htdocs/api/index.php
    R htdocs/societe/class/api_contact.class.php
    A htdocs/societe/class/api_contacts.class.php
    R htdocs/user/class/api_user.class.php
    A htdocs/user/class/api_users.class.php

  Log Message:
  -----------
  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/.


  Commit: db77efc067a5dd1fa37ebbdd42c48f4afddfbf62
      
https://github.com/Dolibarr/dolibarr/commit/db77efc067a5dd1fa37ebbdd42c48f4afddfbf62
  Author: Xebax <address@hidden>
  Date:   2016-06-20 (Mon, 20 Jun 2016)

  Changed paths:
    A htdocs/categories/class/api_categories.class.php
    R htdocs/categories/class/api_category.class.php

  Log Message:
  -----------
  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.


  Commit: 8cf0bceadd4b09b6ddfd7088282a0d2d3710045b
      
https://github.com/Dolibarr/dolibarr/commit/8cf0bceadd4b09b6ddfd7088282a0d2d3710045b
  Author: Xebax <address@hidden>
  Date:   2016-06-20 (Mon, 20 Jun 2016)

  Changed paths:
    R htdocs/compta/facture/class/api_invoice.class.php
    A htdocs/compta/facture/class/api_invoices.class.php

  Log Message:
  -----------
  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}.


  Commit: f03d6e1bed90639790631d802279ac54bf50fc3b
      
https://github.com/Dolibarr/dolibarr/commit/f03d6e1bed90639790631d802279ac54bf50fc3b
  Author: Xebax <address@hidden>
  Date:   2016-06-20 (Mon, 20 Jun 2016)

  Changed paths:
    R htdocs/product/class/api_product.class.php
    A htdocs/product/class/api_products.class.php

  Log Message:
  -----------
  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.


  Commit: 571f6b8a26fae4924c3f83dd6bd25ce05d671004
      
https://github.com/Dolibarr/dolibarr/commit/571f6b8a26fae4924c3f83dd6bd25ce05d671004
  Author: Xebax <address@hidden>
  Date:   2016-06-20 (Mon, 20 Jun 2016)

  Changed paths:
    R htdocs/commande/class/api_commande.class.php
    A htdocs/commande/class/api_orders.class.php

  Log Message:
  -----------
  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.


  Commit: 04778f932e5d7abe57cd585c598764174419dd74
      
https://github.com/Dolibarr/dolibarr/commit/04778f932e5d7abe57cd585c598764174419dd74
  Author: Xebax <address@hidden>
  Date:   2016-06-20 (Mon, 20 Jun 2016)

  Changed paths:
    A htdocs/societe/class/api_thirdparties.class.php
    R htdocs/societe/class/api_thirdparty.class.php

  Log Message:
  -----------
  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.


  Commit: 5ea526c29e3e2fc023655beea401dfdbe7f45757
      
https://github.com/Dolibarr/dolibarr/commit/5ea526c29e3e2fc023655beea401dfdbe7f45757
  Author: Xebax <address@hidden>
  Date:   2016-06-20 (Mon, 20 Jun 2016)

  Changed paths:
    R htdocs/api/class/api_generic.class.php
    A htdocs/api/class/api_login.class.php
    A htdocs/api/class/api_status.class.php

  Log Message:
  -----------
  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.


  Commit: f6eac2b643cb92d0aebccb0def8fd95555510afd
      
https://github.com/Dolibarr/dolibarr/commit/f6eac2b643cb92d0aebccb0def8fd95555510afd
  Author: Xebax <address@hidden>
  Date:   2016-06-20 (Mon, 20 Jun 2016)

  Changed paths:
    R htdocs/api/admin/explorer.php
    M htdocs/api/admin/index.php

  Log Message:
  -----------
  REST API: replace the home made API explorer by the Restler API Explorer.


  Commit: 9f526c512dceabf009a7d42e4ee9b96ef549d060
      
https://github.com/Dolibarr/dolibarr/commit/9f526c512dceabf009a7d42e4ee9b96ef549d060
  Author: Xebax <address@hidden>
  Date:   2016-06-20 (Mon, 20 Jun 2016)

  Changed paths:
    M htdocs/api/index.php

  Log Message:
  -----------
  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.


  Commit: 58c25ff665d0eb6f09772b1732433a6b86e57291
      
https://github.com/Dolibarr/dolibarr/commit/58c25ff665d0eb6f09772b1732433a6b86e57291
  Author: Xebax <address@hidden>
  Date:   2016-06-20 (Mon, 20 Jun 2016)

  Changed paths:
    M htdocs/api/class/api.class.php
    M htdocs/product/class/api_products.class.php

  Log Message:
  -----------
  REST API: fix the error 500 when updating a product.


  Commit: d7c8a466b12c99306a2080cd22d887a36c9f751d
      
https://github.com/Dolibarr/dolibarr/commit/d7c8a466b12c99306a2080cd22d887a36c9f751d
  Author: Xebax <address@hidden>
  Date:   2016-06-20 (Mon, 20 Jun 2016)

  Changed paths:
    M htdocs/product/card.php
    M htdocs/product/class/api_products.class.php
    M htdocs/product/class/product.class.php
    M htdocs/webservices/server_productorservice.php
    M test/phpunit/ProductTest.php

  Log Message:
  -----------
  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.


  Commit: 6d673035016d138b7f9ede1a95ebc6a884f5a7dc
      
https://github.com/Dolibarr/dolibarr/commit/6d673035016d138b7f9ede1a95ebc6a884f5a7dc
  Author: Xebax <address@hidden>
  Date:   2016-06-20 (Mon, 20 Jun 2016)

  Changed paths:
    M htdocs/societe/class/api_contacts.class.php
    M htdocs/user/class/api_users.class.php

  Log Message:
  -----------
  REST API: move the definition of /contacts/{id}/createUser
from api_users.class.php to api_contacts.class.php.


  Commit: 9a509dd0ee3f3ec5bbeee4dc806c018381a82ab9
      
https://github.com/Dolibarr/dolibarr/commit/9a509dd0ee3f3ec5bbeee4dc806c018381a82ab9
  Author: Xebax <address@hidden>
  Date:   2016-06-20 (Mon, 20 Jun 2016)

  Changed paths:
    M htdocs/product/class/api_products.class.php

  Log Message:
  -----------
  REST API: add the 'category' filter in /products/

and fix the 'to_sell' and 'to_buy' filters.


  Commit: ce6d7046becaad5b4915d192fd9d15565f341ff7
      
https://github.com/Dolibarr/dolibarr/commit/ce6d7046becaad5b4915d192fd9d15565f341ff7
  Author: Xebax <address@hidden>
  Date:   2016-06-20 (Mon, 20 Jun 2016)

  Changed paths:
    M htdocs/product/class/api_products.class.php

  Log Message:
  -----------
  REST API: remove getByCategory() from Products

because the same feature is available with GET /products/.


  Commit: 8d86b8b37db53152492e661915b86023e6e074f2
      
https://github.com/Dolibarr/dolibarr/commit/8d86b8b37db53152492e661915b86023e6e074f2
  Author: Xebax <address@hidden>
  Date:   2016-06-20 (Mon, 20 Jun 2016)

  Changed paths:
    M htdocs/commande/class/api_orders.class.php

  Log Message:
  -----------
  REST API: fix the definition of /orders/{id}/validate.


  Commit: 3b662d6ed88f6531a46fdf0038f9788e77b5950e
      
https://github.com/Dolibarr/dolibarr/commit/3b662d6ed88f6531a46fdf0038f9788e77b5950e
  Author: Xebax <address@hidden>
  Date:   2016-06-20 (Mon, 20 Jun 2016)

  Changed paths:
    M htdocs/categories/class/api_categories.class.php
    M htdocs/product/class/api_products.class.php
    M htdocs/societe/class/api_contacts.class.php
    M htdocs/societe/class/api_thirdparties.class.php

  Log Message:
  -----------
  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.


  Commit: 388839296e51d5b95d28d0b6f19ed364559ce192
      
https://github.com/Dolibarr/dolibarr/commit/388839296e51d5b95d28d0b6f19ed364559ce192
  Author: Xebax <address@hidden>
  Date:   2016-06-20 (Mon, 20 Jun 2016)

  Changed paths:
    M test/phpunit/RestAPIUserTest.php

  Log Message:
  -----------
  REST API: update the URLs in RestAPIUserTest.php.


  Commit: 3cac54741da48ae2baa4896d3a39bcf029271f33
      
https://github.com/Dolibarr/dolibarr/commit/3cac54741da48ae2baa4896d3a39bcf029271f33
  Author: Xebax <address@hidden>
  Date:   2016-06-20 (Mon, 20 Jun 2016)

  Changed paths:
    M htdocs/categories/class/api_categories.class.php

  Log Message:
  -----------
  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.


  Commit: 4a0d5549865ca7ab06462841e22a495c5af7245c
      
https://github.com/Dolibarr/dolibarr/commit/4a0d5549865ca7ab06462841e22a495c5af7245c
  Author: Xebax <address@hidden>
  Date:   2016-06-21 (Tue, 21 Jun 2016)

  Changed paths:
    M htdocs/product/card.php
    M htdocs/product/class/api_products.class.php
    M htdocs/product/class/product.class.php
    M htdocs/webservices/server_productorservice.php
    M test/phpunit/ProductTest.php

  Log Message:
  -----------
  Revert "REST API: fix deleting a product/service."

This reverts commit d7c8a466b12c99306a2080cd22d887a36c9f751d.


  Commit: 9e9e224c4634f20a4fc764d8e2394d9b96d3aaa6
      
https://github.com/Dolibarr/dolibarr/commit/9e9e224c4634f20a4fc764d8e2394d9b96d3aaa6
  Author: Xebax <address@hidden>
  Date:   2016-06-21 (Tue, 21 Jun 2016)

  Changed paths:
    M htdocs/product/class/api_products.class.php

  Log Message:
  -----------
  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.


  Commit: 70ba8ec78db38acb55d65f1764ee56d4f793fea9
      
https://github.com/Dolibarr/dolibarr/commit/70ba8ec78db38acb55d65f1764ee56d4f793fea9
  Author: Xebax <address@hidden>
  Date:   2016-06-22 (Wed, 22 Jun 2016)

  Changed paths:
    M htdocs/api/index.php
    A htdocs/categories/class/api_deprecated_category.class.php
    A htdocs/commande/class/api_deprecated_commande.class.php
    A htdocs/compta/facture/class/api_deprecated_invoice.class.php
    A htdocs/product/class/api_deprecated_product.class.php
    A htdocs/societe/class/api_deprecated_contact.class.php
    A htdocs/societe/class/api_deprecated_thirdparty.class.php
    A htdocs/user/class/api_deprecated_user.class.php

  Log Message:
  -----------
  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".


  Commit: e12e1980fc0fee26b231600e73e349d478040074
      
https://github.com/Dolibarr/dolibarr/commit/e12e1980fc0fee26b231600e73e349d478040074
  Author: Xebax <address@hidden>
  Date:   2016-06-22 (Wed, 22 Jun 2016)

  Changed paths:
    M htdocs/categories/class/api_deprecated_category.class.php
    M htdocs/commande/class/api_deprecated_commande.class.php
    M htdocs/compta/facture/class/api_deprecated_invoice.class.php
    M htdocs/product/class/api_deprecated_product.class.php
    M htdocs/societe/class/api_deprecated_contact.class.php
    M htdocs/societe/class/api_deprecated_thirdparty.class.php
    M htdocs/user/class/api_deprecated_user.class.php

  Log Message:
  -----------
  REST API: Add comments in the @deprecated tags.


  Commit: ee0c77a3053d07207800ef3e9b59d30a623c38d6
      
https://github.com/Dolibarr/dolibarr/commit/ee0c77a3053d07207800ef3e9b59d30a623c38d6
  Author: Laurent Destailleur <address@hidden>
  Date:   2016-07-27 (Wed, 27 Jul 2016)

  Changed paths:
    M htdocs/api/admin/explorer.php
    M htdocs/api/admin/index.php
    M htdocs/api/class/api.class.php
    R htdocs/api/class/api_generic.class.php
    A htdocs/api/class/api_login.class.php
    A htdocs/api/class/api_status.class.php
    M htdocs/api/index.php
    A htdocs/categories/class/api_categories.class.php
    R htdocs/categories/class/api_category.class.php
    A htdocs/categories/class/api_deprecated_category.class.php
    R htdocs/commande/class/api_commande.class.php
    A htdocs/commande/class/api_deprecated_commande.class.php
    A htdocs/commande/class/api_orders.class.php
    A htdocs/compta/facture/class/api_deprecated_invoice.class.php
    R htdocs/compta/facture/class/api_invoice.class.php
    A htdocs/compta/facture/class/api_invoices.class.php
    A htdocs/product/class/api_deprecated_product.class.php
    R htdocs/product/class/api_product.class.php
    A htdocs/product/class/api_products.class.php
    R htdocs/societe/class/api_contact.class.php
    A htdocs/societe/class/api_contacts.class.php
    A htdocs/societe/class/api_deprecated_contact.class.php
    A htdocs/societe/class/api_deprecated_thirdparty.class.php
    A htdocs/societe/class/api_thirdparties.class.php
    R htdocs/societe/class/api_thirdparty.class.php
    A htdocs/user/class/api_deprecated_user.class.php
    R htdocs/user/class/api_user.class.php
    A htdocs/user/class/api_users.class.php
    M test/phpunit/RestAPIUserTest.php

  Log Message:
  -----------
  Merge branch 'refactor-rest-api' of
https://github.com/EuskalMoneta/dolibarr into
EuskalMoneta-refactor-rest-api

Conflicts:
        htdocs/api/admin/explorer.php


  Commit: 4508882ac85e28e0aec24827081af383e51557cd
      
https://github.com/Dolibarr/dolibarr/commit/4508882ac85e28e0aec24827081af383e51557cd
  Author: Laurent Destailleur <address@hidden>
  Date:   2016-07-27 (Wed, 27 Jul 2016)

  Changed paths:
    M htdocs/api/admin/explorer.php
    M htdocs/api/admin/index.php
    M htdocs/api/class/api.class.php
    R htdocs/api/class/api_generic.class.php
    A htdocs/api/class/api_login.class.php
    A htdocs/api/class/api_status.class.php
    M htdocs/api/index.php
    A htdocs/categories/class/api_categories.class.php
    R htdocs/categories/class/api_category.class.php
    A htdocs/categories/class/api_deprecated_category.class.php
    R htdocs/commande/class/api_commande.class.php
    A htdocs/commande/class/api_deprecated_commande.class.php
    A htdocs/commande/class/api_orders.class.php
    A htdocs/compta/facture/class/api_deprecated_invoice.class.php
    R htdocs/compta/facture/class/api_invoice.class.php
    A htdocs/compta/facture/class/api_invoices.class.php
    A htdocs/product/class/api_deprecated_product.class.php
    R htdocs/product/class/api_product.class.php
    A htdocs/product/class/api_products.class.php
    R htdocs/societe/class/api_contact.class.php
    A htdocs/societe/class/api_contacts.class.php
    A htdocs/societe/class/api_deprecated_contact.class.php
    A htdocs/societe/class/api_deprecated_thirdparty.class.php
    A htdocs/societe/class/api_thirdparties.class.php
    R htdocs/societe/class/api_thirdparty.class.php
    A htdocs/user/class/api_deprecated_user.class.php
    R htdocs/user/class/api_user.class.php
    A htdocs/user/class/api_users.class.php
    M test/phpunit/RestAPIUserTest.php

  Log Message:
  -----------
  git push origin developMerge branch 'EuskalMoneta-refactor-rest-api' into 
develop


  Commit: e65a8400e327f43bb501693ee6c15979f73c150b
      
https://github.com/Dolibarr/dolibarr/commit/e65a8400e327f43bb501693ee6c15979f73c150b
  Author: Laurent Destailleur <address@hidden>
  Date:   2016-07-27 (Wed, 27 Jul 2016)

  Changed paths:
    M htdocs/compta/paiement.php

  Log Message:
  -----------
  Merge branch 'develop' of address@hidden:Dolibarr/dolibarr.git into develop


Compare: 
https://github.com/Dolibarr/dolibarr/compare/5a36aa7780a4...e65a8400e327

reply via email to

[Prev in Thread] Current Thread [Next in Thread]