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 params in swagger for searchapplications #146

Merged
merged 1 commit into from
Dec 10, 2024

Conversation

Carolinedanslesnuages
Copy link
Collaborator

  • Rendu le champ label optionnel dans le SearchApplicationDto pour permettre des valeurs vides.
  • Modifié la méthode searchApplications du service pour utiliser dynamiquement le paramètre limit au lieu d’une valeur fixe.
  • Amélioré la documentation Swagger en utilisant @ApiPropertyOptional pour les champs optionnels et en ajoutant des descriptions détaillées.
  • Ajouté la gestion des réponses d’erreur dans le contrôleur pour mieux documenter les cas d’échec.

@Carolinedanslesnuages Carolinedanslesnuages added the enhancement New feature or request label Dec 10, 2024
@Carolinedanslesnuages Carolinedanslesnuages force-pushed the feat/Add-property-for-swagger branch from 684fedb to 32047e5 Compare December 10, 2024 11:09
@Carolinedanslesnuages Carolinedanslesnuages force-pushed the feat/Add-property-for-swagger branch from 32047e5 to b9e2e87 Compare December 10, 2024 11:21
description:
'Liste des applications correspondant aux critères de recherche.',
})
@ApiResponse({ status: 400, description: 'Requête invalide.' })
Copy link
Collaborator

@thomashbrnrd thomashbrnrd Dec 10, 2024

Choose a reason for hiding this comment

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

Je ne pense pas que ce soit nécessaire de décrire les erreurs 400 et 500, cela revient un peu à dupliquer : https://developer.mozilla.org/en-US/docs/Web/HTTP/Status

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

ok

@Carolinedanslesnuages Carolinedanslesnuages merged commit 8c3c891 into dev Dec 10, 2024
3 checks passed
@feraudt feraudt deleted the feat/Add-property-for-swagger branch December 11, 2024 14:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants