mirror of
https://github.com/tiennm99/DocsGPT.git
synced 2026-10-19 18:15:58 +00:00
style: formatting /api/task_status API-docs
This commit is contained in:
1 parent
d81838dfc4
commit
ce8ed5bfeb
1 file changed
+4
-1
@@ -116,6 +116,7 @@ This endpoint is used to upload a file that needs to be trained, response is JSO
|
|||||||
**Request:**
|
**Request:**
|
||||||
|
|
||||||
**Method**: `POST`
|
**Method**: `POST`
|
||||||
|
|
||||||
**Request Body**: A multipart/form-data form with file upload and additional fields, including `user` and `name`.
|
**Request Body**: A multipart/form-data form with file upload and additional fields, including `user` and `name`.
|
||||||
|
|
||||||
HTML example:
|
HTML example:
|
||||||
@@ -143,7 +144,9 @@ JSON response with a status and a task ID that can be used to check the task's p
|
|||||||
This endpoint is used to get the status of a task (`task_id`) from `/api/upload`
|
This endpoint is used to get the status of a task (`task_id`) from `/api/upload`
|
||||||
|
|
||||||
**Request:**
|
**Request:**
|
||||||
**Method**: `GE`T
|
|
||||||
|
**Method**: `GET`
|
||||||
|
|
||||||
**Query Parameter**: `task_id` (task ID to check)
|
**Query Parameter**: `task_id` (task ID to check)
|
||||||
|
|
||||||
**Sample JavaScript Fetch Request:**
|
**Sample JavaScript Fetch Request:**
|
||||||
|
|||||||
Reference in new issue
Block a user