Skip to content

Conversation

@Spomky
Copy link
Contributor

@Spomky Spomky commented Dec 17, 2025

Hi,

This PR has 2 main goals:

  1. Fix the @id property when output Dto is used on a GetCollection operation (see DTO and ObjectMapper missing @id and @type api-platform/core#7614)
  2. Moves api resources from src/Api/Resource classes to src/ApiResource and src/Api/Dto to src/Dto

The reason for 2. is that when the Get operation is set on a class that is alphabetically ordered after the GetCollection operation, the api call response is a 404.

Copy link
Owner

@mtarld mtarld left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @Spomky 🙂

@mtarld mtarld merged commit 682f8c7 into mtarld:main Dec 17, 2025
@Spomky Spomky deleted the fix-dto branch December 18, 2025 13:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants