-
Notifications
You must be signed in to change notification settings - Fork 1
CharacterArmorController
Mateusz Andrzejewski edited this page Jun 24, 2025
·
2 revisions
This page contains documentation for the CpRedCharacterArmorController class, which handles character armors management for Cyberpunk Red.
Base Path: /api/v1/authorized
Package: dev.goral.rpgSystems.cpRed.characters.characterArmor
All requests to this controller require an XSRF token to be included in the headers.
Example:
headers: {
"X-XSRF-TOKEN": "<csrfToken>"
}
| HTTP Method | Path | Description |
|---|---|---|
| GET | /games/cpRed/characters/armors/{characterId} |
Returns detailed information about a specific character armor by characterID |
| POST | /games/cpRed/characters/armors/create |
Adds a new connection between armor type and character to the system |
| PUT | /games/cpRed/characters/armors/update/{characterArmorId} |
Update character armor data |
| DELETE | /games/cpRed/characters/armors/delete/{characterArmorId} |
Delete character armor data |
| GET | /admin/games/cpRed/characters/armors/all |
Returns a full list of character armor type with administrative data |
- Id (Long): Unique identifier for the character armor. Required.
- baseArmorId (Long): Unique identifier for the armor type. Required.
- CharacterId (Long): Unique identifier for the character. Required.
-
status (String): Status of the armor. Required. Possible values:
EQUIPPED,STORED. -
place (String): Location of the armor. Required. Possible values:
HEAD,BODY,SHIELD. - currentArmorPoints (Integer): Current armor points of the character. Required.
- description (String): Description of the character armor. Required.
- message (String): Describes the result of the operation.
- error (Integer): HTTP status code.
- timestamp (String): Time the response was generated.
- characterArmor (Object): A single character armor object (if applicable).
- characterArmorList (Array): List of character armors (if applicable).
Method: GET
Path: /games/cpRed/characters/armors/{characterId}
{
"characterArmors": [],
"message": "Pancerze postaci pobrane pomyślnie",
"error": 200,
"timestamp": "..."
}
-
400 Bad Request: Invalid Character ID. -
401 Unauthorized: User is not logged in. -
404 Not Found: Character with the specified ID does not exist.
Method: POST
Path: /games/cpRed/characters/armors/create
{
"baseArmorId": 1,
"characterId": 1,
"status": "EQUIPPED",
"place": "BODY"
}{
"message": "Pancerz został dodany do postaci",
"error": 200,
"timestamp": "..."
}-
400 Bad Request: User not authenticated. -
401 Unauthorized: User not logged in. -
404 Not Found: Invalid character armor data.
Method: PUT
Path: /games/cpRed/characters/armors/update/{characterArmorId}
{
"status": "STORED",
"currentArmorPoints": 2,
"description": "Pancerz tak twardy jak..."
}{
"message": "Pancerz postaci został pomyślnie zmodyfikowany",
"error": 200,
"timestamp": "..."
}-
400 Bad Request: Invalid character armor ID or data. -
401 Unauthorized: User not logged in. -
404 Not Found: Character armor with the specified ID does not exist.
Method: DELETE
Path: /games/cpRed/characters/armors/delete/{characterArmorId}
{
"message": "Pancerz postaci został pomyślnie usunięty",
"error": 200,
"timestamp": "..."
}-
400 Bad Request: Invalid character armor ID. -
401 Unauthorized: User not logged in. -
404 Not Found: Character armor with the specified ID does not exist.
Method: GET
Path: /admin/games/cpRed/characters/armors/all
{
"characterArmors": [],
"message": "Wszystkie pancerze postaci pobrane pomyślnie",
"error": 200,
"timestamp": "..."
}
-
401 Unauthorized: User is not logged in. -
403 Forbidden: User is not an admin.
-
Missing XSRF Token: Ensure the
X-XSRF-TOKENheader is included in every request. - Invalid Fields: Double-check the request body for missing or invalid fields.
- Permission Issues: Verify that the user has the necessary permissions for the requested operation.
-
Home
- GameNoteController
- SchedulerController
- UserController
- ForgotPasswordController
- RegisterController
- RpgSystemsController
- GameController
- GameRoomController
- AmmunitionController
- ArmorsController
- ClassesController
- CriticalInjuriesController
- CyberwaresController
- EquipmentsController
- SkillsController
- StatsController
- WeaponsController
- WeaponModsController
- CustomAmmunitionController
- CustomArmorsController
- CustomCriticalInjuriesController
- CustomCyberwaresController
- CustomEquipmentsController
- CustomWeaponModsController
- CustomWeaponsController
- CharacterAmmunitionController
- CharacterArmorController
- CharacterClassesController
- CharacterCriticalInjuriesController
- CharacterCustomAmmunitionController
- CharacterCustomArmorsController
- CharacterCustomCriticalInjuriesController
- CharacterCustomCyberwareController
- CharacterCustomEquipmentController
- CharacterCustomWeaponController
- CharacterCyberwareController
- CharacterEnemiesController
- CharacterEquipmentController
- CharacterFriendsController
- CharacterLifePathController
- CharacterOtherInfoController
- CharacterSkillsController
- CharacterStatsController
- CharacterTragicLoveStoryController
- CharacterWeaponsController
- CharacterWeaponModsController