Zeeshaun fecbefc15c
Some checks failed
Deploy Promiscuity Auth API / deploy (push) Successful in 1m59s
Deploy Promiscuity Character API / deploy (push) Successful in 1m16s
Deploy Promiscuity Inventory API / deploy (push) Has been cancelled
Deploy Promiscuity Locations API / deploy (push) Has been cancelled
Deploy Promiscuity Mail API / deploy (push) Has been cancelled
Deploy Promiscuity World API / deploy (push) Has been cancelled
Deploy Promiscuity Crafting API / deploy (push) Has been cancelled
k8s smoke test / test (push) Has been cancelled
Recommiting glbs for LFS
2026-05-12 15:34:12 -05:00

1.2 KiB

CharacterApi document shapes

This service expects JSON request bodies for character creation and stores character documents in MongoDB.

Inbound JSON documents

  • CreateCharacterRequest (POST /api/characters)
    {
      "name": "string"
    }
    
  • UpdateCharacterCoordRequest (PUT /api/characters/{id}/coord)
    {
      "coord": {
        "x": "number",
        "y": "number"
      }
    }
    

Stored documents (MongoDB)

  • Character
    {
      "id": "string (ObjectId)",
      "ownerUserId": "string",
      "name": "string",
      "coord": {
        "x": "number",
        "y": "number"
      },
      "visionRadius": "number",
      "createdUtc": "string (ISO-8601 datetime)"
    }
    

Outbound JSON documents

  • VisibleLocation (GET /api/characters/{id}/visible-locations)
    [
      {
        "id": "string (ObjectId)",
        "name": "string",
        "coord": {
          "x": "number",
          "y": "number"
        },
        "biomeKey": "plains",
        "resources": [
          {
            "itemKey": "wood",
            "remainingQuantity": 100,
            "gatherQuantity": 3
          }
        ]
      }
    ]
    
    Missing locations within the character's vision window are created automatically before this response is returned.