Skip to content

Commit

Permalink
Merge pull request #1796 from etalab/enhance/doc_template_fiche_metier
Browse files Browse the repository at this point in the history
Better documentation in endpoint template files
  • Loading branch information
Samuelfaure authored Feb 11, 2025
2 parents 00346b7 + 84f3700 commit 84340ab
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
8 changes: 6 additions & 2 deletions config/endpoints/template.entreprise.yml.example
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
---
# L'UID sert à identifier cette entrée de manière unique, et est utilisé pour l'URL de la fiche métier
- uid: 'provider/resource'
# Ce chemin doit correspondre au path dans le fichier swagger
path: '/v3/provider/resource/{siren}'
# Path: doit correspondre au path dans le swagger
# Exemple pour Attestation de vigilance
# Voir le swagger ici https://github.com/etalab/siade/blob/272aa40577802afe59ebc5f3cded39d2c25107ae/swagger/openapi-entreprise.yaml#L85
# Le path est '/v3/urssaf/unites_legales/{siren}/attestation_vigilance' (copier ligne 85)
path: '/v3/urssaf/unites_legales/{siren}/attestation_vigilance'
# Position au sein de l'index
# Ce chiffre détermine l'ordre d'affichage dans le catalogue : La fiche avec position 1 sera avant la fiche 2
position: 501
# la clef alert est optionnelle
alert:
Expand Down
10 changes: 8 additions & 2 deletions config/endpoints/template.particulier.yml.example
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,15 @@
# Paramètres d'appel, habituellement 'Identité pivot', 'FranceConnect'
parameters:
- Identité pivot
# Doit correspondre au path dans le swagger
path: '/api/v2/situations-pole-emploi'
# Path: doit correspondre au path dans le swagger
# Exemple pour Paiements Pole Emploi en v2
# Voir le swagger ici : https://github.com/etalab/siade/blob/272aa40577802afe59ebc5f3cded39d2c25107ae/swagger/openapi-particulierv2.yaml#L2272
# Le path est '/api/v2/paiements-pole-emploi' (copier ligne 2272)
# Swagger Particulier v2 ici : https://github.com/etalab/siade/blob/develop/swagger/openapi-particulierv2.yaml
# Swagger Particulier v3 ici : https://github.com/etalab/siade/blob/develop/swagger/openapi-particulier.yaml
path: '/api/v2/paiements-pole-emploi'
# Position au sein de l'index
# Ce chiffre détermine l'ordre d'affichage dans le catalogue : La fiche avec position 1 sera avant la fiche 2
position: 200
# Facultatif: dans le cas où une nouvelle version est disponible;
# L'ancienne version doit avoir la clef 'old_endpoint_uids' avec la valeur de l'UID actuel (ici, 'pole_emploi/situation')
Expand Down

0 comments on commit 84340ab

Please sign in to comment.