2
0
forked from Wavyzz/dolibarr
Commit Graph

719 Commits

Author SHA1 Message Date
Laurent Destailleur
db133ce471 Clean value 2024-02-01 00:54:03 +01:00
Laurent Destailleur
6c91d3d8b7 Fix typo english 2024-01-18 15:15:05 +01:00
Laurent Destailleur
8706d58ea6 Move code only if required 2024-01-18 12:39:45 +01:00
Laurent Destailleur
68b0e40a99 Merge pull request #27582 from msoula/patch-1
QUAL Send API response data before completing post-processing tasks
2024-01-18 12:36:08 +01:00
Mathieu "rid" Soula
1bece7f104 Fix PHPStan / php-stan check failure 2024-01-18 10:52:39 +01:00
Mathieu "rid" Soula
b1b16677ae Fix indentation. 2024-01-18 10:36:10 +01:00
Mathieu "rid" Soula
480d35ccc9 Move termination callback back to api/index.php
As discussed in the pull request conversation : 
- remove unnecessary flush calls ;
- remove termination callback method from Restler code and set it back into api/index.php
2024-01-18 10:26:42 +01:00
pascal
3134021875 Enhancing rest error messages 2024-01-17 20:41:25 +01:00
Mathieu "rid" Soula
12a30cb907 Update index.php
Fix PHPScan error
2024-01-17 11:37:10 +01:00
Mathieu "rid" Soula
85b90373f5 QUAL Sending API response data to clients before completing post-processing tasks.
This commit allows Rester to immediately send response data back to the client before completing some time consuming post-processing tasks (such as sending emails) in a termination callback if defined.

Termination callback should be created into the same class as the API method it terminates. Callback name must match the following format : "_terminate_" + <API_METHOD_NAME> + "_" + <API_METHOD_RESPONSE_FORMAT_EXTENSION>.

