GET /v1/rulepacks — examples by language
No authentication required to list the packs (public metadata). Response: JSON with the list of rule packs, their status, sources and licenses.
curl
curl "https://api.example/v1/rulepacks"
{
"rulepacks": [
{
"id": "dev-placeholder-facturx",
"format": "facturx",
"version": "0.0.0-dev",
"status": "placeholder",
"sources": [{ "name": "PLACEHOLDER DE DÉVELOPPEMENT — PAS le référentiel officiel FNFE-MPE", "license": "aucune" }]
}
]
}
Python
import requests
rulepacks = requests.get("https://api.example/v1/rulepacks").json()["rulepacks"]
for pack in rulepacks:
print(pack["id"], "-", pack["status"])
JavaScript
const { rulepacks } = await (await fetch("https://api.example/v1/rulepacks")).json();
rulepacks.forEach((p) => console.log(p.id, "-", p.status));
Go
resp, _ := http.Get("https://api.example/v1/rulepacks")
var body struct {
Rulepacks []struct{ ID, Status string } `json:"rulepacks"`
}
json.NewDecoder(resp.Body).Decode(&body)
⚠️ status: "placeholder"
A pack marked placeholder is not the official reference repository
— see rulepacks/README.md
in the repository. Default() (the rule pack applied if none is
specified) never falls back to a placeholder as long as a stable pack
exists for the requested format.