mirror of
https://github.com/langflow-ai/langflow.git
synced 2026-07-26 16:33:01 +08:00
docs: cut version 1.9.0 (#12681)
* version-1.9.0-docs * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
@ -0,0 +1,15 @@
|
||||
curl -X POST \
|
||||
"$LANGFLOW_URL/api/v1/projects/" \
|
||||
-H "accept: application/json" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "x-api-key: $LANGFLOW_API_KEY" \
|
||||
-d '{
|
||||
"name": "new_project_name",
|
||||
"description": "string",
|
||||
"components_list": [
|
||||
"3fa85f64-5717-4562-b3fc-2c963f66afa6"
|
||||
],
|
||||
"flows_list": [
|
||||
"3fa85f64-5717-4562-b3fc-2c963f66afa6"
|
||||
]
|
||||
}'
|
||||
@ -0,0 +1,10 @@
|
||||
curl -X POST \
|
||||
"$LANGFLOW_URL/api/v1/projects/" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "x-api-key: $LANGFLOW_API_KEY" \
|
||||
-d '{
|
||||
"name": "new_project_name",
|
||||
"description": "string",
|
||||
"components_list": [],
|
||||
"flows_list": []
|
||||
}'
|
||||
@ -0,0 +1,4 @@
|
||||
curl -X DELETE \
|
||||
"$LANGFLOW_URL/api/v1/projects/$PROJECT_ID" \
|
||||
-H "accept: */*" \
|
||||
-H "x-api-key: $LANGFLOW_API_KEY"
|
||||
@ -0,0 +1,5 @@
|
||||
curl -X GET \
|
||||
"$LANGFLOW_URL/api/v1/projects/download/$PROJECT_ID" \
|
||||
-H "accept: application/json" \
|
||||
-H "x-api-key: $LANGFLOW_API_KEY" \
|
||||
--output langflow-project.zip
|
||||
@ -0,0 +1,10 @@
|
||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
DEFAULT_PROJECT_IMPORT_FILE="$SCRIPT_DIR/../../fixtures/project-import.json"
|
||||
PROJECT_IMPORT_FILE="${PROJECT_IMPORT_JSON:-${PROJECT_IMPORT_FILE:-$DEFAULT_PROJECT_IMPORT_FILE}}"
|
||||
|
||||
curl -X POST \
|
||||
"$LANGFLOW_URL/api/v1/projects/upload/" \
|
||||
-H "accept: application/json" \
|
||||
-H "Content-Type: multipart/form-data" \
|
||||
-H "x-api-key: $LANGFLOW_API_KEY" \
|
||||
-F "file=@${PROJECT_IMPORT_FILE};type=application/json"
|
||||
@ -0,0 +1,4 @@
|
||||
curl -X GET \
|
||||
"$LANGFLOW_URL/api/v1/projects/$PROJECT_ID" \
|
||||
-H "accept: application/json" \
|
||||
-H "x-api-key: $LANGFLOW_API_KEY"
|
||||
@ -0,0 +1,4 @@
|
||||
curl -X GET \
|
||||
"$LANGFLOW_URL/api/v1/projects/" \
|
||||
-H "accept: application/json" \
|
||||
-H "x-api-key: $LANGFLOW_API_KEY"
|
||||
@ -0,0 +1,6 @@
|
||||
{
|
||||
"name": "new_project_name",
|
||||
"description": "string",
|
||||
"id": "b408ddb9-6266-4431-9be8-e04a62758331",
|
||||
"parent_id": null
|
||||
}
|
||||
@ -0,0 +1 @@
|
||||
204 No Content
|
||||
@ -0,0 +1,8 @@
|
||||
[
|
||||
{
|
||||
"name": "Starter Project",
|
||||
"description": "Manage your own projects. Download and upload projects.",
|
||||
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
|
||||
"parent_id": null
|
||||
}
|
||||
]
|
||||
@ -0,0 +1,8 @@
|
||||
[
|
||||
{
|
||||
"name": "Starter Project",
|
||||
"description": "Manage your own projects. Download and upload projects.",
|
||||
"id": "1415de42-8f01-4f36-bf34-539f23e47466",
|
||||
"parent_id": null
|
||||
}
|
||||
]
|
||||
@ -0,0 +1,6 @@
|
||||
{
|
||||
"name": "string",
|
||||
"description": "string",
|
||||
"id": "b408ddb9-6266-4431-9be8-e04a62758331",
|
||||
"parent_id": null
|
||||
}
|
||||
@ -0,0 +1,15 @@
|
||||
curl -X PATCH \
|
||||
"$LANGFLOW_URL/api/v1/projects/b408ddb9-6266-4431-9be8-e04a62758331" \
|
||||
-H "accept: application/json" \
|
||||
-H "x-api-key: $LANGFLOW_API_KEY" \
|
||||
-d '{
|
||||
"name": "string",
|
||||
"description": "string",
|
||||
"parent_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
|
||||
"components": [
|
||||
"3fa85f64-5717-4562-b3fc-2c963f66afa6"
|
||||
],
|
||||
"flows": [
|
||||
"3fa85f64-5717-4562-b3fc-2c963f66afa6"
|
||||
]
|
||||
}'
|
||||
Reference in New Issue
Block a user