Skip to content

PISTE - Codes and Laws Connector ​

Connector Configuration ​

The PISTE Codes and Laws connector relies on the PISTE platform to query the Légifrance API and synchronize the content of codes and laws (CODE_ETAT or LODA_ETAT fonds) into a Wikit Semantics data source.

Field nameFormat / TypeRequiredComment
EnvironmentList of values✅SANDBOX or PRODUCTION
Client ID (clientId)Free text✅ID of the PISTE application
Client secret (clientSecret)Password✅Secret associated with the PISTE application
FondList of values✅CODE_ETAT (codes) or LODA_ETAT (laws, ordinances, decrees, orders). Default: CODE_ETAT
CodesList of values (multiple)➖Codes to synchronize, e.g. Code de l'urbanisme, Code de l'environnement, Code du patrimoine, or custom to add others
Custom codesTable of values➖List of additional codes to synchronize, to be filled in only if the custom option is selected in the Codes field

💡 Fields marked ✅ are required for the connector to work.

Setup ​

Create a PISTE application ​

The connector requires a PISTE account and a registered application to obtain a client ID and client secret:

  1. Log in to PISTE
  2. Create an application and subscribe it to the required Légifrance APIs
  3. Retrieve the application's client ID and client secret
  4. Choose the corresponding environment (SANDBOX for testing, PRODUCTION for real use)

Choosing the fond and codes to synchronize ​

  • CODE_ETAT: synchronizes the content of codes currently in force
  • LODA_ETAT: synchronizes laws, ordinances, decrees, and orders

The Codes field lets you select the codes to synchronize from a predefined list. If a desired code is not listed, select the custom option and enter its exact name in the Custom codes field.

How the Connector Works ​

The connector authenticates with PISTE via OAuth2 (clientId / clientSecret), then queries the Légifrance API to retrieve the content of codes and laws from the selected fond, filtered by the specified list of codes. The content is then transformed and synchronized into the Wikit Semantics data source.

⚠️ This connector is available on request from the Wikit team.