For instance, termination callback for orders "post" method defined in htdocs/commande/class/api_orders.class.php must be named "_terminate_post_json".
2024-01-17 11:16:43 +01:00
MDW
a04f2bf4e7 Qual: Spelling fixes that newly appeared. (#27495)
* Qual: Spelling fixes that newly appeared.

# Qual: Fix spelling erros that appeared since the bulk updates.

These issues mostly appeared since the bulk updates (a few ones were postponed
to make sure no real spelling errors were missed.)

* Update modulebuilder.lib.php

* Update pdf_standard.modules.php

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-01-14 12:26:37 +01:00
Pascal Hubrecht
4d259e2fda QUAL Enhance API description - Documents (#27492)
* qual enhance api description

* Update api_documents.class.php

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-01-13 19:34:51 +01:00
MDW
39769482b1 Qual: Fix typing hints for DoliDB (#27484)
# Qual: Fix typing hints for DoliDB

This should help the static tools for type and method checking.
2024-01-13 15:50:02 +01:00
MDW
85ad4ecdf8 Qual: Spelling for htdocs/[a-b]* (#27422)
Mostly comments, one variable changed from misspelling to .
Also changed CNAT to C.N.A.T in comment to avoid fix from CNAT to CAN'T.

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-01-12 20:58:09 +01:00
MDW
752dab1cb7 Fix: Remove unused 'use' references. (#27398)
Phan reports these 'use' clauses are unused.

Also fix some spelling.
2024-01-10 19:51:35 +01:00
Laurent Destailleur
203245bf95 Fix #yogosha19838 2024-01-09 21:37:53 +01:00
Laurent Destailleur
4501872f17 Clean code with rector 2 2024-01-05 04:33:58 +01:00
Laurent Destailleur
e9e9bd2e09 Clean code 2024-01-04 03:45:35 +01:00
Laurent Destailleur
a2b27aaf4e Merge pull request #27191 from cfoellmann/19/PR/api-status
QUAL extend api/status
2024-01-04 03:42:53 +01:00
Fabian Heinz
b78632a20e api fixes
According to [RFC2616](https://www.rfc-editor.org/rfc/rfc2616#section-10.2), APIs should return 2xx status codes if the request was correct.
The response should be status 200 with an empty result array.
2023-12-31 14:11:05 +01:00
Laurent Destailleur
ab3737e569 Fix libxml_disable_entity_loader(true) must be called only if LIBXML is
lower than 20900 (disabled by default for libxml 2.9.0)
2023-12-29 17:55:09 +01:00
Laurent Destailleur
1985d1fd4d Fix warnings 2023-12-23 20:00:57 +01:00
Laurent Destailleur
07f4c9b335 Fix warnings 2023-12-23 19:47:10 +01:00
Christian Foellmann
673960f511 NEW add debugging info to api/status if non-production 2023-12-22 11:09:05 +01:00
Laurent Destailleur
63c38da901 Merge branch '18.0' of git@github.com:Dolibarr/dolibarr.git into develop 2023-12-21 19:44:25 +01:00
Laurent Destailleur
9a6ae3c454 FIX Return a better error message when token is not valid 2023-12-21 19:25:07 +01:00
Christian Foellmann
93ea4379b2 QUAL replace $conf->global with getDolGlobalString() 2023-12-21 13:32:08 +01:00
Laurent Destailleur
ec9c0a0a88 Fix regression 2023-12-15 14:18:30 +01:00
Laurent Destailleur
d92c65ad91 FIX infinite loop in API call/trigger by adding a caller 2023-12-15 12:15:33 +01:00
Laurent Destailleur
fb083a6cfc Fix warning with rector 2023-12-13 16:33:17 +01:00
Laurent Destailleur
987d6c41b9 Fix with php-cs-fixer 2023-12-04 11:41:14 +01:00
Laurent Destailleur
e6eb34a8db Fiw warnings: The private array ->status_short, ->statuts and
->status_long are now array ->labelStatusShort and ->labelStatus
everywhere.
2023-11-24 10:10:24 +01:00
Laurent Destailleur
ca145ef912 QUAL: Endpoint for API /partnershipapi has been renamed into
/partnerships to follow conventions
2023-10-31 13:31:02 +01:00
Laurent Destailleur
ecd4c7bbc7 Comment 2023-10-31 13:05:27 +01:00
Laurent Destailleur
0b9795f34c FIX upload of files src_object_type 2023-10-31 11:52:31 +01:00
Laurent Destailleur
85d36ddc58 FIX src_object_id and ttype not filed when uploading a file with API. 2023-10-31 11:52:17 +01:00
Laurent Destailleur
59b9d12ed5 FIX upload of files src_object_type 2023-10-31 10:44:58 +01:00
Laurent Destailleur
8f91e6bce8 FIX src_object_id and ttype not filed when uploading a file with API. 2023-10-31 00:47:55 +01:00
Laurent Destailleur
40ea006536 Debug v19 2023-10-26 12:22:54 +02:00
Laurent Destailleur
5b15b5c647 QUAL Move conf->global into getDolGlobal... 2023-10-24 17:00:13 +02:00
Lucas Marcouiller
42865a975a Fix some code smell (#26277)
* Fix some code smell

* Update commande.class.php

---------

Co-authored-by: Hystepik <lucas.marcouiller@gmail.com>
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2023-10-20 02:20:26 +02:00
Henning Kleen
b157ddd606 NEW Allow generation of delivery note through REST-API (#26226)
Add support for (re-)generating a delivery note through the /documents/builddoc API endpoint
2023-10-16 15:50:23 +02:00
Laurent Destailleur
1f38e54e78 Clean code 2023-10-15 15:32:35 +02:00
Laurent Destailleur
c507adeef7 NEW Top menu support picto of modules that are font awesome picto. 2023-10-13 15:00:51 +02:00
pascal
871f896962 implementation of properties filter 2023-09-26 18:04:48 +02:00
Laurent Destailleur
c3dafa05c0 Add a better error message on API login if token is not valid. 2023-08-14 12:25:52 +02:00
Laurent Destailleur
921a6f3135 Fix warning 2023-08-06 12:26:27 +02:00
Laurent Destailleur
38a160873d Standardize code 2023-08-06 01:26:06 +02:00
Laurent Destailleur
ec39199b85 Merge branch '17.0' of git@github.com:Dolibarr/dolibarr.git into 18.0
Conflicts:
	.travis.yml
	htdocs/api/class/api_documents.class.php
	htdocs/core/db/pgsql.class.php
2023-07-26 01:42:22 +02:00
Boris Hermans
d2f9d7634b Handle projects for the api documents listing route (#25465) 2023-07-25 23:24:11 +02:00