188 markdown += readAuthorization(method?.request?.auth);
189 markdown += readResponse(method?.response);
190 markdown += `\n`;
191 markdown += `![divider][divider]\n`;192
193 return markdown;
194}
187 markdown += readQueryParams(method?.request?.url);
188 markdown += readAuthorization(method?.request?.auth);
189 markdown += readResponse(method?.response);
190 markdown += `\n`;191 markdown += `![divider][divider]\n`;
192
193 return markdown;
181 markdown += `### ${method?.request?.method} ${method.name}\n\n`;
182 markdown += `>\`\`\`\n`;
183 markdown += `>${method?.request?.url}\n`;
184 markdown += `>\`\`\`\n`;185 markdown += readRequest(method?.request);
186 markdown += readFormDataBody(method?.request?.body);
187 markdown += readQueryParams(method?.request?.url);
179 ? `#${method?.request?.description || ""}\n\n`
180 : ``;
181 markdown += `### ${method?.request?.method} ${method.name}\n\n`;
182 markdown += `>\`\`\`\n`;183 markdown += `>${method?.request?.url}\n`;
184 markdown += `>\`\`\`\n`;
185 markdown += readRequest(method?.request);
177 markdown +=
178 method?.request?.description !== undefined
179 ? `#${method?.request?.description || ""}\n\n`
180 : ``;181 markdown += `### ${method?.request?.method} ${method.name}\n\n`;
182 markdown += `>\`\`\`\n`;
183 markdown += `>${method?.request?.url}\n`;
Template literals are useful when you need:
Strings that have unescaped double quotes and single quotes.
Strings that need line breaks in them.
If neither of these three conditions is met, you can replace the template expression with a regular string literal.
const dialogue = `"Journey before destination", said Dalinar.`
const dialogue2 = `What is a 'Kwisatz Haderach'?`
const dialogue = '"Journey before destination", said Dalinar.'
const dialogue2 = "What is a 'Kwisatz Haderach'?"
const dialogue3 = `"${getLine()}", said ${getChararcter()}`