diff --git a/media/category/grouped category.bru b/media/category/grouped category.bru new file mode 100644 index 0000000..eeef6ae --- /dev/null +++ b/media/category/grouped category.bru @@ -0,0 +1,26 @@ +meta { + name: grouped category + type: http + seq: 5 +} + +get { + url: {{baseUrl}}/categories/:id/grouped + body: none + auth: inherit +} + +params:path { + id: 1 +} + +settings { + encodeUrl: true + timeout: 0 +} + +docs { + A category with each of its sub-categories, and each sub-category's medias: + { category: { id, title, description, icon_url }, + sub_categories: [ { sub_category: { id, title, description }, medias: [...] } ] } +} diff --git a/track/category/grouped category.bru b/track/category/grouped category.bru new file mode 100644 index 0000000..c12fb75 --- /dev/null +++ b/track/category/grouped category.bru @@ -0,0 +1,26 @@ +meta { + name: grouped category + type: http + seq: 5 +} + +get { + url: {{baseUrl}}/music-categories/:id/grouped + body: none + auth: inherit +} + +params:path { + id: 1 +} + +settings { + encodeUrl: true + timeout: 0 +} + +docs { + A music category with each of its sub-categories, and each sub-category's playlists: + { category: { id, title, description, image_url }, + sub_categories: [ { sub_category: { id, title, description, image_url }, playlists: [...] } ] } +}