mirror of
https://github.com/discourse/discourse.git
synced 2024-12-02 20:25:33 +08:00
643f82d8d6
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"
|
|
]
|
|
}
|