Scrutinizer Auto-Fixer
f59d87f06d
Scrutinizer Auto-Fixes
...
This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
2017-10-06 00:42:32 +00:00
Laurent Destailleur
801a5180d6
Fix scrutinizer bug reports
2017-10-06 01:16:19 +02:00
Laurent Destailleur
f0b314dfd7
Change signature of file to match other urls to link/download files.
2017-10-05 10:25:06 +02:00
Neil Orley
a3096b4e9d
NEW Generates the document before downloading using REST API
...
Generates the document before downloading using REST API
2017-10-04 15:59:54 +02:00
Laurent Destailleur
8e0da9bfeb
Merge branch '6.0' of git@github.com:Dolibarr/dolibarr.git into develop
...
Conflicts:
htdocs/holiday/document.php
2017-10-04 13:32:53 +02:00
Laurent Destailleur
138f8cd7ea
Fix url to explorer no more working
2017-10-02 12:20:03 +02:00
Laurent Destailleur
30a9e40f4e
Fix position of fields
2017-09-28 17:29:37 +02:00
Neil Orley
7374a2accd
NEW Download a document using the REST API
...
Adds the ability to download a document using the REST API
The document is sent in a base64 encoded format.
The API will return :
{
"filename": "CO1709-0002.pdf",
"content": "JVBERi0xLjMKJ...",
"encoding": "MIME base64 (base64_encode php function, http://php.net/manual/en/function.base64-encode.php )"
}
2017-09-28 12:14:49 +02:00
Neil Orley
bb4b2c5d88
NEW Get the list of payments terms
...
Adds the ability to get the list of payments terms using the REST API.
2017-09-27 12:34:41 +02:00
Neil Orley
8c8868d76d
Remove spaces
2017-09-27 12:32:18 +02:00
Neil Orley
b8afabfd0b
Change RestException return code 503 to 400 (Bad request) when the request is incorrect : SQL error or wrong sqlfilter
...
Add comment to getPaymentTypes function
Change the "API class for" description from "payment type" to "dictionaries"
Change Copyright to add all previous devs
2017-09-27 12:27:47 +02:00
Neil Orley
154d5c876c
NEW Get the list of payments terms
...
Adds the ability to get the list of payments terms using the REST API.
2017-09-27 12:24:19 +02:00
Laurent Destailleur
5b0440e66b
Merge pull request #7491 from Oeris/6.0-api
...
NEW get payment types using the REST API + consolidates REST dictionary APIs
2017-09-26 19:58:22 +02:00
Neil Orley
f5be144beb
NEW Consolidates REST dictionary APIs into a single tree and a single file
...
The php code of the files "htdocs / api / class / api_dictionary * .class.php" has been integrated into a single file: "htdocs / api / class / api_dictionary.class.php".
2017-09-26 10:48:35 +02:00
Neil Orley
ceb868493e
NEW get payement types using the REST API
...
Adds the ability to get payments types using the REST API
2017-09-26 10:12:42 +02:00
Laurent Destailleur
934edd9f5a
Merge branch 'develop' into 6.0-api
2017-09-24 22:01:07 +02:00
Laurent Destailleur
57adc28256
Work on modulebuilder
2017-09-23 01:45:03 +02:00
Laurent Destailleur
8dfa87fcf6
Merge branch '6.0' of git@github.com:Dolibarr/dolibarr.git into develop
2017-09-19 19:30:28 +02:00
Neil Orley
cc7aee6c3e
FIX Implementation of a Luracast recommandation for the REST api server ( #7370 )
2017-09-19 16:59:19 +02:00
Neil Orley
d5966f944f
FIX Implementation of a Luracast recommandation for the REST api server ( #7370 )
2017-09-19 16:58:09 +02:00
Neil Orley
caf4ca7451
FIX Implementation of a Luracast recommandation for the REST api server ( #7370 )
2017-09-19 16:56:27 +02:00
Neil Orley
949eef82f0
Merge branch '6.0' of https://github.com/Dolibarr/dolibarr into 6.0-api
2017-09-19 16:50:55 +02:00
florian HENRY
7375afca3e
fix : rest API URL
2017-09-19 09:03:25 +02:00
Laurent Destailleur
a6b600c8a1
Fix regression in unit tests
2017-09-16 03:54:23 +02:00
Laurent Destailleur
5f0819d3b4
Merge branch 'develop' into develop
2017-09-15 15:50:28 +02:00
Neil Orley
f68d31d7c5
Add of $urlwithroot in the setBaseUrls function, to use Dolibarr external domain name in the configuration file
2017-09-12 17:45:02 +02:00
Neil Orley
17da808325
FIX wrong basePath in the swagger view
...
Behind a reverse proxy the basePath seems to be in http.
Forcing the basePath to DOL_MAIN_URL_ROOT fixes the problem.
2017-09-08 14:35:44 +02:00
Laurent Destailleur
60493d0a47
Several fixes (permission, missing method or class) in REST APIs
2017-07-28 11:03:30 +02:00
Regis Houssin
c5442c3553
Fix: module "root" not exists ! (deprecated api)
2017-07-05 12:21:35 +02:00
Regis Houssin
a2e2149eb2
Fix: multiple preg_match $reg confusion !
2017-07-05 11:12:48 +02:00
Laurent Destailleur
0b7c768f29
FIX Usage of production mode with REST Api.
2017-06-25 18:18:17 +02:00
Laurent Destailleur
63dcdc3a03
Fix API was loading definition of all APIs at each call.
2017-06-25 17:09:08 +02:00
Laurent Destailleur
8bfda8d4ee
Code comment
2017-06-25 12:26:16 +02:00
ptibogxiv
3e93f27d98
Update index.php
2017-06-25 01:27:41 +02:00
Laurent Destailleur
1eee7297dc
Fix typo
2017-06-24 12:56:55 +02:00
Laurent Destailleur
509aad9bce
Fix README
2017-06-24 12:52:39 +02:00
Regis Houssin
240e9637fa
New: add extrafields API REST
2017-06-17 14:43:15 +02:00
Laurent Destailleur
f363845cbe
Merge pull request #6899 from hregis/develop_bug_restapi
...
Fix: [Restler] Delete the cache file otherwise it does not update
2017-05-29 10:50:43 +02:00
Laurent Destailleur
ea13e18f9e
Merge pull request #6892 from hregis/develop_bug3
...
Fix: Wrong path for external module API REST
2017-05-29 10:30:09 +02:00
Regis Houssin
db9e068500
Fix: [Restler] Delete the cache file otherwise it does not update
2017-05-26 17:38:57 +02:00
Regis Houssin
74e9b9bf0a
Fix: Wrong path for external module API REST
2017-05-25 13:50:41 +02:00
Regis Houssin
339d9dbfdf
New: add REST api "dictionaryevents" for to use with "agendaevents"
2017-05-24 18:44:03 +02:00
Laurent Destailleur
71bd69a804
Better link to show part to edit
2017-05-23 13:25:37 +02:00
Laurent Destailleur
8301e24261
PHP7 compatibility
2017-05-22 10:40:24 +02:00
Laurent Destailleur
f72ac3cf45
Fix php7 compatibility
2017-05-22 10:07:29 +02:00
Laurent Destailleur
52b5a8ece7
More powerfull dol_move function.
2017-05-21 14:06:43 +02:00
Laurent Destailleur
7e25cc0475
FIX Phpunit on file submit with REST API
2017-05-20 17:09:15 +02:00
Laurent Destailleur
eb5bab36ca
Use dolibarr security checks before uploading a file.
2017-05-20 16:15:25 +02:00
Laurent Destailleur
80cbc28385
NEW Add REST API to push a file.
2017-05-20 15:52:36 +02:00
Laurent Destailleur
9355f28d6c
Merge branch 'develop' into api_files
2017-05-20 11:33:46 +02:00
Laurent Destailleur
68e333879f
Fix var not sanitized
2017-05-16 13:27:32 +02:00
Laurent Destailleur
a115d4877b
Fix for new property array fields
2017-05-02 22:37:23 +02:00
Laurent Destailleur
8730add15f
Better message for api key return
2017-05-01 16:38:15 +02:00
Laurent Destailleur
8c07f514c8
Add php unit tests on expense reports
2017-04-14 16:51:30 +02:00
Laurent Destailleur
76280f8ae2
Fix #6365
2017-02-03 11:42:49 +01:00
Laurent Destailleur
d740bdbc73
Fix #6365
2017-02-03 11:38:09 +01:00
Laurent Destailleur
db220e7af5
FIX Rename api_key into DOLAPIKEY to allow to use it on http header.
2017-01-22 20:55:26 +01:00
Laurent Destailleur
983f707553
Add comment
2017-01-16 11:35:25 +01:00
jfefe
b8284447fd
API can receive documents
2016-12-12 15:20:44 +01:00
Laurent Destailleur
761a795294
Maxi debug on REST APIs
2016-12-05 13:31:29 +01:00
Laurent Destailleur
18a1f9033c
Merge branch '4.0' of git@github.com:Dolibarr/dolibarr.git into develop
...
Conflicts:
htdocs/api/class/api_generic.class.php
htdocs/api/index.php
2016-11-27 16:25:38 +01:00
jfefe
b436df3202
Allow HTTP POST request for login API method.
...
This is more secure than do the request with sensitive value like password into URL parameters.
2016-11-22 23:44:10 +01:00
jfefe
3830c405a8
Disable CSRF check for REST API
...
This allow to do POST requests from another website.
2016-11-22 23:41:46 +01:00
Laurent Destailleur
dd27a52a85
Fix several problems on new REST API on project/tasks
2016-11-19 16:08:27 +01:00
Laurent Destailleur
7ac96da0d4
Several fix in warehouse stock change (rounding, api rest)
2016-11-18 16:34:03 +01:00
Laurent Destailleur
9b66f8c320
Complete REST services
2016-11-18 13:12:44 +01:00
Laurent Destailleur
9fd5ddf807
NEW Add REST API for projects
2016-11-09 22:54:51 +01:00
Laurent Destailleur
ff6f5eea6f
Fix travis errors
2016-10-26 10:47:47 +02:00
Laurent Destailleur
4a3251407f
Fix missing cache dir
2016-10-25 20:46:21 +02:00
Laurent Destailleur
01dd8fee48
Minor enhancement
2016-10-25 20:36:22 +02:00
Laurent Destailleur
f67863e1aa
NEW Can use any filter on all REST API to list.
2016-10-25 19:15:47 +02:00
Laurent Destailleur
dd9095531a
Fix for debian package
2016-10-22 15:03:00 +02:00
Laurent Destailleur
3cb13e16d1
Merge branch 'rest-api-add-accounts' of
...
https://github.com/EuskalMoneta/dolibarr into
EuskalMoneta-rest-api-add-accounts
Conflicts:
htdocs/api/index.php
htdocs/commande/class/api_orders.class.php
2016-09-26 02:28:16 +02:00
Laurent Destailleur
d39d7d92c9
Uniformize code.
2016-09-26 02:13:58 +02:00
Laurent Destailleur
48b188d200
Merge pull request #5785 from EuskalMoneta/rest-api-add-countries-and-towns
...
NEW Add Countries and Towns to the REST API.
2016-09-26 01:33:56 +02:00
Laurent Destailleur
100312aac2
Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into
...
develop
Conflicts:
htdocs/adherents/class/cotisation.class.php
2016-09-26 01:32:50 +02:00
Xebax
0f3e308dd3
Fix coding style errors.
2016-09-25 19:05:49 +02:00
Xebax
58179f71fc
Add Accounts to REST API.
2016-09-25 17:48:48 +02:00
Xebax
7e366c303e
Add Towns to the REST API.
2016-09-25 17:43:15 +02:00
Xebax
d5ee73a1b7
Add Countries to the REST API.
2016-09-25 17:43:15 +02:00
Xebax
cd11ccbedb
Add Members to the REST API.
2016-09-25 17:40:29 +02:00
Laurent Destailleur
35dd492d19
NEW Add REST api for commercial proposals
2016-09-22 12:53:44 +02:00
Laurent Destailleur
77e2037195
NEW Add REST API to read, create and delete agenda events
2016-09-19 02:02:45 +02:00
Laurent Destailleur
d7fce0cd24
NEW REST api: Add apis for expense reports
2016-09-09 20:17:34 +02:00
Laurent Destailleur
72e149e1a6
FIX SEC Improve CSRF protection. Reduce usage of NOCSRFCHECK.
2016-09-08 12:12:00 +02:00
Laurent Destailleur
7b04dc9760
Reduce log verbosity when using API REST explorer
2016-07-29 02:35:01 +02:00
Laurent Destailleur
4e8e7f8e05
NEW New REST API explorer. Can create invoice and orders with lines.
2016-07-29 02:28:51 +02:00
Laurent Destailleur
ee0c77a305
Merge branch 'refactor-rest-api' of
...
https://github.com/EuskalMoneta/dolibarr into
EuskalMoneta-refactor-rest-api
Conflicts:
htdocs/api/admin/explorer.php
2016-07-27 14:06:14 +02:00
Laurent Destailleur
7dc01fc9c1
Fix hide this api
2016-07-27 12:26:32 +02:00
Laurent Destailleur
60c71d88f7
Fix missing loading admin langs
2016-07-23 14:30:48 +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
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
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
d8c6ae0b17
Removed warnings
2016-05-29 11:26:05 +02:00
Laurent Destailleur
ac84ae0ff5
Clean explorer
2016-05-22 15:29:12 +02:00
Laurent Destailleur
382df0d8f1
NEW Rest API token is no more reset at each call. We can reset it with
...
param reset=1 on login call.
2016-05-22 15:20:21 +02:00