change body and header placeholders, less misleading.

pull/788/head
Louis Lam 3 years ago
parent d578300104
commit c9549c0de2

@ -340,11 +340,17 @@ export default {
},
bodyPlaceholder() {
return "{\n\t\"id\": 124357,\n\t\"username\": \"admin\",\n\t\"password\": \"myAdminPassword\"\n}";
return `Example:
{
"key": "value"
}`;
},
headersPlaceholder() {
return "{\n\t\"Authorization\": \"Bearer abc123\",\n\t\"Content-Type\": \"application/json\"\n}";
return `Example:
{
"HeaderName": "HeaderValue"
}`;
}
},

Loading…
Cancel
Save