From 2c2eb214939e82673aaa5a818adbfebc82c1135a Mon Sep 17 00:00:00 2001 From: wtfrank Date: Sun, 23 Jun 2024 17:18:04 +0100 Subject: [PATCH] map-stats endpoint info format of sign/decorations info that is returned via the endpoint --- docs/Endpoints.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/Endpoints.md b/docs/Endpoints.md index 05d5ebd..485ffa7 100644 --- a/docs/Endpoints.md +++ b/docs/Endpoints.md @@ -334,9 +334,9 @@ are the ones listed below. - [POST] `https://screeps.com/api/game/map-stats` - post data: `{ rooms: [ ], statName: "..."}` - - statName can be "owner0", "claim0", or a stat (see the enumeration above) followed by an interval - - if it is owner0 or claim0, there's no separate stat block in the response - - response: `{ ok, stats: { : { status, novice, own: { user, level }, : [ { user, value } ] } }, users: { : { _id, username, badge: { type, color1, color2, color3, param, flip } } } }` + - statName can be "owner0", "claim0", "sign0", or a stat (see the enumeration above) followed by an interval + - if it is owner0. claim0 or sign0, there's no separate stat block in the response + - response: `{ ok, stats: { : { status, novice, own: { user, level }, sign: { datetime, text, time, user }, decorations: [{_id, activatedAt, active: {}, createdAt, decoration, user}], : [ { user, value } ] } }, users: { : { _id, username, badge: { type, color1, color2, color3, param, flip } } } }` - `status` and `novice` are as per the `room-status` call - `level` can be 0 to indicate a reserved room @@ -354,4 +354,4 @@ are the ones listed below. - only works on the Public Test Realm - [GET] `https://screeps.com/api/scoreboard/list?limit=20&offset=0` - - only works on Seasonal servers \ No newline at end of file + - only works on Seasonal servers