Skip to content

Conversation

@HugoBouttes
Copy link
Contributor

No description provided.

GtanSndil and others added 30 commits January 20, 2025 16:42
differences with branch 110-add-a-openapi-spec-inside-the-project-to-improve-the-documentation-of-the-api-and-verify-devs :
- created from more recent main branch
- remove get territoire by type
- add 2 services for departement
- add DateSuppression for all /geo end-points
- add all attributes for /ascendants and /descendants end-points
Swagger parser expect an uri for the location of the openapi.yaml file : so must be modified the inputSpec in the configuration of openapi-generator-maven-plugin
…de-the-project' into 110-bis-add-an-openapi-spec-inside-the-project
generateSupportingFiles->true to allow OpenAPI Generator to generate the utils files, such as ApiUtil
Java17 -> Java21
idea:use the tag (departement, commune) but not found how to do => simplified the name in the openapi.yaml file (start with departement, commune)
example : typeOrigine is Departement for end-points /geo/departement/...
example: type=http://rdf.insee.fr/def/geo#Arrondissement at the end of the original request, and has to be transformed into Arrondissement
Seen necessary for geo/departement/{code}/descendants
due to error : Failed to set up a Bean Validation provider: jakarta.validation.NoProviderFoundException: Unable to create a Configuration, because no Jakarta Bean Validation provider could be found. Add a provider like Hibernate Validator (RI) to your classpath.
issue: No converter for [class java.util.ArrayList] with preset Content-Type 'null'
we want that in any end-point, if the parameter date is null, we replace it by the current date => we do that in ParametersForQuery class (default method). In the contrary, the other parameters stay in  descendantsrequestParametier class (class for all end-points with /descendant)
for all end-points, a null attribute must not appear in the response
+ refactor for geo/airesDAttractionDesVilles, geo/arrondissements geo/pays because of some end-points of type geo/"listeTerritoires" have ton contain chefLieu, and other ones not
@GtanSndil GtanSndil marked this pull request as draft June 13, 2025 09:46
GtanSndil and others added 24 commits June 13, 2025 11:52
for
arrondissementMunicipal
Canton
CantonOuVille
CirconscriptionTerritoriale
CommuneAssociee
CommuneDeleguee
District
feat: init testcontainers and docker compose
@sonarqubecloud
Copy link

sonarqubecloud bot commented Jul 2, 2025

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.

Add a openapi spec inside the project to improve the documentation of the api and verify devs

5 participants