31,003
edits
Tag: 2017 source edit |
Tag: 2017 source edit |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 100: | Line 100: | ||
For example, you can try the explorer on the demo instance at: | For example, you can try the explorer on the demo instance at: | ||
'''https:// | '''https://preview.dolibarr.org/api/index.php/explorer''' | ||
The swagger file to describe all available API services can be found at: | |||
'''https://preview.dolibarr.org/api/index.php/explorer/swagger.json?DOLAPIKEY=demokey''' | |||
| Line 123: | Line 127: | ||
You will have to use this API key in any of your client program that need to call a Dolibarr API. | You will have to use this API key in any of your client program that need to call a Dolibarr API. The API key must be provided as a HTTP header "DOLAPIKEY: apikey". | ||
If you are using the multicompany module, you can also force the API to be executed as if you were logged into a given entity by adding the HTTP header "DOLAPIENTITY: idOfEntity" | |||