Skip to content

Commit

Permalink
Merge pull request #780 from guspan-tanadi/docsAPIdeleteold
Browse files Browse the repository at this point in the history
docs: refer delete_old sample docs_check comments API-docs
  • Loading branch information
dartpain authored Nov 22, 2023
2 parents 5b12423 + e5cd813 commit fd69961
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions docs/pages/Developing/API-docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ This endpoint will make sure documentation is loaded on the server (just run it
**Request Body**: JSON object with the field:
* `docs` — The location of the documentation:
```js
// answer (POST http://127.0.0.1:5000/api/docs_check)
// docs_check (POST http://127.0.0.1:5000/api/docs_check)
fetch("http://127.0.0.1:5000/api/docs_check", {
"method": "POST",
"headers": {
Expand Down Expand Up @@ -205,9 +205,12 @@ This endpoint is used to delete old Vector Stores.

**Method**: `GET`

**Query Parameter**: `task_id`

**Sample JavaScript Fetch Request:**
```js
// Task status (GET http://127.0.0.1:5000/api/docs_check)
fetch("http://localhost:5001/api/task_status?task_id=b2d2a0f4-387c-44fd-a443-e4fe2e7454d1", {
// delete_old (GET http://127.0.0.1:5000/api/delete_old)
fetch("http://localhost:5001/api/delete_old?task_id=YOUR_TASK_ID", {
"method": "GET",
"headers": {
"Content-Type": "application/json; charset=utf-8"
Expand Down

2 comments on commit fd69961

@vercel
Copy link

@vercel vercel bot commented on fd69961 Nov 22, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

docs-gpt – ./frontend

docs-gpt-git-main-arc53.vercel.app
docs-gpt-brown.vercel.app
docs-gpt-arc53.vercel.app

@vercel
Copy link

@vercel vercel bot commented on fd69961 Nov 22, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

nextra-docsgpt – ./docs

nextra-docsgpt.vercel.app
nextra-docsgpt-git-main-arc53.vercel.app
nextra-docsgpt-arc53.vercel.app
docs.docsgpt.co.uk

Please sign in to comment.