mirror of
https://github.com/coder/coder.git
synced 2025-07-12 00:14:10 +00:00
User name, avatar URL, and last seen at, are not required fields so they can be empty. Instead of returning the 0 values from Go, we want to make it more agnostic, and omit them when they are empty. This make the docs and usage way clearer for consumers.
37 lines
905 B
Plaintext
37 lines
905 B
Plaintext
[
|
|
{
|
|
"id": "==========[first user ID]===========",
|
|
"username": "testuser",
|
|
"name": "Test User",
|
|
"email": "testuser@coder.com",
|
|
"created_at": "====[timestamp]=====",
|
|
"updated_at": "====[timestamp]=====",
|
|
"last_seen_at": "====[timestamp]=====",
|
|
"status": "active",
|
|
"login_type": "password",
|
|
"organization_ids": [
|
|
"===========[first org ID]==========="
|
|
],
|
|
"roles": [
|
|
{
|
|
"name": "owner",
|
|
"display_name": "Owner"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "==========[second user ID]==========",
|
|
"username": "testuser2",
|
|
"email": "testuser2@coder.com",
|
|
"created_at": "====[timestamp]=====",
|
|
"updated_at": "====[timestamp]=====",
|
|
"last_seen_at": "====[timestamp]=====",
|
|
"status": "dormant",
|
|
"login_type": "password",
|
|
"organization_ids": [
|
|
"===========[first org ID]==========="
|
|
],
|
|
"roles": []
|
|
}
|
|
]
|