Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add Book resource #2

Open
wants to merge 1 commit into
base: 4.0
Choose a base branch
from
Open

feat: add Book resource #2

wants to merge 1 commit into from

Conversation

dunglas
Copy link
Member

@dunglas dunglas commented Feb 5, 2025

Q A
Branch? 4.0
Tickets n/a
License MIT
Doc PR n/a

Example for api-platform/core#6929

Comment on lines +16 to +19
#[ApiProperty(property: 'title', serialize: new Groups(['book']))]
#[ApiProperty(property: 'isbn', serialize: new Groups(['book']))]
#[ApiProperty(property: 'isbn', serialize: new Groups(['book']))]
#[ApiProperty(property: 'description', serialize: new Groups(['book']))]
Copy link
Collaborator

Choose a reason for hiding this comment

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

@dunglas This part gives me an error when I run php artisan migrate and a fatal error on the API doc, as you can see below:
image
image

Copy link
Member Author

@dunglas dunglas Feb 9, 2025

Choose a reason for hiding this comment

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

I fixed this in core. We just need to update the deps.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Oh, perfect, so I'll do it in PR #4 👌

Copy link
Collaborator

@vinceAmstoutz vinceAmstoutz Feb 10, 2025

Choose a reason for hiding this comment

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

Ready to rebase @dunglas

@vinceAmstoutz vinceAmstoutz added enhancement New feature or request Need to work Further work or revisions are required labels Feb 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Need to work Further work or revisions are required
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants