Commit Graph

617 Commits

Author SHA1 Message Date
Laurent Destailleur
4926ac1e24 Fix make protected method not visible 2021-04-28 15:25:06 +02:00
Laurent Destailleur
f54d14bfd6 Add method checkValForAPI to clean data from API input 2021-04-27 01:05:14 +02:00
Laurent Destailleur
d6ce4e1086 Allow option to restrict API endpoints 2021-04-25 20:23:41 +02:00
Laurent Destailleur
5d0e93344b Upgrade to swagger 2.2 2021-04-25 17:41:59 +02:00
Laurent Destailleur
2cd9289de1 Fix error message 2021-04-19 15:09:13 +02:00
Laurent Destailleur
de4d5f3888 Check file name end with .xml 2021-04-19 15:07:07 +02:00
Laurent Destailleur
238e8a17b0 Better error message 2021-04-19 14:54:58 +02:00
Laurent Destailleur
d8f387938c Try to use 2 different names for operation 2021-04-19 14:30:09 +02:00
Laurent Destailleur
0537fdd1c6 Add local ip into excluded IP for external URL download.
Fix #yogosha5861
2021-04-19 13:52:12 +02:00
Laurent Destailleur
8a62d97b89 Remove one thousand of useless files 2021-04-12 15:57:16 +02:00
Laurent Destailleur
59c8e70fd2 Fix #yogosha4510 2021-04-07 23:43:10 +02:00
Laurent Destailleur
87d4e6e2c5 Add option API_DISABLE_LOGIN_API 2021-04-07 19:07:22 +02:00
Laurent Destailleur
51ee0b07c0 Removed duplicate comment 2021-04-02 22:32:52 +02:00
Laurent Destailleur
3744bc6a7a FIX #yogosha5746 - next step (work in progress) 2021-03-30 18:17:13 +02:00
Frédéric FRANCE
9b48e1a649
code syntax api directory 2021-02-23 17:44:43 +01:00
Laurent Destailleur
a4b1043f00 Close #16196 #16210 2021-02-11 20:07:29 +01:00
Frédéric FRANCE
12f5c9636e
Update api_setup.class.php 2021-02-10 15:31:31 +01:00
Frédéric FRANCE
f47584ed32
Update api_setup.class.php 2021-02-07 22:49:25 +01:00
Laurent Destailleur
7b35192476 Fix bad label 2021-02-06 00:15:07 +01:00
Laurent Destailleur
ca7738c9b3 FIX #16107 2021-01-30 13:57:42 +01:00
Laurent Destailleur
11a122176d Clean code 2020-12-24 02:33:11 +01:00
Laurent Destailleur
65dc766765 Code comment 2020-12-24 02:12:13 +01:00
Laurent Destailleur
93d309cdbc FIX Update Restler API to 3.1.1 to fix error with php8 2020-12-23 19:15:58 +01:00
Laurent Destailleur
d3f352fe10 Fix log 2020-12-23 15:52:00 +01:00
Laurent Destailleur
48ce5c5499
Update api_setup.class.php 2020-12-21 18:16:16 +01:00
Frédéric FRANCE
16d1bf9b00
fix unknown variable 2020-12-20 10:17:28 +01:00
Laurent Destailleur
6066a92b9d Fix API to get country 2020-12-19 22:34:33 +01:00
Laurent Destailleur
98cf15ba0f Clean APIs 2020-12-19 22:24:58 +01:00
Laurent Destailleur
a27f8bd349 Fix security for some APIs 2020-12-19 22:08:29 +01:00
Laurent Destailleur
e4b1a0bdb0 API to get list of enabled modules 2020-12-19 21:59:41 +01:00
Laurent Destailleur
834058a816 Debug api to create a document 2020-12-16 02:33:21 +01:00
Florian HENRY
dca48e4fb6 NEW : add ECM files table info into API document entry GET 2020-12-11 10:21:10 +01:00
Jools
5ef73bf882
Change module_part to modulepart 2020-12-09 16:26:31 +01:00
Laurent Destailleur
fb3c4ab865 Clean returned object with APIs 2020-12-05 00:02:40 +01:00
Laurent Destailleur
9cfb0ac969 Clean API 2020-12-04 23:55:47 +01:00
Laurent Destailleur
8ace020ba8
Update api_setup.class.php 2020-12-02 19:16:42 +01:00
Cédric
c8b0570c90
NEW API: Get the list of ordering reasons 2020-12-01 16:32:36 +01:00
Scrutinizer Auto-Fixer
6df4954b20 Scrutinizer Auto-Fixes
This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
2020-12-01 01:41:19 +00:00
Frédéric FRANCE
e52b79d586
Merge remote-tracking branch 'upstream/develop' into zapieruser 2020-11-01 14:19:06 +01:00
Frédéric FRANCE
d9bf49c5dc
phpcs 2020-10-31 21:04:38 +01:00
Frédéric FRANCE
49390a596c
Merge remote-tracking branch 'upstream/develop' into zapieruser 2020-10-31 20:33:59 +01:00
Scrutinizer Auto-Fixer
ab25e047c0 Scrutinizer Auto-Fixes
This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
2020-10-31 17:51:30 +00:00
Frédéric FRANCE
fb980fb110
merge 2020-10-31 16:40:53 +01:00
Frédéric FRANCE
e95f38cca7
merge 2020-10-31 16:22:13 +01:00
Frédéric FRANCE
be4a4cb54b
Merge remote-tracking branch 'upstream/develop' into zapieruser 2020-10-31 16:10:16 +01:00
Frédéric FRANCE
8bf2b1797c
tabs 2020-10-31 15:59:33 +01:00
stickler-ci
284c9bc6a8 Fixing style errors. 2020-10-31 13:34:01 +00:00
Scrutinizer Auto-Fixer
7f52920716 Scrutinizer Auto-Fixes
This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
2020-10-31 13:32:18 +00:00
Frédéric FRANCE
0b9c866825
Merge remote-tracking branch 'upstream/develop' into zapieruser 2020-10-31 09:08:07 +01:00
Frédéric FRANCE
757c800039
work 2020-10-31 09:03:09 +01:00
Frédéric FRANCE
460af58134
typo 2020-10-30 22:09:15 +01:00
Frédéric FRANCE
2cbbf86a5b
Merge remote-tracking branch 'upstream/develop' into zapieruser 2020-10-30 17:48:00 +01:00
Frédéric FRANCE
28adc985b0
Update api_setup.class.php 2020-10-30 17:31:57 +01:00
Frédéric FRANCE
ace1dc16f1
Merge remote-tracking branch 'upstream/develop' into zapieruser 2020-10-30 14:47:09 +01:00
Frédéric FRANCE
5c71b7e24c
work on members 2020-10-30 09:25:14 +01:00
Frédéric FRANCE
412077ab51
doxygen 2020-10-30 08:24:02 +01:00
Pierre Penelon
63c5c41a7b
ADD Handle proposals upload in documents API 2020-10-28 01:47:25 +01:00
Laurent Destailleur
e10033143a Fix bad var 2020-10-27 18:40:44 +01:00
Laurent Destailleur
80d13e711c More secured getURLContent method. Add PHPUnit on getURLContent 2020-10-27 18:02:05 +01:00
Scrutinizer Auto-Fixer
1512521d91 Scrutinizer Auto-Fixes
This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
2020-10-07 13:01:28 +00:00
Laurent Destailleur
cfc3c01815 Factorize code to know if a parameter is used to store a secret 2020-10-05 12:13:06 +02:00
Laurent Destailleur
216b3c885d Fix escaping 2020-09-20 01:30:36 +02:00
Laurent Destailleur
584a02bc9a
Update api_setup.class.php 2020-09-16 01:11:47 +02:00
ptibogxiv
f09655ec6c
Update api_setup.class.php 2020-09-14 10:53:38 +02:00
stickler-ci
75a9678086 Fixing style errors. 2020-09-14 08:48:04 +00:00
ptibogxiv
557a6863ba
NEW get state by REST API 2020-09-14 10:45:20 +02:00
Laurent Destailleur
1f8278c8ca Merge branch '12.0' of git@github.com:Dolibarr/dolibarr.git into develop
Conflicts:
	htdocs/accountancy/bookkeeping/balance.php
	htdocs/core/class/html.formmail.class.php
	htdocs/fourn/class/fournisseur.commande.class.php
	htdocs/fourn/class/fournisseur.facture.class.php
	htdocs/langs/en_US/other.lang
	htdocs/product/class/product.class.php
	htdocs/supplier_proposal/class/supplier_proposal.class.php
