{"id":21702406,"url":"https://github.com/aphp/federation-api","last_synced_at":"2026-04-13T23:03:01.844Z","repository":{"id":255226291,"uuid":"809693423","full_name":"aphp/federation-api","owner":"aphp","description":null,"archived":false,"fork":false,"pushed_at":"2024-12-10T08:29:38.000Z","size":107,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-09-09T09:24:49.138Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aphp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-03T09:11:48.000Z","updated_at":"2024-12-10T08:29:42.000Z","dependencies_parsed_at":"2025-01-25T15:35:29.618Z","dependency_job_id":null,"html_url":"https://github.com/aphp/federation-api","commit_stats":null,"previous_names":["aphp/federation-api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/aphp/federation-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aphp%2Ffederation-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aphp%2Ffederation-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aphp%2Ffederation-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aphp%2Ffederation-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aphp","download_url":"https://codeload.github.com/aphp/federation-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aphp%2Ffederation-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31774547,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T20:17:16.280Z","status":"ssl_error","status_checked_at":"2026-04-13T20:17:08.216Z","response_time":93,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-25T21:15:26.087Z","updated_at":"2026-04-13T23:03:01.828Z","avatar_url":"https://github.com/aphp.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"![image](https://img.shields.io/badge/Python-3.12-blue/?color=blue\u0026logo=python\u0026logoColor=9cf)\n![image](https://img.shields.io/badge/FastAPI-0.109-%2344b78b/?color=%2344b78b\u0026logo=fastapi\u0026logoColor=2344b78b)\n[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=aphp_federation-api\u0026metric=alert_status)](https://sonarcloud.io/summary/new_code?id=aphp_federation-api)\n[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=aphp_federation-api\u0026metric=coverage)](https://sonarcloud.io/summary/new_code?id=aphp_federation-api)\n\n# Federation API\n\n## Stack technique\n\n- ⚡ [**FastAPI**](https://fastapi.tiangolo.com)\n    - 🔍 [Pydantic](https://docs.pydantic.dev)\n    - 🧰 [SQLAlchemy](https://www.sqlalchemy.org/)\n    - 💾 [PostgreSQL](https://www.postgresql.org)\n- 🔒 Secure password hashing\n- 🔑 JWT authentication (for dev only)\n\n\n# Setup\n\n## 1. 🎨 Récupérer le projet\n   ```sh\n   git clone https://github.com/aphp/federation-api.git\n   ```\n\n## 2. 🚀 Lancer le projet\n\n### Avec Docker 🐋\n\n  * Créer le fichier de variables d'environnement `federation-api/.env` à base du template `.env.example`\n\n  ```sh\n    cd federation-api\n    docker compose --env-file .docker.env up\n  ```\n\n  * Accéder à la documentation de l'API sur [localhost:8000/docs](localhost:8000/docs)\n  * S'authentifier avec **admin**/**1234** pour tester les routes de l'API\n\n\n### Avec Uvicorn 🦄\nAvec Python 3.12 déjà installé, procéder comme suit:  \n\n  * Installer UV et créer un environnement virtuel\n\n    ```sh\n    cd federation-api\n    pip install uv \u0026\u0026 uv venv py312venv \u0026\u0026 uv pip install --no-cache -r requirements.txt\n    ```\n  * Créer le fichier de variables d'environnement `federation-api/.env` à base du template `.env.example`\n\n  * Démarrer Uvicorn\n    ```sh\n    source py312venv/bin/activate\n    (py312venv) uvicorn platform_registry.main:app --port 8000 --reload\n    ```\n    \n  * Accéder à la documentation de l'API sur [localhost:8000/docs](localhost:8000/docs)\n\n  * Pour tester l'API:\n    1. configurer un serveur de BD PotgreSQL et lancer les migrations avec `Alembic`\n    ```sh\n    (py312venv) alembic upgrade head\n    ```\n    2. Lancer le script pour créer un utilisateur initial `admin`\n    ```sh\n    (py312venv) python platform_registry/initial_data.py\n    ```\n    3. S'authentifier avec **admin**/**1234** pour tester les routes de l'API\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faphp%2Ffederation-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faphp%2Ffederation-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faphp%2Ffederation-api/lists"}