Template-API's : create tamplate and also add the get all template and get single templates
This commit is contained in:
@@ -8,7 +8,98 @@ export const templateSwaggerDocs = {
|
||||
required: true,
|
||||
content: {
|
||||
"application/json": {
|
||||
example: JSON.stringify({}), // put your request body
|
||||
example: JSON.stringify({
|
||||
language: "en",
|
||||
deliveryCharge: "60",
|
||||
banner: {
|
||||
isVisible: true,
|
||||
bannerTitle: "Delicious Homemade Food",
|
||||
bannerDesc:
|
||||
"Fresh, healthy and tasty meals delivered to your door.",
|
||||
bannerImage: "https://example.com/banner.jpg",
|
||||
},
|
||||
address: {
|
||||
isVisible: true,
|
||||
phoneNumber: "+8801712345678",
|
||||
shopLocation: "Dhaka, Bangladesh",
|
||||
shopEmail: "foodshop@example.com",
|
||||
},
|
||||
ingredient: {
|
||||
isVisible: true,
|
||||
options: [
|
||||
{
|
||||
ingrImg: "https://example.com/tomato.jpg",
|
||||
ingrTitle: "Tomato",
|
||||
ingrDes: "Fresh organic tomatoes",
|
||||
},
|
||||
{
|
||||
ingrImg: "https://example.com/chicken.jpg",
|
||||
ingrTitle: "Chicken",
|
||||
ingrDes: "Premium quality chicken",
|
||||
},
|
||||
],
|
||||
},
|
||||
instruction: {
|
||||
isVisible: true,
|
||||
instBanner: "https://example.com/instruction-banner.jpg",
|
||||
options: [
|
||||
{
|
||||
hint: "Step 1",
|
||||
detail: "Wash all ingredients properly",
|
||||
},
|
||||
{
|
||||
hint: "Step 2",
|
||||
detail: "Cook on medium heat for 20 minutes",
|
||||
},
|
||||
],
|
||||
},
|
||||
faq: {
|
||||
isVisible: true,
|
||||
options: [
|
||||
{
|
||||
index: 1,
|
||||
text: "Is the food fresh?",
|
||||
},
|
||||
{
|
||||
index: 2,
|
||||
text: "Do you offer home delivery?",
|
||||
},
|
||||
],
|
||||
},
|
||||
tips: {
|
||||
isVisible: true,
|
||||
tipsBanner: "https://example.com/tips-banner.jpg",
|
||||
options: [
|
||||
{
|
||||
index: 1,
|
||||
text: "Use fresh ingredients for best taste",
|
||||
},
|
||||
{
|
||||
index: 2,
|
||||
text: "Serve hot for better flavor",
|
||||
},
|
||||
],
|
||||
},
|
||||
priceCombo: {
|
||||
isVisible: true,
|
||||
options: [
|
||||
{
|
||||
quantity: "1",
|
||||
price: "120",
|
||||
},
|
||||
{
|
||||
quantity: "2",
|
||||
price: "220",
|
||||
},
|
||||
],
|
||||
},
|
||||
product: {
|
||||
isVisible: true,
|
||||
price: "120",
|
||||
discount: 10,
|
||||
productName: "Chicken Burger",
|
||||
},
|
||||
}), // put your request body
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user