mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 05:23:35 +00:00
markdown: Add a macro for invalid API key JSON response.
The JSON response for when an invalid API key is used to initiate an API call seems to be identical in every case, so this macro can be reused all the time.
This commit is contained in:
@@ -128,11 +128,4 @@ address is invalid:
|
||||
}
|
||||
```
|
||||
|
||||
A typical failed JSON response for when the API key is invalid:
|
||||
|
||||
```
|
||||
{
|
||||
'msg':'Invalid API key',
|
||||
'result':'error'
|
||||
}
|
||||
```
|
||||
{!invalid-api-key-json-response.md!}
|
||||
|
||||
@@ -147,11 +147,4 @@ A typical failed JSON response for when the target stream does not exist:
|
||||
}
|
||||
```
|
||||
|
||||
A typical failed JSON response for when the API key is invalid:
|
||||
|
||||
```
|
||||
{
|
||||
'msg':'Invalid API key',
|
||||
'result':'error'
|
||||
}
|
||||
```
|
||||
{!invalid-api-key-json-response.md!}
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
A typical failed JSON response for when the API key is invalid:
|
||||
|
||||
```
|
||||
{
|
||||
'msg':'Invalid API key',
|
||||
'result':'error'
|
||||
}
|
||||
```
|
||||
Reference in New Issue
Block a user