feat: initial
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
info:
|
||||
name: Create Product
|
||||
type: http
|
||||
seq: 1
|
||||
|
||||
http:
|
||||
method: POST
|
||||
url: "{{baseUrl}}/package-names/:name/products"
|
||||
params:
|
||||
- name: name
|
||||
value: com.approagency.ai
|
||||
type: path
|
||||
body:
|
||||
type: multipart-form
|
||||
data:
|
||||
- name: title
|
||||
type: text
|
||||
value: اشتراک سالانه
|
||||
- name: price
|
||||
type: text
|
||||
value: "200000"
|
||||
description: toman
|
||||
- name: type
|
||||
type: text
|
||||
value: "2"
|
||||
description: |-
|
||||
permanent' => 1,
|
||||
yearly' => 2,
|
||||
6monthl' => 3,
|
||||
'monthly' => 4
|
||||
- name: descriptions[0]
|
||||
type: text
|
||||
value: ""
|
||||
disabled: true
|
||||
auth: inherit
|
||||
|
||||
settings:
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
followRedirects: true
|
||||
maxRedirects: 5
|
||||
@@ -0,0 +1,22 @@
|
||||
info:
|
||||
name: Delete Product
|
||||
type: http
|
||||
seq: 3
|
||||
|
||||
http:
|
||||
method: DELETE
|
||||
url: "{{baseUrl}}/package-names/:name/products/:product_id"
|
||||
params:
|
||||
- name: name
|
||||
value: com.vada.karvarz
|
||||
type: path
|
||||
- name: product_id
|
||||
value: ""
|
||||
type: path
|
||||
auth: inherit
|
||||
|
||||
settings:
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
followRedirects: true
|
||||
maxRedirects: 5
|
||||
@@ -0,0 +1,19 @@
|
||||
info:
|
||||
name: Get Products
|
||||
type: http
|
||||
seq: 4
|
||||
|
||||
http:
|
||||
method: GET
|
||||
url: "{{baseUrl}}/package-names/:name/products"
|
||||
params:
|
||||
- name: name
|
||||
value: com.approagency.meditation
|
||||
type: path
|
||||
auth: inherit
|
||||
|
||||
settings:
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
followRedirects: true
|
||||
maxRedirects: 5
|
||||
@@ -0,0 +1,29 @@
|
||||
info:
|
||||
name: Subscribe To Products
|
||||
type: http
|
||||
seq: 5
|
||||
|
||||
http:
|
||||
method: PUT
|
||||
url: "{{baseUrl}}/package-names/:name/products/:product_id/subscribe"
|
||||
params:
|
||||
- name: name
|
||||
value: hamrah.mechanic
|
||||
type: path
|
||||
- name: product_id
|
||||
value: "1"
|
||||
type: path
|
||||
body:
|
||||
type: json
|
||||
data: |-
|
||||
{
|
||||
"purchase_token": "aolXNLJkZ4HtgUXA",
|
||||
"gateway": "myket"
|
||||
}
|
||||
auth: inherit
|
||||
|
||||
settings:
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
followRedirects: true
|
||||
maxRedirects: 5
|
||||
@@ -0,0 +1,30 @@
|
||||
info:
|
||||
name: Update Product
|
||||
type: http
|
||||
seq: 2
|
||||
|
||||
http:
|
||||
method: PATCH
|
||||
url: "{{baseUrl}}/package-names/:name/products/:product_id"
|
||||
params:
|
||||
- name: name
|
||||
value: com.approagency.meditation
|
||||
type: path
|
||||
- name: product_id
|
||||
value: "1"
|
||||
type: path
|
||||
body:
|
||||
type: json
|
||||
data: |-
|
||||
{
|
||||
"title": "اشتراک ماهانه",
|
||||
"price": 1000,
|
||||
"type": 4
|
||||
}
|
||||
auth: inherit
|
||||
|
||||
settings:
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
followRedirects: true
|
||||
maxRedirects: 5
|
||||
@@ -0,0 +1,7 @@
|
||||
info:
|
||||
name: Product
|
||||
type: folder
|
||||
seq: 2
|
||||
|
||||
request:
|
||||
auth: inherit
|
||||
Reference in New Issue
Block a user