Init
This commit is contained in:
12
backend/artifacts/storage/file-link.http
Normal file
12
backend/artifacts/storage/file-link.http
Normal file
@@ -0,0 +1,12 @@
|
||||
### Delete file link by id
|
||||
|
||||
DELETE {{url}}/api/crm/file-links/123
|
||||
Content-Type: application/json
|
||||
Authorization: Bearer {{token}}
|
||||
|
||||
### Delete file links by ids
|
||||
|
||||
DELETE {{url}}/api/crm/file-links?ids=72,73
|
||||
Content-Type: application/json
|
||||
Authorization: Bearer {{token}}
|
||||
|
||||
24
backend/artifacts/storage/file.http
Normal file
24
backend/artifacts/storage/file.http
Normal file
@@ -0,0 +1,24 @@
|
||||
### Upload file
|
||||
|
||||
POST {{url}}/api/storage/upload
|
||||
Authorization: Bearer {{token}}
|
||||
Content-Type: multipart/form-data; boundary="abcd"
|
||||
|
||||
--abcd
|
||||
Content-Disposition: form-data; name="test"; filename="test.png"
|
||||
Content-Type: image/png
|
||||
|
||||
< ../_resources/test.png
|
||||
--abcd--
|
||||
|
||||
### Delete file
|
||||
|
||||
DELETE {{url}}/api/storage/file/{{fileId}}
|
||||
Content-Type: application/json
|
||||
Authorization: Bearer {{token}}
|
||||
|
||||
### Get file
|
||||
|
||||
GET {{url}}/api/storage/file/{{fileId}}
|
||||
Content-Type: application/json
|
||||
Authorization: Bearer {{token}}
|
||||
Reference in New Issue
Block a user