Skip to content

Commit

Permalink
feat(upload image): change postman create product to send application…
Browse files Browse the repository at this point in the history
…/multipart-form-data
  • Loading branch information
zulfikarrosadi committed Sep 15, 2024
1 parent e87b5da commit 8befaf6
Showing 1 changed file with 25 additions and 6 deletions.
31 changes: 25 additions & 6 deletions Juadah.postman_collection.json
Original file line number Diff line number Diff line change
Expand Up @@ -120,13 +120,32 @@
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"name\": \"{{$randomProductName}}\",\n \"description\": \"{{$randomLoremParagraph}}\",\n \"price\": 10000\n}",
"options": {
"raw": {
"language": "json"
"mode": "formdata",
"formdata": [
{
"key": "name",
"value": "{{$randomProductName}}",
"type": "text"
},
{
"key": "description",
"value": "{{$randomLoremLines}}",
"type": "text"
},
{
"key": "price",
"value": "10000",
"type": "text"
},
{
"key": "images",
"type": "file",
"src": [
"postman-cloud:///1ef7334f-dd93-4960-a155-8de29fcef4ee",
"postman-cloud:///1ef7334f-d60f-4c20-b99b-52e926854037"
]
}
}
]
},
"url": {
"raw": "{{base_url}}/products",
Expand Down

0 comments on commit 8befaf6

Please # to comment.