Release Notes - v1.0.4
📢 Gml.Web.Api v1.0.4 — Now Released!
This release introduces major improvements to mod management, profile operations, and authorization handling, along with various bug fixes and refinements to streamline API functionality.
What’s New?
🚀 Mod Management Endpoints
- New Profile Mod Endpoints: Added several endpoints for managing mods within profiles, including:
- Retrieve Profile Mods: Get all mods associated with a profile.
- Search Optional Mods: Fetch optional mods available for download.
- Fetch Available Mods: Retrieve mods that are available for download based on various filters.
- Load and Remove Mods: New POST and DELETE endpoints for loading and removing mods in user profiles. These endpoints require admin authorization for security.
- Load Mods via URL: A POST endpoint to load mods into profiles directly from a URL, allowing seamless mod additions from external links.
🔧 Mod Data Transfer Updates
- New DTOs for Mod Data:
- ModReadDto: A new Data Transfer Object (DTO) that includes a
Type
field for better mod type clarity. - ExtendedModReadDto: Added an
Id
property to allow unique identification of mods in API operations. - ExtendedModInfoReadDto: Introduced a DTO for detailed mod information, including version details.
- Description Field: The
ModReadDto
now includes aDescription
field for providing more detailed mod descriptions.
- ModReadDto: A new Data Transfer Object (DTO) that includes a
🔒 Authorization & Security Enhancements
- Admin Role Authorization:
- Player Endpoints: The players list, ban, and pardon endpoints now require admin authorization to enhance security and limit access.
- Sentry Access: Removed the role-based authorization for the Sentry GET endpoint, allowing broader access to Sentry error logs.
🛠 Profile Handler & Middleware Updates
- Improved Mod Filtering: Simplified filtering logic by removing type restrictions, improving flexibility.
- Mapping & DTO Handling: Extended the
ModsMapper
and implemented new mapping profiles to support efficient mod data transformations. - Profile Creation Streamlining: Removed redundant notification messages on profile creation to streamline the response flow.
🧹 Bug Fixes & Refinements
- Fixed URL Decoding: Ensured proper handling of URL-encoded characters before extracting file names in the ProfileHandler to avoid errors.
- Corrected Application URLs: Several fixes to the application URL in launch settings to ensure the correct local development server address is used.
- Session Consistency: Updated session creation logic to ensure more consistent behavior across different environments.
🧑💻 Additional Enhancements
- Mod Version Support: Extended
ExtendedModInfoReadDto
to include mod version collections, allowing better version tracking in responses. - Updated API Response Handling: Improved error handling, validation messages, and mapping for mod-related endpoints.
- Sentry Handler Update: Enhanced stack trace grouping and date range processing in the Sentry handler to prevent redundant error entries.
🚀 Upgrade to v1.0.4 to leverage the new mod management capabilities, enhanced security features, and overall improved API functionality. This release provides an even more robust API for managing mods, profiles, and users securely and efficiently!
This version continues to evolve Gml.Web.Api to meet growing needs for mod management and profile handling while tightening security and simplifying error handling.