Git support
Git support
As part of EDDI's features, Git is supported, this means you can init
, commit
, push
and pull
a Chabot to a Git repository.
gitinit
a Chatbot:
init
a Chatbot:Exporting a bot is a fairly simple process, send a POST
request to the following API endpoint and you will receive the location of the exported zip file on the response headers, specifically the location
header.
Export Chatbot REST API Endpoint
Element | Value |
Http Method |
|
API endpoint |
|
{botId} | ( |
{botVersion} | ( |
Example:
Request URL:
http://localhost:7070/backup/export/5aaf90e29f7dd421ac3c7dd4?botVersion=1
Response Body: no content
Response Code: 200
Response Headers:
Importing a bot :
Same process as exporting; send a POST
request to the following API endpoint , you will receive the id of the imported bot on the response headers.
Import Chatbot REST API Endpoint
Element | Value |
Http Method |
|
API endpoint |
|
HTTP Content Type Header |
|
Request body | the |
Example:
For the sake of simplifying things you can use Postman to upload the zip file of the exported bot just don't forget to add the http header of content type : application/zip
.
Take a look at he image below to understand how can you upload the zip file in Postman:
Important: The bot will not be deployed after import you will have to deploy it yourself by using the corresponding api endpoint, please referrer to Deploying a bot.
Last updated