feat: initialize

This commit is contained in:
2026-05-19 19:25:56 +03:30
commit 54ffdd060e
78 changed files with 1583 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
meta {
name: Create category
type: http
seq: 6
}
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,16 @@
meta {
name: Get all playlists | Get playlist with all its music
type: http
seq: 3
}
get {
url: {{baseUrl}}/music-playlists
body: none
auth: inherit
}
settings {
encodeUrl: true
timeout: 0
}
+16
View File
@@ -0,0 +1,16 @@
meta {
name: Get music by playlist
type: http
seq: 3
}
get {
url: {{baseUrl}}/music/playlist/
body: none
auth: inherit
}
settings {
encodeUrl: true
timeout: 0
}
+20
View File
@@ -0,0 +1,20 @@
meta {
name: Remove Music from Playlist
type: http
seq: 10
}
delete {
url: {{baseUrl}}/music/:musicId/remove-from-playlist
body: none
auth: inherit
}
params:path {
musicId: 1
}
settings {
encodeUrl: true
timeout: 0
}
+25
View File
@@ -0,0 +1,25 @@
meta {
name: add music to playlist
type: http
seq: 9
}
post {
url: {{baseUrl}}/music/:musicId/add-to-playlist
body: multipartForm
auth: inherit
}
params:path {
musicId: 1
}
body:multipart-form {
playlist_id: 3
~order:
}
settings {
encodeUrl: true
timeout: 0
}
+22
View File
@@ -0,0 +1,22 @@
meta {
name: create playlist
type: http
seq: 8
}
post {
url: {{baseUrl}}/music-playlists?category_id=4&name=motivate
body: none
auth: inherit
}
params:query {
category_id: 4
name: motivate
~description: Music for deep sleep
}
settings {
encodeUrl: true
timeout: 0
}
+20
View File
@@ -0,0 +1,20 @@
meta {
name: delete category
type: http
seq: 13
}
delete {
url: {{baseUrl}}/music-categories/:id
body: none
auth: inherit
}
params:path {
id:
}
settings {
encodeUrl: true
timeout: 0
}
+19
View File
@@ -0,0 +1,19 @@
meta {
name: delete playlist
type: http
seq: 14
}
delete {
url: {{baseUrl}}/music-playlists/:id
body: none
auth: inherit
}
params:path {
id:
}
settings {
encodeUrl: true
}
+8
View File
@@ -0,0 +1,8 @@
meta {
name: track
seq: 15
}
auth {
mode: inherit
}
+16
View File
@@ -0,0 +1,16 @@
meta {
name: gat all or specific music
type: http
seq: 2
}
get {
url: {{baseUrl}}/music/1
body: none
auth: inherit
}
settings {
encodeUrl: true
timeout: 0
}
+16
View File
@@ -0,0 +1,16 @@
meta {
name: music-categories
type: http
seq: 2
}
get {
url: {{baseUrl}}/music-categories
body: none
auth: inherit
}
settings {
encodeUrl: true
timeout: 0
}
+30
View File
@@ -0,0 +1,30 @@
meta {
name: update category
type: http
seq: 12
}
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
}
+27
View File
@@ -0,0 +1,27 @@
meta {
name: update music
type: http
seq: 5
}
put {
url: {{baseUrl}}/music/:id
body: json
auth: inherit
}
params:path {
id: 1
}
body:json {
{
"title":"Ocean Wave",
"order":1
}
}
settings {
encodeUrl: true
timeout: 0
}
+16
View File
@@ -0,0 +1,16 @@
meta {
name: update order music
type: http
seq: 11
}
post {
url: {{baseUrl}}/music/update-order
body: none
auth: inherit
}
settings {
encodeUrl: true
timeout: 0
}
+26
View File
@@ -0,0 +1,26 @@
meta {
name: update playlist
type: http
seq: 15
}
put {
url: {{baseUrl}}/music-playlists/:id
body: json
auth: inherit
}
params:path {
id: 1
}
body:json {
{
"name":"خواب"
}
}
settings {
encodeUrl: true
timeout: 0
}
+26
View File
@@ -0,0 +1,26 @@
meta {
name: upload music
type: http
seq: 7
}
post {
url: {{baseUrl}}/music
body: multipartForm
auth: inherit
}
body:multipart-form {
title: Ocean Waves
artist: Nature Sounds
file: @file(C:\Users\vada\Downloads\یک لیوان چای.mp3)
playlist_id: 1
~type: public
~duration:
~image_id:
}
settings {
encodeUrl: true
timeout: 0
}