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 name | Format / Type | Required | Comment |
|---|---|---|---|
| Environment | List 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 |
| Fond | List of values | ✅ | CODE_ETAT (codes) or LODA_ETAT (laws, ordinances, decrees, orders). Default: CODE_ETAT |
| Codes | List 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 codes | Table 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:
- Log in to PISTE
- Create an application and subscribe it to the required Légifrance APIs
- Retrieve the application's client ID and client secret
- Choose the corresponding environment (
SANDBOXfor testing,PRODUCTIONfor real use)
Choosing the fond and codes to synchronize
CODE_ETAT: synchronizes the content of codes currently in forceLODA_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.