-
Notifications
You must be signed in to change notification settings - Fork 1
RpgSystemsController
Paulina Szulc edited this page Jun 23, 2025
·
1 revision
This page contains documentation for the RpgSystemsController class, which handles RPG system retrieval and creation.
Base Path: /api/v1/authorized
Package: dev.goral.rpghandyhelper.rpgSystems
- All user endpoints require a valid XSRF token.
- Admin endpoints require appropriate admin privileges.
| HTTP Method | Path | Description |
|---|---|---|
| GET | /rpgSystems/{rpgSystemsId} |
Retrieves a specific RPG system by ID |
| GET | /rpgSystems/all |
Retrieves all RPG systems |
| POST | /admin/rpgSystems/create |
Creates a new RPG system (Admin only) |
- name (String): Name of the RPG system. Required, max 255 characters.
- description (String): Description of the system. Required, max 1000 characters.
- message (String): Describes the result of the operation.
- error (Integer): HTTP status code.
- timestamp (String): Time the response was generated.
- rpgSystem (Object): A single RPG system object (if applicable).
- rpgSystems (Array): List of RPG systems (if applicable).
{
"id": 1,
"name": "Cyberpunk RED",
"description": "Futuristic role-playing game set in a dystopian world."
}Method: GET
Path: /rpgSystems/{rpgSystemsId}
{
"rpgSystem": { ... },
"message": "System został pobrany.",
"error": 200,
"timestamp": "..."
}-
404 Not Found: System with the given ID does not exist.
Method: GET
Path: /rpgSystems/all
{
"rpgSystems": [ { ... } ],
"message": "Systemy zostały pobrane.",
"error": 200,
"timestamp": "..."
}-
401 Unauthorized: User is not authenticated.
Method: POST
Path: /admin/rpgSystems/create
{
"name": "Cyberpunk RED",
"description": "Futuristic role-playing game set in a dystopian world."
}{
"message": "System został dodany",
"error": 200,
"timestamp": "..."
}-
400 Bad Request: Empty or too long name/description. -
409 Conflict: RPG system with the same name already exists.
-
Missing or invalid fields: Ensure
nameanddescriptionare both non-empty and within length limits. -
Permission errors: Make sure the request to
/admin/...routes is made by an admin user. - Duplicate name: Use a unique RPG system name.
-
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