/documents/Summary: List All Documents
Description: List All Documents
| Status Code | Description |
|---|---|
200 |
Successful Response |
curl -X 'GET' \ 'http://localhost:8000/api/v1/documents/' \ -H 'accept: application/json'
/documents/Summary: Add a New Document
Description: Add a New Document
Required: Yes
application/jsonDocumentCreate (Define in Models)| Status Code | Description |
|---|---|
200 |
Successful Response |
422 |
Validation Error |
curl -X 'POST' \
'http://localhost:8000/api/v1/documents/' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{}'
/documents/{document_id}Summary: Delete a Document
Description: Delete a Document
| Name | In | Required | Type | Description |
|---|---|---|---|---|
document_id |
path | Yes | integer |
| Status Code | Description |
|---|---|
200 |
Successful Response |
422 |
Validation Error |
curl -X 'DELETE' \
'http://localhost:8000/api/v1/documents/{document_id}' \
-H 'accept: application/json'