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

Improved api response format and homogeneity #495

Merged
merged 1 commit into from
Dec 10, 2024

Conversation

antoineludeau
Copy link
Member

@antoineludeau antoineludeau commented Dec 4, 2024

Enhancement

In order to have homogeneous api responses, this PR adds a :

  • handleAPIResponse function that handle the different response status and structure

@antoineludeau antoineludeau marked this pull request as ready for review December 4, 2024 16:26
@IGNFBourcier
Copy link
Contributor

Si c'est un formatage complet : la partie try /catch non specifique retournant des 500 générique peut aussi se refact en wrapper des fonction de route.
Le contenu aussi pourrai passer par ce wrapper qui handleAPIResponse des retour reponse.

@antoineludeau antoineludeau self-assigned this Dec 5, 2024
@antoineludeau antoineludeau force-pushed the antoineludeau/clean-api-response branch 2 times, most recently from 59e30f0 to 9a2dc9b Compare December 5, 2024 14:36
@antoineludeau antoineludeau force-pushed the antoineludeau/clean-api-response branch from 9a2dc9b to f681685 Compare December 6, 2024 12:57
@antoineludeau antoineludeau force-pushed the antoineludeau/clean-api-response branch from f681685 to 8db18cc Compare December 10, 2024 13:37
@antoineludeau antoineludeau merged commit aec1c6c into master Dec 10, 2024
1 check passed
@antoineludeau antoineludeau deleted the antoineludeau/clean-api-response branch December 10, 2024 13:57
antoineludeau added a commit that referenced this pull request Dec 10, 2024
…au/clean-api-response"

This reverts commit aec1c6c, reversing
changes made to 7670269.
antoineludeau added a commit that referenced this pull request Dec 10, 2024
…t-structure-change-on-api-response

Revert "Merge pull request #495"
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.

3 participants