
Security News
PodRocket Podcast: Inside the Recent npm Supply Chain Attacks
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
Accéder simplement aux informations concernant une famille allocataire de la CAF.
Ces informations sont délivrées de façon sécurisée, sur la base du numéro d'allocataire et du code postal.
Les données sont mises à jour de façon mensuelle.
Pour utiliser ce projet, vous devez créer un fichier config.json
. Vous pouvez pour cela vous inspirer du fichier config.example.json
.
Clé | Description | Exemple |
---|---|---|
port | Port d'écoute du serveur HTTP | 5000 (valeur par défaut) |
cafHost | Hôte du service CAF | https://caf-host |
cafSslCertificate | Chemin vers le certificat permettant de se connecter au service CAF | /path/to/cert |
cafSslKey | Chemin vers la clé permettant de se connecter au service CAF | /path/to/key |
cafPingParams.numeroAllocataire | Numéro d'allocataire à utiliser pour le service de PING | 1234567 |
cafPingParams.codePostal | Code postal à utiliser pour le service de PING | 12345 |
yarn
yarn start
yarn test
Pour obtenir les informations concernant une famille :
Requête :
GET /api/famille?numeroAllocataire=123456&codePostal=92330
Réponse :
{
"allocataires": [
{
"nomPrenom": "ALICE DUPONT",
"dateDeNaissance": "01011980",
"sexe": "F"
},
{
"nomPrenom": "FRANCIS DUPONT",
"dateDeNaissance": "01011984",
"sexe": "M"
}
],
"enfants": [
{
"nomPrenom": "BOB DUPONT",
"dateDeNaissance": "01012005",
"sexe": "M"
}
],
"adresse": {
"identite": "Madame ALICE DUPONT",
"complementIdentiteGeo": "ENTREE C",
"numeroRue": "9 IMPASSE DES ACACIAS",
"codePostalVille": "92330 SCEAUX",
"pays": "FRANCE"
},
"quotientFamilial": 1850,
"mois": 1,
"annee": 2017
}
Pour vérifier la disponibilité du service
Requête :
GET /api/ping
Réponse :
pong
si le service fonctionneboom
sinonFAQs
API CAF
The npm package api-caf receives a total of 4 weekly downloads. As such, api-caf popularity was classified as not popular.
We found that api-caf demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.