-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(com-api): seprate http file for add product
- Loading branch information
Showing
2 changed files
with
90 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
@apiUrl = http://127.0.0.1:8000/api/v0 | ||
@adminToken = ADMIN_SECRET_TOKEN | ||
|
||
### New product 1 | ||
PUT {{apiUrl}}/product/ | ||
Authorization: Bearer {{adminToken}} | ||
Content-Type: application/json | ||
|
||
{ | ||
"id": "1", | ||
"title": {"fa": "تایل کد ۰۰۱"}, | ||
"image": "/image/sample-1.jpg" | ||
} | ||
|
||
### New product 2 | ||
PUT {{apiUrl}}/product/ | ||
Authorization: Bearer {{adminToken}} | ||
Content-Type: application/json | ||
|
||
{ | ||
"id": "2", | ||
"title": {"fa": "تایل کد ۰۰۲"}, | ||
"image": "/image/sample-2.jpg" | ||
} | ||
|
||
### New product 3 | ||
PUT {{apiUrl}}/product/ | ||
Authorization: Bearer {{adminToken}} | ||
Content-Type: application/json | ||
|
||
{ | ||
"id": "3", | ||
"title": {"fa": "تایل کد ۰۰۳"}, | ||
"image": "/image/sample-3.jpg" | ||
} | ||
|
||
### New product 4 | ||
PUT {{apiUrl}}/product/ | ||
Authorization: Bearer {{adminToken}} | ||
Content-Type: application/json | ||
|
||
{ | ||
"id": "4", | ||
"title": {"fa": "تایل کد ۰۰۴"}, | ||
"image": "/image/sample-4.jpg" | ||
} | ||
|
||
### New product 5 | ||
PUT {{apiUrl}}/product/ | ||
Authorization: Bearer {{adminToken}} | ||
Content-Type: application/json | ||
|
||
{ | ||
"id": "5", | ||
"title": {"fa": "تایل کد ۰۰۵"}, | ||
"image": "/image/sample-1.jpg" | ||
} | ||
|
||
### New product 6 | ||
PUT {{apiUrl}}/product/ | ||
Authorization: Bearer {{adminToken}} | ||
Content-Type: application/json | ||
|
||
{ | ||
"id": "6", | ||
"title": {"fa": "تایل کد ۰۰۶"}, | ||
"image": "/image/sample-2.jpg" | ||
} | ||
|
||
### New product 7 | ||
PUT {{apiUrl}}/product/ | ||
Authorization: Bearer {{adminToken}} | ||
Content-Type: application/json | ||
|
||
{ | ||
"id": "7", | ||
"title": {"fa": "تایل کد ۰۰۷"}, | ||
"image": "/image/sample-3.jpg" | ||
} | ||
|
||
### New product 8 | ||
PUT {{apiUrl}}/product/ | ||
Authorization: Bearer {{adminToken}} | ||
Content-Type: application/json | ||
|
||
{ | ||
"id": "8", | ||
"title": {"fa": "تایل کد ۰۰۸"}, | ||
"image": "/image/sample-3.jpg" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters