feat: add sub category api
This commit is contained in:
@@ -5,13 +5,13 @@ meta {
|
|||||||
}
|
}
|
||||||
|
|
||||||
post {
|
post {
|
||||||
url: {{baseUrl}}/auth/login-with-approo-v2?token=8|v0Kv0qYWeLywG0Op67J0kotgroM1lf9C3cJ1pSGn9ac6e570&package_name=com.approagency.meditation
|
url: {{baseUrl}}/auth/login-with-approo-v2?token=9820|1Uj3mqtmMJTsZhrvjZzZWEYe4l5cJKFhhnJ7yyis2997596a&package_name=com.approagency.meditation
|
||||||
body: multipartForm
|
body: multipartForm
|
||||||
auth: inherit
|
auth: inherit
|
||||||
}
|
}
|
||||||
|
|
||||||
params:query {
|
params:query {
|
||||||
token: 8|v0Kv0qYWeLywG0Op67J0kotgroM1lf9C3cJ1pSGn9ac6e570
|
token: 9820|1Uj3mqtmMJTsZhrvjZzZWEYe4l5cJKFhhnJ7yyis2997596a
|
||||||
package_name: com.approagency.meditation
|
package_name: com.approagency.meditation
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -11,9 +11,9 @@ auth:bearer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
vars:pre-request {
|
vars:pre-request {
|
||||||
|
token: 1|jqjPftHgbnlnNuq2tpn2W9ljvNQq5Nec8gmUZTxa7cef13f0
|
||||||
baseUrl: http://localhost:8000/api
|
baseUrl: http://localhost:8000/api
|
||||||
token: 1|pvC8QclU7Okc8HeaITbXrCulai2EAjaqSql4aMRcd6e6c3bc
|
~baseUrl: https://meditation.approagency.ir/api
|
||||||
~baseUrl: https://payment.vada.ir/api
|
|
||||||
~baseUrl:
|
~baseUrl:
|
||||||
~baseUrl:
|
~baseUrl:
|
||||||
~approo_token:
|
~approo_token:
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
meta {
|
meta {
|
||||||
name: Create category
|
name: Create category
|
||||||
type: http
|
type: http
|
||||||
seq: 6
|
seq: 14
|
||||||
}
|
}
|
||||||
|
|
||||||
post {
|
post {
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
meta {
|
meta {
|
||||||
name: delete category
|
name: delete category
|
||||||
type: http
|
type: http
|
||||||
seq: 13
|
seq: 16
|
||||||
}
|
}
|
||||||
|
|
||||||
delete {
|
delete {
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
meta {
|
||||||
|
name: category
|
||||||
|
seq: 1
|
||||||
|
}
|
||||||
|
|
||||||
|
auth {
|
||||||
|
mode: inherit
|
||||||
|
}
|
||||||
@@ -1,11 +1,11 @@
|
|||||||
meta {
|
meta {
|
||||||
name: music-categories
|
name: music-categories
|
||||||
type: http
|
type: http
|
||||||
seq: 2
|
seq: 3
|
||||||
}
|
}
|
||||||
|
|
||||||
get {
|
get {
|
||||||
url: {{baseUrl}}/music-categories
|
url: {{baseUrl}}/music-categories/1
|
||||||
body: none
|
body: none
|
||||||
auth: inherit
|
auth: inherit
|
||||||
}
|
}
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
meta {
|
meta {
|
||||||
name: update category
|
name: update category
|
||||||
type: http
|
type: http
|
||||||
seq: 12
|
seq: 11
|
||||||
}
|
}
|
||||||
|
|
||||||
put {
|
put {
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
meta {
|
meta {
|
||||||
name: Get music by playlist
|
name: Get music by playlist
|
||||||
type: http
|
type: http
|
||||||
seq: 3
|
seq: 1
|
||||||
}
|
}
|
||||||
|
|
||||||
get {
|
get {
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
meta {
|
meta {
|
||||||
name: Remove Music from Playlist
|
name: Remove Music from Playlist
|
||||||
type: http
|
type: http
|
||||||
seq: 10
|
seq: 1
|
||||||
}
|
}
|
||||||
|
|
||||||
delete {
|
delete {
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
meta {
|
meta {
|
||||||
name: add music to playlist
|
name: add music to playlist
|
||||||
type: http
|
type: http
|
||||||
seq: 9
|
seq: 1
|
||||||
}
|
}
|
||||||
|
|
||||||
post {
|
post {
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
meta {
|
meta {
|
||||||
name: delete music
|
name: delete music
|
||||||
type: http
|
type: http
|
||||||
seq: 2
|
seq: 1
|
||||||
}
|
}
|
||||||
|
|
||||||
delete {
|
delete {
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
meta {
|
||||||
|
name: music
|
||||||
|
seq: 4
|
||||||
|
}
|
||||||
|
|
||||||
|
auth {
|
||||||
|
mode: inherit
|
||||||
|
}
|
||||||
@@ -1,11 +1,11 @@
|
|||||||
meta {
|
meta {
|
||||||
name: gat all or specific music
|
name: gat all or specific music
|
||||||
type: http
|
type: http
|
||||||
seq: 2
|
seq: 11
|
||||||
}
|
}
|
||||||
|
|
||||||
get {
|
get {
|
||||||
url: {{baseUrl}}/music/1
|
url: {{baseUrl}}/music/
|
||||||
body: none
|
body: none
|
||||||
auth: inherit
|
auth: inherit
|
||||||
}
|
}
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
meta {
|
meta {
|
||||||
name: update music
|
name: update music
|
||||||
type: http
|
type: http
|
||||||
seq: 5
|
seq: 2
|
||||||
}
|
}
|
||||||
|
|
||||||
put {
|
put {
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
meta {
|
meta {
|
||||||
name: update order music
|
name: update order music
|
||||||
type: http
|
type: http
|
||||||
seq: 11
|
seq: 1
|
||||||
}
|
}
|
||||||
|
|
||||||
post {
|
post {
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
meta {
|
meta {
|
||||||
name: upload music
|
name: upload music
|
||||||
type: http
|
type: http
|
||||||
seq: 7
|
seq: 1
|
||||||
}
|
}
|
||||||
|
|
||||||
post {
|
post {
|
||||||
@@ -13,8 +13,8 @@ post {
|
|||||||
body:multipart-form {
|
body:multipart-form {
|
||||||
title: Ocean Waves
|
title: Ocean Waves
|
||||||
artist: Nature Sounds
|
artist: Nature Sounds
|
||||||
file: @file(C:\Users\vada\Downloads\یک لیوان چای.mp3)
|
file: @file(C:\Users\nourk\Downloads\Telegram Desktop\Lektion 1.1.mp4)
|
||||||
playlist_id: 1
|
playlist_id: 2
|
||||||
~type: public
|
~type: public
|
||||||
~duration:
|
~duration:
|
||||||
~image_id:
|
~image_id:
|
||||||
+2
-2
@@ -1,11 +1,11 @@
|
|||||||
meta {
|
meta {
|
||||||
name: Get all playlists | Get playlist with all its music
|
name: Get all playlists | Get playlist with all its music
|
||||||
type: http
|
type: http
|
||||||
seq: 3
|
seq: 1
|
||||||
}
|
}
|
||||||
|
|
||||||
get {
|
get {
|
||||||
url: {{baseUrl}}/music-playlists
|
url: {{baseUrl}}/music-playlists/
|
||||||
body: none
|
body: none
|
||||||
auth: inherit
|
auth: inherit
|
||||||
}
|
}
|
||||||
@@ -1,18 +1,19 @@
|
|||||||
meta {
|
meta {
|
||||||
name: create playlist
|
name: create playlist
|
||||||
type: http
|
type: http
|
||||||
seq: 8
|
seq: 7
|
||||||
}
|
}
|
||||||
|
|
||||||
post {
|
post {
|
||||||
url: {{baseUrl}}/music-playlists?category_id=4&name=motivate
|
url: {{baseUrl}}/music-playlists?category_id=1&subcategory_id=1&name=انگیزشی هایپ 2
|
||||||
body: none
|
body: none
|
||||||
auth: inherit
|
auth: inherit
|
||||||
}
|
}
|
||||||
|
|
||||||
params:query {
|
params:query {
|
||||||
category_id: 4
|
category_id: 1
|
||||||
name: motivate
|
subcategory_id: 1
|
||||||
|
name: انگیزشی هایپ 2
|
||||||
~description: Music for deep sleep
|
~description: Music for deep sleep
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
meta {
|
meta {
|
||||||
name: delete playlist
|
name: delete playlist
|
||||||
type: http
|
type: http
|
||||||
seq: 14
|
seq: 10
|
||||||
}
|
}
|
||||||
|
|
||||||
delete {
|
delete {
|
||||||
@@ -16,4 +16,5 @@ params:path {
|
|||||||
|
|
||||||
settings {
|
settings {
|
||||||
encodeUrl: true
|
encodeUrl: true
|
||||||
|
timeout: 0
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
meta {
|
||||||
|
name: playlist
|
||||||
|
seq: 3
|
||||||
|
}
|
||||||
|
|
||||||
|
auth {
|
||||||
|
mode: inherit
|
||||||
|
}
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
meta {
|
meta {
|
||||||
name: update playlist
|
name: update playlist
|
||||||
type: http
|
type: http
|
||||||
seq: 15
|
seq: 12
|
||||||
}
|
}
|
||||||
|
|
||||||
put {
|
put {
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
meta {
|
||||||
|
name: sub-category
|
||||||
|
seq: 2
|
||||||
|
}
|
||||||
|
|
||||||
|
auth {
|
||||||
|
mode: inherit
|
||||||
|
}
|
||||||
@@ -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
|
||||||
|
}
|
||||||
@@ -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
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user