change body and header placeholders, less misleading.

This commit is contained in:
Louis Lam 2021-10-23 22:14:05 +08:00
parent d578300104
commit c9549c0de2

View File

@ -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"
}`;
}
},