feat: add sub category api

This commit is contained in:
2026-05-21 15:19:04 +03:30
parent b1dfd144fb
commit 7b237f1a13
25 changed files with 133 additions and 28 deletions
+24
View File
@@ -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
}
+20
View File
@@ -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
}
+8
View File
@@ -0,0 +1,8 @@
meta {
name: category
seq: 1
}
auth {
mode: inherit
}
+16
View File
@@ -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
}
+30
View File
@@ -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
}