diff --git a/faq/delete faq category.bru b/faq/delete faq category.bru new file mode 100644 index 0000000..535a84c --- /dev/null +++ b/faq/delete faq category.bru @@ -0,0 +1,19 @@ +meta { + name: delete faq category + type: http + seq: 5 +} + +delete { + url: {{baseUrl}}/faq-categories/:id + body: none + auth: inherit +} + +params:path { + id: 1 +} + +settings { + encodeUrl: true +} diff --git a/faq/delete faq.bru b/faq/delete faq.bru new file mode 100644 index 0000000..52a75f2 --- /dev/null +++ b/faq/delete faq.bru @@ -0,0 +1,19 @@ +meta { + name: delete faq + type: http + seq: 8 +} + +delete { + url: {{baseUrl}}/faqs/:id + body: none + auth: inherit +} + +params:path { + id: 1 +} + +settings { + encodeUrl: true +} diff --git a/faq/folder.bru b/faq/folder.bru new file mode 100644 index 0000000..357fbf5 --- /dev/null +++ b/faq/folder.bru @@ -0,0 +1,8 @@ +meta { + name: faq + seq: 25 +} + +auth { + mode: inherit +} diff --git a/faq/get faq categories.bru b/faq/get faq categories.bru new file mode 100644 index 0000000..4d9e41c --- /dev/null +++ b/faq/get faq categories.bru @@ -0,0 +1,15 @@ +meta { + name: get faq categories + type: http + seq: 2 +} + +get { + url: {{baseUrl}}/faq-categories + body: none + auth: inherit +} + +settings { + encodeUrl: true +} diff --git a/faq/get faqs.bru b/faq/get faqs.bru new file mode 100644 index 0000000..dcb8f25 --- /dev/null +++ b/faq/get faqs.bru @@ -0,0 +1,20 @@ +meta { + name: get faqs + type: http + seq: 1 +} + +get { + url: {{baseUrl}}/faqs + body: none + auth: inherit +} + +settings { + encodeUrl: true +} + +docs { + App endpoint: active FAQ categories, each with their active questions + (grouped). Pass ?include_inactive=1 for admin to see everything. +} diff --git a/faq/store faq category.bru b/faq/store faq category.bru new file mode 100644 index 0000000..969a644 --- /dev/null +++ b/faq/store faq category.bru @@ -0,0 +1,24 @@ +meta { + name: store faq category + type: http + seq: 3 +} + +post { + url: {{baseUrl}}/faq-categories + body: json + auth: inherit +} + +body:json { + { + "name": "حساب کاربری", + "order": 1, + "is_active": true + } +} + +settings { + encodeUrl: true + timeout: 0 +} diff --git a/faq/store faq.bru b/faq/store faq.bru new file mode 100644 index 0000000..c3aa129 --- /dev/null +++ b/faq/store faq.bru @@ -0,0 +1,26 @@ +meta { + name: store faq + type: http + seq: 6 +} + +post { + url: {{baseUrl}}/faqs + body: json + auth: inherit +} + +body:json { + { + "faq_category_id": 1, + "question": "چطور رمز عبورم را تغییر دهم؟", + "answer": "از بخش پروفایل، گزینه تغییر رمز عبور را انتخاب کنید.", + "order": 1, + "is_active": true + } +} + +settings { + encodeUrl: true + timeout: 0 +} diff --git a/faq/update faq category.bru b/faq/update faq category.bru new file mode 100644 index 0000000..a2f5a8d --- /dev/null +++ b/faq/update faq category.bru @@ -0,0 +1,28 @@ +meta { + name: update faq category + type: http + seq: 4 +} + +put { + url: {{baseUrl}}/faq-categories/:id + body: json + auth: inherit +} + +params:path { + id: 1 +} + +body:json { + { + "name": "حساب کاربری", + "order": 1, + "is_active": true + } +} + +settings { + encodeUrl: true + timeout: 0 +} diff --git a/faq/update faq.bru b/faq/update faq.bru new file mode 100644 index 0000000..ca598d0 --- /dev/null +++ b/faq/update faq.bru @@ -0,0 +1,28 @@ +meta { + name: update faq + type: http + seq: 7 +} + +put { + url: {{baseUrl}}/faqs/:id + body: json + auth: inherit +} + +params:path { + id: 1 +} + +body:json { + { + "question": "چطور رمز عبورم را تغییر دهم؟", + "answer": "از بخش پروفایل ...", + "is_active": true + } +} + +settings { + encodeUrl: true + timeout: 0 +} diff --git a/save/save item.bru b/save/save item.bru index 3a91964..2c3a92d 100644 --- a/save/save item.bru +++ b/save/save item.bru @@ -12,7 +12,7 @@ post { body:multipart-form { type: playlist @contentType(music,media,breathing-template,playlist) - id: 1 + id: 4 } settings {