add: uploadAttachment api
This commit is contained in:
@@ -172,6 +172,45 @@ Content-Type: application/json
|
||||
"ID": ""
|
||||
}
|
||||
|
||||
###
|
||||
// upload attachment — requires multipart/form-data with file(s)
|
||||
// Gunakan REST Client atau Postman. Contoh format:
|
||||
// POST https://{{host}}/mockup/purchase/order/PurchaseOrderAset/uploadAttachment/
|
||||
// Content-Type: multipart/form-data; boundary=----boundary
|
||||
//
|
||||
// ------boundary
|
||||
// Content-Disposition: form-data; name="token"
|
||||
//
|
||||
// eyJ...
|
||||
// ------boundary
|
||||
// Content-Disposition: form-data; name="ponumber"
|
||||
//
|
||||
// PO24070001
|
||||
// ------boundary
|
||||
// Content-Disposition: form-data; name="poID"
|
||||
//
|
||||
// 1
|
||||
// ------boundary
|
||||
// Content-Disposition: form-data; name="contractID"
|
||||
//
|
||||
// 1
|
||||
// ------boundary
|
||||
// Content-Disposition: form-data; name="files"; filename="foto1.jpg"
|
||||
// Content-Type: image/jpeg
|
||||
//
|
||||
// < /path/to/foto1.jpg
|
||||
// ------boundary
|
||||
// Content-Disposition: form-data; name="files"; filename="foto2.jpg"
|
||||
// Content-Type: image/jpeg
|
||||
//
|
||||
// < /path/to/foto2.jpg
|
||||
// ------boundary--
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"token": {{token}}
|
||||
}
|
||||
|
||||
###
|
||||
// listing po asset
|
||||
POST https://{{host}}/mockup/purchase/order/PurchaseOrderAset/getDaftarPoAset/
|
||||
|
||||
Reference in New Issue
Block a user