Skip to content

Commit

Permalink
Relay API spec: add fields "color_name" and "prefix_color_name" in gr…
Browse files Browse the repository at this point in the history
…oups and nicks
  • Loading branch information
flashcode committed Apr 29, 2024
1 parent a7a1114 commit 2ff1089
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions specs/2023-005-relay-http-rest-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -551,13 +551,15 @@ HTTP/1.1 200 OK
"id": 0,
"parent_group_id": -1,
"name": "root",
"color_name": "",
"color": "",
"visible": false,
"groups": [
{
"id": 1709932823649181,
"parent_group_id": 0,
"name": "000|o",
"color_name": "weechat.color.nicklist_group",
"color": "\u001b[32m",
"visible": true,
"groups": [],
Expand All @@ -566,8 +568,10 @@ HTTP/1.1 200 OK
"id": 1709932823649184,
"parent_group_id": 1709932823649181,
"prefix": "@",
"prefix_color_name": "lightgreen",
"prefix_color": "\u001b[92m",
"name": "alice",
"color_name": "bar_fg",
"color": "",
"visible": true
}
Expand All @@ -577,6 +581,7 @@ HTTP/1.1 200 OK
"id": 1709932823649189,
"parent_group_id": 0,
"name": "001|h",
"color_name": "weechat.color.nicklist_group",
"color": "\u001b[32m",
"visible": true,
"groups": [],
Expand All @@ -586,6 +591,7 @@ HTTP/1.1 200 OK
"id": 1709932823649203,
"parent_group_id": 0,
"name": "002|v",
"color_name": "weechat.color.nicklist_group",
"color": "\u001b[32m",
"visible": true,
"groups": [],
Expand All @@ -595,6 +601,7 @@ HTTP/1.1 200 OK
"id": 1709932823649210,
"parent_group_id": 0,
"name": "999|...",
"color_name": "weechat.color.nicklist_group",
"color": "\u001b[32m",
"visible": true,
"groups": [],
Expand Down Expand Up @@ -742,13 +749,15 @@ HTTP/1.1 200 OK
"id": 0,
"parent_group_id": -1,
"name": "root",
"color_name": "",
"color": "",
"visible": false,
"groups": [
{
"id": 1709932823649181,
"parent_group_id": 0,
"name": "000|o",
"color_name": "weechat.color.nicklist_group",
"color": "\u001b[32m",
"visible": true,
"groups": [],
Expand All @@ -757,8 +766,10 @@ HTTP/1.1 200 OK
"id": 1709932823649184,
"parent_group_id": 1709932823649181,
"prefix": "@",
"prefix_color_name": "lightgreen",
"prefix_color": "\u001b[92m",
"name": "alice",
"color_name": "bar_fg",
"color": "",
"visible": true
}
Expand All @@ -768,6 +779,7 @@ HTTP/1.1 200 OK
"id": 1709932823649189,
"parent_group_id": 0,
"name": "001|h",
"color_name": "weechat.color.nicklist_group",
"color": "\u001b[32m",
"visible": true,
"groups": [],
Expand All @@ -777,6 +789,7 @@ HTTP/1.1 200 OK
"id": 1709932823649203,
"parent_group_id": 0,
"name": "002|v",
"color_name": "weechat.color.nicklist_group",
"color": "\u001b[32m",
"visible": true,
"groups": [],
Expand All @@ -786,6 +799,7 @@ HTTP/1.1 200 OK
"id": 1709932823649210,
"parent_group_id": 0,
"name": "999|...",
"color_name": "weechat.color.nicklist_group",
"color": "\u001b[32m",
"visible": true,
"groups": [],
Expand Down Expand Up @@ -1257,8 +1271,10 @@ Example: nick `bob` added as operator in channel `#weechat`:
"id": 1709932823649902,
"parent_group_id": 1709932823649181,
"prefix": "@",
"prefix_color_name": "lightgreen",
"prefix_color": "\u001b[92m",
"name": "bob",
"color_name": "bar_fg",
"color": "",
"visible": true
}
Expand Down

0 comments on commit 2ff1089

Please sign in to comment.