feat: add sub category api
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
meta {
|
||||
name: Create category
|
||||
type: http
|
||||
seq: 14
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{baseUrl}}/music-categories
|
||||
body: multipartForm
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
body:multipart-form {
|
||||
name: انگیزشی
|
||||
description: انگیزشی از موزیک های هایپ است
|
||||
~order:
|
||||
~image_id:
|
||||
~is_active:
|
||||
}
|
||||
|
||||
settings {
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
meta {
|
||||
name: delete category
|
||||
type: http
|
||||
seq: 16
|
||||
}
|
||||
|
||||
delete {
|
||||
url: {{baseUrl}}/music-categories/:id
|
||||
body: none
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
params:path {
|
||||
id:
|
||||
}
|
||||
|
||||
settings {
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
meta {
|
||||
name: category
|
||||
seq: 1
|
||||
}
|
||||
|
||||
auth {
|
||||
mode: inherit
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
meta {
|
||||
name: music-categories
|
||||
type: http
|
||||
seq: 3
|
||||
}
|
||||
|
||||
get {
|
||||
url: {{baseUrl}}/music-categories/1
|
||||
body: none
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
settings {
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
meta {
|
||||
name: update category
|
||||
type: http
|
||||
seq: 11
|
||||
}
|
||||
|
||||
put {
|
||||
url: {{baseUrl}}//music-categories/:id
|
||||
body: json
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
params:path {
|
||||
id: 1
|
||||
}
|
||||
|
||||
body:json {
|
||||
{ "name":"لوبیا",
|
||||
"description" : "updates"
|
||||
}
|
||||
}
|
||||
|
||||
body:multipart-form {
|
||||
description: Updated description
|
||||
}
|
||||
|
||||
settings {
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
}
|
||||
Reference in New Issue
Block a user