init
This commit is contained in:
23
workspaces/backend/api_tests/Document.http
Normal file
23
workspaces/backend/api_tests/Document.http
Normal file
@@ -0,0 +1,23 @@
|
||||
### 1. Upload Test (MIT AUTH)
|
||||
POST http://localhost:8080/api/documents/upload
|
||||
Authorization: Basic admin admin123
|
||||
Content-Type: multipart/form-data; boundary=boundary
|
||||
|
||||
--boundary
|
||||
Content-Disposition: form-data; name="file"; filename="scan_79.pdf"
|
||||
Content-Type: application/pdf
|
||||
|
||||
< ./demo.pdf
|
||||
--boundary--
|
||||
|
||||
### 2. Excel Import Test (MIT AUTH)
|
||||
POST http://localhost:8080/api/documents/import-excel?overwrite=true
|
||||
Authorization: Basic admin admin123
|
||||
Content-Type: multipart/form-data; boundary=boundary2
|
||||
|
||||
--boundary2
|
||||
Content-Disposition: form-data; name="file"; filename="metadata.xlsx"
|
||||
Content-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
|
||||
|
||||
< ./metadata.xlsx
|
||||
--boundary2--
|
||||
Reference in New Issue
Block a user