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
+8
View File
@@ -0,0 +1,8 @@
meta {
name: sub-category
seq: 2
}
auth {
mode: inherit
}
+16
View File
@@ -0,0 +1,16 @@
meta {
name: get sub category
type: http
seq: 1
}
get {
url: {{baseUrl}}/music-subcategories
body: none
auth: inherit
}
settings {
encodeUrl: true
timeout: 0
}
+25
View File
@@ -0,0 +1,25 @@
meta {
name: store sub category
type: http
seq: 2
}
post {
url: {{baseUrl}}/music-subcategories
body: multipartForm
auth: inherit
}
body:multipart-form {
category_id: 1
name: انگیزشی 1
~description:
~image_id:
~order:
~is_active:
}
settings {
encodeUrl: true
timeout: 0
}
@@ -0,0 +1,30 @@
meta {
name: update sub-category
type: http
seq: 3
}
put {
url: {{baseUrl}}/music-subcategories/:id
body: json
auth: inherit
}
params:path {
id: 1
}
body:json {
{
"name":"انگیزشی 1"
}
}
body:multipart-form {
name: انگیزشی 2
}
settings {
encodeUrl: true
timeout: 0
}