| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| |
|
| | |
| | echo -e "\n-- Create a dataset" |
| | curl --request POST \ |
| | --url http://localhost:9380/api/v1/datasets \ |
| | --header 'Content-Type: application/json' \ |
| | --header 'Authorization: Bearer ragflow-IzZmY1MGVhYTBhMjExZWZiYTdjMDI0Mm' \ |
| | --data '{ |
| | "name": "test" |
| | }' |
| |
|
| | |
| | echo -e "\n-- Update the dataset" |
| | curl --request PUT \ |
| | --url http://localhost:9380/api/v1/datasets/2e898768a0bc11efb46a0242ac120006 \ |
| | --header 'Content-Type: application/json' \ |
| | --header 'Authorization: Bearer ragflow-IzZmY1MGVhYTBhMjExZWZiYTdjMDI0Mm' \ |
| | --data ' |
| | { |
| | "name": "updated_dataset" |
| | }' |
| |
|
| | |
| | echo -e "\n-- List datasets" |
| | curl --request GET \ |
| | --url http://127.0.0.1:9380/api/v1/datasets \ |
| | --header 'Authorization: Bearer ragflow-IzZmY1MGVhYTBhMjExZWZiYTdjMDI0Mm' |
| |
|
| | |
| | echo -e "\n-- Delete datasets" |
| | curl --request DELETE \ |
| | --url http://localhost:9380/api/v1/datasets \ |
| | --header 'Content-Type: application/json' \ |
| | --header 'Authorization: Bearer ragflow-IzZmY1MGVhYTBhMjExZWZiYTdjMDI0Mm' \ |
| | --data '{ |
| | "ids": ["301298b8a0bc11efa0440242ac120006"] |
| | }' |
| |
|