Module Web Services API REST (developer): Difference between revisions

m
Line 23: Line 23:


= List of provided services =
= List of provided services =
Only few services are available. Starting to Dolibarr 5.0 version, you can see full list of Dolibarr Webservices provided, by calling the explorer here at address:
Only few services are available. Starting to Dolibarr 5.0 version, you can see full list of Dolibarr Web services provided, by calling the explorer here at address:


'''http://yourdolibarrurl/api/index.php/explorer'''.
'''http://yourdolibarrurl/api/index.php/explorer'''.


You must first make the first call to the '''login''' api to get the api key.
You must first make the first call to the '''login''' api to get the API key.
Then enter api key to get list of all other available services.
Then enter api key to get list of all other available API services.


For example, you can try the explorer on the demo instance at:
For example, you can try the explorer on the demo instance at:
Line 34: Line 34:
'''https://demo.dolibarr.org/api/index.php/explorer'''
'''https://demo.dolibarr.org/api/index.php/explorer'''


You must first make the first call to the '''login''' api to get the api key.
You must first make the first call to the '''login''' api to get the API key.
Then enter api key to get list of all other available services.
Then enter api key to get list of all other available API services.


= Adding a new service =
= Adding a new service =