- Introduce UpdateSessionRequest model for partial updates to session state, allowing modification of situation and characters. - Implement updateSession method in SessionService to handle updates, ensuring omitted fields remain unchanged. - Enhance InMemorySessionService to support scenario-based session creation, populating initial situation and characters. - Update SessionResource to delegate update requests to the SessionService. - Add corresponding API documentation for the update session endpoint in OpenAPI specification. - Enhance frontend components to allow editing of session scene and characters, integrating with the new update functionality. - Include unit tests to verify the behavior of session updates and scenario handling.
RolePlay
Minimal Quarkus (Java 21) project scaffold for the RolePlay service.
Structure
src/main/java/de/neitzel/roleplay: startup and base packagesrc/main/java/de/neitzel/roleplay/business: business logicsrc/main/java/de/neitzel/roleplay/common: shared utilitiessrc/main/java/de/neitzel/roleplay/data: data accesssrc/main/java/de/neitzel/roleplay/fascade: external facadessrc/main/resources/db/migration: Liquibase changelog location
Build and test
mvn test
Description
Languages
Java
58.3%
TypeScript
30.9%
Mustache
10.6%
HTML
0.2%