2020-09-12 04:42:59 +02:00
Laurent Destailleur
5ea3f09e17 Merge branch '11.0' of git@github.com:Dolibarr/dolibarr.git into 12.0
Conflicts:
	htdocs/comm/propal/class/propal.class.php
	htdocs/core/class/translate.class.php
2020-09-12 04:29:28 +02:00
ptibogxiv
9f475a3f93
FIX API variable error return
Some modules, when there is no value, delete the variables so don't find variable can be normal.

Error 404 is better than 500 with error servor (same as other object when not found)
ie thirdparties, contacts invoices...)
2020-09-10 14:01:00 +02:00
Laurent Destailleur
b8fe2188a6 Standardize code around model_pdf 2020-09-10 01:49:09 +02:00
ATM-Nicolas
6bd6b285fd FIX : Static property called as non static 2020-09-08 16:03:18 +02:00
florian HENRY
e44a1fd33f ->error rather than dol_print_error into product 2020-07-31 16:09:38 +02:00
Laurent Destailleur
bbbcd5b6b3 Fix phpcs 2020-06-16 22:48:19 +02:00
Xebax
5d76b4781e FIX Upload of documents for members using the REST API. 2020-06-16 22:48:14 +02:00
Laurent Destailleur
64b2a2d92f Fix phpcs 2020-06-16 22:46:36 +02:00
Xebax
a22c89da96 FIX Upload of documents for members using the REST API. 2020-06-14 14:58:09 +02:00
Frédéric FRANCE
b41ac00b98
add new rule 2020-05-21 15:05:19 +02:00
Frédéric FRANCE
ee6fadd0d5
add new rule 2020-05-21 01:41:27 +02:00
Laurent Destailleur
30fede216c Fix Add '_pw' var as var sensibles. 2020-05-06 04:03:07 +02:00
Laurent Destailleur
a88ab40384 Clean phpcs 2020-05-02 15:18:59 +02:00
Laurent Destailleur
ed045b2673 FIX #13749 2020-04-27 15:04:31 +02:00
Laurent Destailleur
50d9f466d4 FIX #13749 2020-04-27 14:38:45 +02:00
Scrutinizer Auto-Fixer
1bf5745286 Scrutinizer Auto-Fixes
This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
2020-04-25 11:52:07 +00:00
Laurent Destailleur
0aa0d62f43 Fix constant 2020-04-23 18:42:59 +02:00
Laurent Destailleur
201a2349f6
Merge branch 'develop' into patch-324 2020-04-23 18:39:30 +02:00
Scrutinizer Auto-Fixer
444c293c01 Scrutinizer Auto-Fixes
This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
2020-04-10 08:59:32 +00:00
ptibogxiv
26bc5381e4
Update api_setup.class.php 2020-04-08 14:57:34 +02:00
stickler-ci
1827541f88 Fixing style errors. 2020-04-05 12:04:25 +00:00
ptibogxiv
6a53e02c3c
FIX better url for get conf with REST API
need to be more userfriendly and similar to other api (without a variable with GET varible in URL "?confname="
2020-04-05 14:02:51 +02:00
Laurent Destailleur
e7360279b5
Merge pull request #13490 from ptibogxiv/patch-319
FIX preg_match for constante name
2020-04-05 12:26:08 +02:00
ptibogxiv
6be12efd61
NEW get documents for categories with RESP API 2020-04-05 11:20:24 +02:00
ptibogxiv
7818b15151
Update api_setup.class.php 2020-04-05 10:50:38 +02:00
ptibogxiv
99e53f6b18
FIX preg_math 2020-04-03 13:12:00 +02:00
Laurent Destailleur
b5e5d96d50 Doxygen 2020-04-03 03:04:23 +02:00
Laurent Destailleur
a94f8572f1
Update api_setup.class.php 2020-04-02 12:53:41 +02:00
ptibogxiv
a0c2bc3743
Update api_setup.class.php 2020-03-31 20:52:15 +02:00
stickler-ci
7409642636 Fixing style errors. 2020-03-30 19:12:29 +00:00
ptibogxiv
fbf7375fe5
NEW compatibility of translabel with more dict 2020-03-30 21:10:27 +02:00
Laurent Destailleur
9525289488 Fix return code of some API 2020-03-17 13:50:20 +01:00
Laurent Destailleur
76fc722638 NEW Can get some variables (not available by default) 2020-03-17 13:33:21 +01:00
Laurent Destailleur
45771663aa NEW Add API to get types of expense reports 2020-02-25 18:53:25 +01:00
Laurent Destailleur
f6014798d9 Comment 2020-02-25 14:59:47 +01:00
Laurent Destailleur
b7a0de11c6 FIX API Get list of documents for supplier_invoice 2020-02-25 14:47:51 +01:00
Laurent Destailleur
9c7debf27f FIX API Get list of documents for supplier_invoice 2020-02-25 14:47:05 +01:00
Laurent Destailleur
d172a95dfe Merge branch '11.0' of git@github.com:Dolibarr/dolibarr.git into develop 2020-02-25 14:37:04 +01:00
Laurent Destailleur
69c2f4bd27 FIX API upload/download doc for expensereport 2020-02-25 14:36:39 +01:00
Laurent Destailleur
2438b48a1d FIX API upload/download doc for expensereport 2020-02-25 14:36:05 +01:00
Laurent Destailleur
5516c8ce81 FIX Submit of documents for supplier invoices. 2020-02-25 00:51:06 +01:00
Laurent Destailleur
8c52f324ac Fix doxygen 2020-02-18 22:58:51 +01:00
Laurent Destailleur
0212bc5cf2 Try to fix eclipse warnings on doxygen 2020-02-18 22:54:03 +01:00
Laurent Destailleur
97081affdc Fix perm 2020-02-18 22:50:13 +01:00
Laurent Destailleur
b859d4670a Fix perm 2020-02-18 22:49:53 +01:00
ptibogxiv
08b06f48c9
NEW : api for get user's documents 2020-02-15 20:33:12 +01:00
ptibogxiv
8f2c87b0d4
Update api_setup.class.php 2020-01-30 13:52:13 +01:00
ptibogxiv
e31a93929a
FIX doc of dictionnary API 2020-01-29 14:01:48 +01:00
Laurent Destailleur
9ae174d8b4 Clean code 2020-01-28 19:47:21 +01:00
Scrutinizer Auto-Fixer
455178ff73 Scrutinizer Auto-Fixes
This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
2019-12-18 14:20:36 +00:00
Laurent Destailleur
838633d0de Merge branch '10.0' of git@github.com:Dolibarr/dolibarr.git into develop
Conflicts:
	htdocs/admin/system/filecheck.php
	htdocs/api/class/api_setup.class.php
	htdocs/compta/facture/card.php
	htdocs/compta/stats/index.php
	htdocs/core/actions_massactions.inc.php
	htdocs/install/upgrade2.php
	htdocs/loan/card.php
	htdocs/loan/document.php
	htdocs/loan/info.php
	htdocs/loan/note.php
	htdocs/loan/schedule.php
	htdocs/product/list.php
	htdocs/ticket/card.php
	htdocs/user/class/user.class.php
2019-12-14 14:53:49 +01:00
Laurent Destailleur
17b9964678 Merge branch '9.0' of git@github.com:Dolibarr/dolibarr.git into 10.0
Conflicts:
	build/generate_filelist_xml.php
	htdocs/core/class/utils.class.php
	htdocs/core/lib/files.lib.php
2019-12-14 14:43:14 +01:00
Laurent Destailleur
a8de7b850a Merge branch '8.0' of git@github.com:Dolibarr/dolibarr.git into 9.0
Conflicts:
	htdocs/admin/system/filecheck.php
2019-12-14 14:33:46 +01:00
Frédéric FRANCE
874eab1619
$type and $module are not defined 2019-12-13 14:51:18 +01:00
Frédéric FRANCE
bac5c3800e
Update api_setup.class.php 2019-12-13 14:46:27 +01:00
Laurent Destailleur
ce47de453e Fix HTML5 2019-12-12 10:31:08 +01:00
stickler-ci
247ef7b619 Fixing style errors. 2019-11-26 16:40:45 +00:00
ptibogxiv
d36cc22d39
NEW get company info by API 2019-11-26 17:38:49 +01:00
Scrutinizer Auto-Fixer
1eab97080c Scrutinizer Auto-Fixes
This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
2019-11-22 14:13:30 +00:00
Scrutinizer Auto-Fixer
f4aaa8d9bb Scrutinizer Auto-Fixes
This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
2019-11-13 18:34:37 +00:00
Laurent Destailleur
274ddaa1be Fix mandatory field 2019-11-09 19:01:03 +01:00
Cédric
9cc1f1db75
replace "/delete" by "/" 2019-11-09 11:52:03 +01:00
stickler-ci
e53ce81f23 Fixing style errors. 2019-11-08 23:48:46 +00:00
Cédric
1e5fe3f31c
API New delete document 2019-11-09 00:47:03 +01:00
stickler-ci
8dc67d9530 Fixing style errors. 2019-11-08 18:58:49 +00:00
Cédric
21454aa597
API New link documents to products (pictures) 2019-11-08 19:54:38 +01:00
ptibogxiv
4145d7c825
Update api_setup.class.php 2019-11-07 17:18:39 +01:00
stickler-ci
a3878d82e9 Fixing style errors. 2019-11-07 16:06:58 +00:00
ptibogxiv
a641c81d92
FIX socialnetworks API if module not active 2019-11-07 17:05:30 +01:00
stickler-ci
7f53bc376c Fixing style errors. 2019-11-05 10:30:36 +00:00
ptibogxiv
cd187f033f
NEW get social networks dictionary by API 2019-11-05 11:28:22 +01:00
stickler-ci
50e5185297 Fixing style errors. 2019-11-04 20:02:11 +00:00
Cédric
f05463b239
API Get the list of ordering methods 2019-11-04 21:01:30 +01:00
Frédéric FRANCE
4df406c985
replace societe_id by socid 2019-11-04 20:20:38 +01:00
Laurent Destailleur
93f3b1d2db Clean APIs 2019-11-02 15:05:14 +01:00
Laurent Destailleur
b958997268 Clean code of APIs 2019-11-02 14:49:26 +01:00
Laurent Destailleur
1cc9954f61 Clean api from bad vars 2019-11-02 14:20:43 +01:00
Laurent Destailleur
e3b5be7475 All properties 'libstatut', 'labelstatut', 'labelstatus' were renamed
into 'labelStatus'.
All properties 'labelstatusshort' and 'labelstatut_short' were renamed
into 'labelStatusShort'.
2019-11-01 12:52:03 +01:00
Laurent Destailleur
24174a0eea
Merge pull request #12201 from c3do/develop
Fix getListOfShipmentMethods
2019-10-22 14:05:22 +02:00
Laurent Destailleur
5ad7ca5620 Code more generic around setting projet on a card 2019-10-22 13:43:24 +02:00
Cédric
d098efb8fe
getListOfShipmentMethods: Add rowid field in sql select 2019-10-22 12:52:08 +02:00
Laurent Destailleur
aa4afcfe8a NEW Can set a filter on object linked in modulebuilder. 2019-10-22 03:49:09 +02:00
c3do
bc6fb54798 New Add API to get List of Shipment methods 2019-10-20 15:56:27 +02:00
c3do
4fb0d03500 NEW Add API to get Country by code and iso 2019-10-20 15:25:18 +02:00
Frédéric FRANCE
33c35780e0
wip 2019-10-20 11:17:54 +02:00
ptibogxiv
e5cb9bc22e
Update api_setup.class.php 2019-10-10 15:56:36 +02:00
ptibogxiv
56b6223bba
Update api_setup.class.php 2019-10-10 14:23:18 +02:00
ptibogxiv
612c80b290
Update api_setup.class.php 2019-10-10 13:07:19 +02:00
Alexandre SPANGARO
02dbc11f98 Move Gnu.org to https 2019-09-23 21:55:30 +02:00
Laurent Destailleur
98459363df
Merge pull request #11795 from jtraulle/fix-doxygen-examples
Fix Wrongly catched examples by Doxygen
2019-09-03 12:45:23 +02:00
Laurent Destailleur
f6c2fb77ae Fix scrutinizer 2019-09-01 22:02:48 +02:00
Jean Traullé
c32c7d48ba
Fix Wrongly catched examples by Doxygen 2019-08-30 17:14:59 +02:00
Laurent Destailleur
6a906a6064 Rename module_part parameter into modulepart into document APIs 2019-08-25 16:38:09 +02:00
Laurent Destailleur
3339f89fc5 Merge branch '10.0' of git@github.com:Dolibarr/dolibarr.git into develop
Conflicts:
	htdocs/api/class/api_login.class.php
	htdocs/dav/fileserver.php
2019-08-22 12:45:23 +02:00
Regis Houssin
90f60b0137 FIX add $context parameter in checkLoginPassEntity 2019-08-22 10:56:07 +02:00
Laurent Destailleur
a19228ccc0 Fix compatibility with twofactor
Conflicts:
	htdocs/api/class/api_login.class.php
	htdocs/dav/fileserver.php
2019-08-22 10:53:42 +02:00
Laurent Destailleur
c7bec909b4 Fix compatibility with twofactor 2019-08-22 10:38:45 +02:00
Laurent Destailleur
eb0644c6f4 PSR-12 2019-08-21 13:00:22 +02:00
Laurent Destailleur
65d11704bb Fix Protect DAV when $dolibarr_main_authentication is forceuser
Compatibility with twoauth
2019-08-20 13:46:15 +02:00
Laurent Destailleur
8647a20c18 Merge branch '10.0' of git@github.com:Dolibarr/dolibarr.git into develop
Conflicts:
	ChangeLog
	htdocs/langs/en_US/admin.lang
	htdocs/product/dynamic_price/class/price_parser.class.php
	htdocs/product/stats/facture.php
2019-08-10 01:57:43 +02:00
ptibogxiv
74e3a423fd
Fix document list for products in API 2019-08-02 12:35:00 +02:00
Laurent Destailleur
a46bfc7a29 Merge branch '10.0' of git@github.com:Dolibarr/dolibarr.git into develop
Conflicts:
	htdocs/core/lib/project.lib.php
2019-07-25 17:54:14 +02:00
Laurent Destailleur
1d7885bc0c FIX We should remove property comments only for project and task api. 2019-07-25 16:58:24 +02:00
Laurent Destailleur
fa476b4994 Properties ->libelle_incoterms were renamed into ->label_incoterms 2019-06-25 13:00:02 +02:00
Laurent Destailleur
d49891d009 All ->lignes were renamed into ->lines 2019-06-24 21:03:04 +02:00
Laurent Destailleur
9961b9c132
Merge pull request #11136 from ptibogxiv/patch-175
NEW add multicurrency rate at currency list API
2019-06-24 19:00:27 +02:00
Laurent Destailleur
40023c8ba2
Merge branch 'develop' into patch-174 2019-06-20 03:56:29 +02:00
ptibogxiv
27c928d9d9
NEW list of measuring units API 2019-06-17 20:53:10 +02:00
Laurent Destailleur
c4fdec9481
Update api_setup.class.php 2019-05-08 02:05:03 +02:00
ptibogxiv
96cc4f7774
Update api_setup.class.php 2019-05-06 12:37:55 +02:00
ptibogxiv
80ed080800
Update api_setup.class.php 2019-05-06 11:31:41 +02:00
ptibogxiv
650fbb2bbf
Update api_setup.class.php 2019-05-06 10:55:11 +02:00
ptibogxiv
2aafef4017
NEW add multicurrency rate at currency list API 2019-05-06 10:27:13 +02:00
ptibogxiv
a0ba8d98a1
Update api_setup.class.php 2019-05-05 20:54:31 +02:00
ptibogxiv
11ece56038
NEW add API shipment mode 2019-05-05 19:08:27 +02:00
Laurent Destailleur
4756499a81 Debug module builder for generation of APIs 2019-05-02 12:03:14 +02:00
Laurent Destailleur
c7e4cd7fa1 More complete examples 2019-04-01 18:39:36 +02:00
Frédéric FRANCE
f283782445
change visibility 2019-03-04 19:57:46 +01:00
Frédéric FRANCE
089875b8a2
add visibility 2019-02-27 17:53:52 +01:00
Frédéric FRANCE
49cbaed569
Merge remote-tracking branch 'upstream/develop' into Squiz.Scope.MethodScope.Missing 2019-02-27 14:21:15 +01:00
ptibogxiv
096bc4750c
Update api_documents.class.php 2019-02-27 11:23:33 +01:00
ptibogxiv
89c2d6731b
ADD product document support in API 2019-02-27 00:48:13 +01:00
Frédéric FRANCE
e6c3eb0ba1
wip 2019-02-26 21:13:07 +01:00
Frédéric FRANCE
1c07006015
wip 2019-02-25 21:36:27 +01:00
Laurent Destailleur
41e20a9d4f Merge branch '7.0' of git@github.com:Dolibarr/dolibarr.git into 8.0 2019-01-30 16:44:08 +01:00
Xebax
b24f5fda68 FIX Fix PHP warning "count(): Parameter must be an array..." 2019-01-29 08:47:46 +01:00
Frédéric FRANCE
b10558bacd
Merge remote-tracking branch 'upstream/develop' into nospaceaftercomma 2019-01-27 23:23:38 +01:00
Laurent Destailleur
4f9f0fd7b5
Merge branch 'develop' into elseif 2019-01-27 17:54:06 +01:00
Frédéric FRANCE
f0cdf300d1
Squiz.Functions.FunctionDeclarationArgumentSpacing 2019-01-27 15:20:16 +01:00
Frédéric FRANCE
7ee086b402
PSR2 space after comma in function call 2019-01-27 11:55:16 +01:00
Frédéric FRANCE
6e91b3cefc
PSR2 usage of else if is discouraged 2019-01-27 10:49:34 +01:00
Philippe GRAND
cf62d285d9 update with html5 compliant code 2019-01-22 13:54:04 +01:00
ptibogxiv
f64437104b
Update api_setup.class.php 2019-01-16 20:16:33 +01:00
ptibogxiv
f4b27e0340
Update api_setup.class.php 2019-01-16 18:59:18 +01:00
ptibogxiv
a74070c6de
Update api_setup.class.php 2019-01-16 18:38:22 +01:00
ptibogxiv
379b20d5aa
Update api_setup.class.php 2019-01-16 14:04:32 +01:00
ptibogxiv
35ba4b15ea
NEW list of currency
+ fix active et civilities
2019-01-16 14:03:21 +01:00
Regis Houssin
89389baeac Merge branch 'develop' of https://github.com/Dolibarr/dolibarr into develop_email 2018-11-09 15:37:29 +01:00
ptibogxiv
cf688a894b
Update api_documents.class.php 2018-11-08 17:20:12 +01:00
ptibogxiv
8727435216
Update API for download
more infos for easiest & better use of the generated file by API
2018-11-08 13:58:37 +01:00
Regis Houssin
569d59d251 FIX change my deprecated email 2018-10-27 14:43:12 +02:00
Frédéric FRANCE
4d72cafa52
code comment 2018-10-20 13:47:51 +02:00
ptibogxiv
f2d0004a3e
ADD civility list in API 2018-10-17 00:36:40 +02:00
Frédéric FRANCE
f80de9e65e
fix syntax error and phpcs 2018-10-16 21:49:26 +02:00
Laurent Destailleur
550a66d338
Merge pull request #9772 from ptibogxiv/patch-76
NEW move ticket dictionary in API /setup
2018-10-16 21:39:30 +02:00
Laurent Destailleur
737bbf6e7c
Update api_setup.class.php 2018-10-16 21:38:27 +02:00
ptibogxiv
c9aaf01a7c
MOVE ticket dictionnary in API /setup 2018-10-16 20:56:10 +02:00
Nicolas Aupetit
a02fdd1f4d
fix API check sql filters
Correct PHP7 warning about wrong usage of count() function
2018-10-06 13:44:10 +11:00
Frédéric FRANCE
04c1a7d4af
move phpcs:ignore 2018-09-02 13:38:11 +02:00
Frédéric FRANCE
47879d44bc
move phpcs:ignore 2018-09-02 09:57:19 +02:00
Frédéric FRANCE
10200374ef
Merge remote-tracking branch 'upstream/develop' into camelCaps 2018-09-01 14:06:23 +02:00
Frédéric FRANCE
57fb3dc2f4
Merge remote-tracking branch 'upstream/develop' into camelCaps 2018-09-01 13:52:51 +02:00
Laurent Destailleur
5604f3b0c3
Merge pull request #9376 from frederic34/functionCommentMissing
function Comment Missing
2018-09-01 12:59:32 +02:00
Frédéric FRANCE
3b2e7732c2
function Comment Missing 2018-08-31 22:49:11 +02:00
Frédéric FRANCE
02b74afe5f
function Comment Missing 2018-08-31 22:41:51 +02:00
Frédéric FRANCE
6aee680a4f
PSR2 ClassDeclaration 2018-08-29 22:06:05 +02:00
Frédéric FRANCE
b03f4004ea
PSR2 FunctionClosingBrace 2018-08-29 21:25:22 +02:00
Frédéric FRANCE
d8bf4a0ecf
Merge remote-tracking branch 'upstream/develop' into camelCaps 2018-08-25 09:07:04 +02:00
Laurent Destailleur
7a35b560a6 Merge branch '8.0' of git@github.com:Dolibarr/dolibarr.git into develop 2018-08-23 19:51:52 +02:00
Laurent Destailleur
8757392e6b FIX remove internal property isextrafieldmanaged from API returns 2018-08-23 19:24:00 +02:00
Frédéric FRANCE
6b6daf178f
Merge remote-tracking branch 'upstream/develop' into camelCaps 2018-08-21 20:57:58 +02:00
Frédéric FRANCE
d68f176e7e
replace obsolete phpcs tags 2018-08-16 14:59:06 +02:00
Frédéric FRANCE
39462742e2
Merge remote-tracking branch 'upstream/develop' into camelCaps 2018-08-16 08:17:55 +02:00
Laurent Destailleur
b515511ad6
Merge branch 'develop' into FunctionDeclaration 2018-08-16 00:52:55 +02:00
Frédéric FRANCE
54a078149a
function declaration 2018-08-15 17:34:35 +02:00
Frédéric FRANCE
a0a6afc224
return comment 2018-08-14 12:23:10 +02:00
Frédéric FRANCE
850ac34020
mark non camelCaps function 2018-08-13 17:26:32 +02:00
Laurent Destailleur
dc8c4402ee Merge branch '8.0' of git@github.com:Dolibarr/dolibarr.git into develop 2018-08-12 20:09:22 +02:00
Laurent Destailleur
8d54df4263 Merge branch '7.0' of git@github.com:Dolibarr/dolibarr.git into 8.0
Conflicts:
	htdocs/core/modules/commande/doc/pdf_einstein.modules.php
	htdocs/core/modules/facture/doc/pdf_crabe.modules.php
	htdocs/core/modules/propale/doc/pdf_azur.modules.php
2018-08-08 17:31:23 +02:00
Laurent Destailleur
17ed19503c Code comment 2018-08-02 17:51:04 +02:00
Philippe GRAND
442ffb95ba clean and update code 2018-07-23 17:57:11 +02:00
Regis Houssin
e1dabe3924 NEW add agenda documents in API REST 2018-07-13 16:07:19 +02:00
Laurent Destailleur
8b4ef1313a FIX API for tickets 2018-04-29 18:24:24 +02:00
Laurent Destailleur
0d0da234b1 Lowercase NULL, TRUE, FALSE according to PSR2 2018-04-16 13:51:16 +02:00
Laurent Destailleur
e639f2a91f Removed deprecated method classer_facturee(). Duplicate of
classifyBilled
2018-03-16 10:51:12 +01:00
Regis Houssin
861a831e24 Fix: debug 2018-03-08 11:53:46 +01:00
Laurent Destailleur
0270e21289
Merge pull request #8242 from hregis/develop_multicompany
Fix: use "multidir_output" instead "dir_output" (propal)
2018-03-02 17:49:25 +01:00
Laurent Destailleur
7e48db2869 Clean code 2018-02-26 15:03:09 +01:00
Regis Houssin
093ea49cc6 Fix: use "multidir_output" instead "dir_output" 2018-02-26 11:35:30 +01:00
Laurent Destailleur
bc2009874d Fix code comment 2018-01-15 12:59:30 +01:00
Laurent Destailleur
f19fb90ab0 Merge #8008 manually 2018-01-04 23:36:14 +01:00
Laurent Destailleur
6f107e3fee Fix API to download/build doc 2017-12-27 15:48:20 +01:00
Laurent Destailleur
fdac3078e2 Fix permissions 2017-12-24 14:42:51 +01:00
Laurent Destailleur
57272dc5fe API to get list of available document is ok for invoice
order, proposal, shipment
2017-12-22 19:49:31 +01:00
Laurent Destailleur
f0c8b548f3 Fix bugs reported by scrutinizer 2017-12-22 14:24:31 +01:00
Laurent Destailleur
aad0da2513 Fix maxi debug of APIs (clean output fields) 2017-12-21 16:50:18 +01:00
Laurent Destailleur
2163db446b NEW Can test signature of a version from API 2017-12-16 17:24:23 +01:00
Laurent Destailleur
1ad7ec5ad1 Test on bad entity 2017-12-12 13:23:39 +01:00
Laurent Destailleur
ce32da6217 Fix debugs APIs 2017-12-01 15:39:18 +01:00
Laurent Destailleur
92753273b9 Fix upload api for invoices and bad id for bank account 2017-11-17 11:44:52 +01:00
Neil Orley
4dfb0a8f1b NEW add the ability to regenerate an pdf for the order module
add the ability to regenerate an pdf for the order module
2017-11-10 16:42:06 +01:00
Neil Orley
e025167747 Modify getAvailability comments 2017-11-08 17:17:25 +01:00
Neil Orley
ac64ada264 NEW Get the list of delivery times
Get the list of delivery times using the REST API
2017-11-08 17:15:28 +01:00
Laurent Destailleur
ea5dd3eb3d NEW Add REST API for supplier proposals 2017-11-06 11:06:31 +01:00
Laurent Destailleur
534c50f46e Move api that are admin features into a dedicated /admin api 2017-11-06 09:55:31 +01:00
Laurent Destailleur
a329f7dc75 Merge branch '6.0' of git@github.com:Dolibarr/dolibarr.git into develop
Conflicts:
	build/exe/doliwamp/doliwamp.iss
	htdocs/accountancy/customer/list.php
	htdocs/accountancy/supplier/list.php
2017-11-05 18:50:14 +01:00
Laurent Destailleur
fb3f1ef667 Code comment 2017-11-02 09:49:41 +01:00
Laurent Destailleur
bb996019c2 NEW Support visibility on extrafields 2017-10-25 11:42:14 +02:00
Laurent Destailleur
728e36f70f Merge branch '6.0' of git@github.com:Dolibarr/dolibarr.git into develop
Conflicts:
	htdocs/api/index.php
	htdocs/comm/propal/class/api_proposals.class.php
	htdocs/comm/propal/class/propal.class.php
	htdocs/compta/facture/class/api_invoices.class.php
	htdocs/core/actions_massactions.inc.php
	htdocs/core/actions_sendmails.inc.php
2017-10-22 01:43:33 +02:00
Laurent Destailleur
d7113a3602 Fix init of environment for a dedicated entity in API 2017-10-19 17:32:23 +02:00
Laurent Destailleur
8da7f789d8 Fix init of environment for a dedicated entity in API 2017-10-19 17:30:08 +02:00
Laurent Destailleur
99239cbb38 Add API close to close an order 2017-10-18 15:34:03 +02:00
Laurent Destailleur
d70c215ab8 Merge branch '6.0' of git@github.com:Dolibarr/dolibarr.git into develop
Conflicts:
	htdocs/compta/bank/bankentries.php
	htdocs/fourn/facture/card.php
2017-10-17 11:14:58 +02:00
Laurent Destailleur
a4b4eab2ae Fix API when using an API key for a user in another entity 2017-10-16 16:23:50 +02:00
Laurent Destailleur
bec985a551 Fix error message 2017-10-16 14:56:56 +02:00
Laurent Destailleur
87814af7b6 Move function colorIsLight into functions.lib.php
Fix scrutinizer bugs.
2017-10-16 09:29:10 +02:00
Laurent Destailleur
afdc176f47 Fix scrutinizer 2017-10-16 08:52:00 +02:00
Regis Houssin
151fb72183 NEW documents REST API return list of documents by element 2017-10-12 12:28:10 +02:00
Nicolas Leichtle
5f2c5a6c53 New Extend REST POST function "/documents" to support projects and tasks 2017-10-08 23:26:35 +02:00
Laurent Destailleur
e40bffb0d5 Fix bug reported by scrutinizer 2017-10-07 20:21:47 +02:00
Scrutinizer Auto-Fixer
328d39bc71 Scrutinizer Auto-Fixes
This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
2017-10-07 11:09:31 +00:00
Laurent Destailleur
19adbaf84b Fix url to explorer no more working 2017-10-06 13:36:29 +02:00
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
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
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
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
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