From cb64916503fbfe1e31b42088155e1b3481a6dade Mon Sep 17 00:00:00 2001 From: Manas Mulay Date: Tue, 27 Aug 2024 19:19:17 +0530 Subject: [PATCH] Update readme with payload --- ReadMe.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ReadMe.md b/ReadMe.md index fdc38fff..0768b2f7 100644 --- a/ReadMe.md +++ b/ReadMe.md @@ -401,7 +401,7 @@ Create new backup: `curl -s localhost:7171/backup/create -X POST | jq .` - Optional query argument `schema` works the same as the `--schema` CLI argument (backup schema only). - Optional query argument `rbac` works the same as the `--rbac` CLI argument (backup RBAC). - Optional query argument `configs` works the same as the `--configs` CLI argument (backup configs). -- Optional query argument `callback` allow pass callback URL which will call with POST with `application/json` with payload `{"status":"error|success","error":"not empty when error happens"}`. +- Optional query argument `callback` allow pass callback URL which will call with POST with `application/json` with payload `{"status":"error|success","error":"not empty when error happens", "operation_id" : ""}`. - Additional example: `curl -s 'localhost:7171/backup/create?table=default.billing&name=billing_test' -X POST` Note: this operation is asynchronous, so the API will return once the operation has started. @@ -443,7 +443,7 @@ Upload backup to remote storage: `curl -s localhost:7171/backup/upload/"}`. Note: this operation is asynchronous, so the API will return once the operation has started. @@ -464,7 +464,7 @@ Download backup from remote storage: `curl -s localhost:7171/backup/download/"}`. Note: this operation is asynchronous, so the API will return once the operation has started. @@ -482,7 +482,7 @@ Create schema and restore data from backup: `curl -s localhost:7171/backup/resto - Optional query argument `configs` works the same as the `--configs` CLI argument (restore configs). - Optional query argument `restore_database_mapping` works the same as the `--restore-database-mapping` CLI argument. - Optional query argument `restore_table_mapping` works the same as the `--restore-table-mapping` CLI argument. -- Optional query argument `callback` allow pass callback URL which will call with POST with `application/json` with payload `{"status":"error|success","error":"not empty when error happens"}`. +- Optional query argument `callback` allow pass callback URL which will call with POST with `application/json` with payload `{"status":"error|success","error":"not empty when error happens", "operation_id" : ""}`. ### POST /backup/delete