mirror of
https://github.com/discourse/discourse.git
synced 2025-02-22 08:00:53 +08:00

Documenting the `/u/:username:/emails.json` endpoint. Also removing some email fields from user api responses because they aren't actually included in the response unless you are querying yourself.
27 lines
440 B
JSON
27 lines
440 B
JSON
{
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"email": {
|
|
"type": "string"
|
|
},
|
|
"secondary_emails": {
|
|
"type": "array",
|
|
"items": []
|
|
},
|
|
"unconfirmed_emails": {
|
|
"type": "array",
|
|
"items": []
|
|
},
|
|
"associated_accounts": {
|
|
"type": "array",
|
|
"items": []
|
|
}
|
|
},
|
|
"required": [
|
|
"email",
|
|
"secondary_emails",
|
|
"unconfirmed_emails",
|
|
"associated_accounts"
|
|
]
|
|
}
|