mirror of
https://github.com/djdevin/recflare.git
synced 2026-09-08 22:51:30 -07:00
add more econ stuff
This commit is contained in:
+10
-3
@@ -6,9 +6,16 @@ endpoints the game client calls on the `econ` service (distinct from the main
|
||||
|
||||
## Endpoints
|
||||
|
||||
- `GET /api/avatar/v1/defaultunlocked` — default-unlocked avatar items. Returns
|
||||
an empty array until there's a DB binding.
|
||||
- `GET /api/avatar/v1/defaultunlocked` — default-unlocked avatar items, served
|
||||
from the bundled `static/default-avatar-items.json` catalog.
|
||||
- `GET /api/avatar/v4/items` — `[Authorize]`. The player's avatar items: owned
|
||||
items concatenated with the default catalog. No DB binding yet, so owned is
|
||||
empty and this returns just the catalog.
|
||||
- `GET /api/avatar/v2` — `[Authorize]`. The player's avatar. No DB binding yet,
|
||||
so it returns the default `{ OutfitSelections, FaceFeatures, SkinColor,
|
||||
HairColor }` the C# seeds for a new player.
|
||||
|
||||
## TODO before production
|
||||
|
||||
- Wire a DB binding for the default-unlocked item set.
|
||||
- Wire a DB binding and prepend each player's owned `AvatarItems` to
|
||||
`/api/avatar/v4/items`.
|
||||
|
||||
Reference in New Issue
Block a user