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

Drink resource #13

Merged
merged 3 commits into from
May 19, 2024
Merged

Drink resource #13

merged 3 commits into from
May 19, 2024

Conversation

Tschonti
Copy link
Member

Drink DTOs, controller and service

@Tschonti Tschonti requested review from a team, LeventeFarkashazi, murtagh27, pem00 and VarMattew and removed request for a team May 17, 2024 22:03
@IsBoolean()
custom: boolean;

@IsString()
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we could add examples for the optional fields too.


/**
* Name of the drink
* @example Soproni meggy
Copy link
Contributor

Choose a reason for hiding this comment

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

The swagger default values don't work, the example string values should be between apostrophes.
/**

  • Name of the drink
  • @example 'Soproni meggy'
    */

Copy link
Member Author

Choose a reason for hiding this comment

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

good catch!

Copy link
Contributor

@LeventeFarkashazi LeventeFarkashazi left a comment

Choose a reason for hiding this comment

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

Two minor comment changes, but other than that, it's good to go.

@Tschonti Tschonti merged commit d6a5be0 into main May 19, 2024
3 checks passed
@Tschonti Tschonti deleted the feature/2-drink-resource branch May 19, 2024 18:39
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.

Create drink service Create basic CRUD endpoints and DTOs for the Drink entity
2 participants