REST API "dictionnarycountries" : API not found (failed to include API file)

,

Hello,

When I try to do a API call (GET) /api/index.php/dictionnarycountries or /api/index.php/dictionnarycountries/124 (for example), the API is returning API not found (failed to include API file)

I tried to set the user as admin and to add him all permissions but it didn’t solve the issue.
I tried with Dolibarr 14.0.3 and 16.0.3 too, it is the same (my server is in PHP 7.4).

I can reproduce the issue with the swagger :

(I have same behaviours with dictionnarytowns but I don’t need it. No problem with other entities like thirdparties or invoices)

Any idea what happens? (I need to get the ISO code of a country with the dolibarr Id).

Thank you very much by advance for your help!

Best regards,

Hello,

As far as I know, API for dictionaries is not available yet.

Hello @ksar,

Thank you for your reply!

Oh darn, I was expecting this API was working (I read about it in Dolibarr 7 release: ‘Some REST API to access setup features, like dictionaries (country, town, extrafields, …) were moved into a common API “/setup”.’), do you know when it will be available?

Thanks and best regards,