{"id":26691564,"url":"https://github.com/mothraa/django-rest-api-build","last_synced_at":"2025-03-26T16:19:22.029Z","repository":{"id":247963924,"uuid":"824722668","full_name":"Mothraa/Django-REST-API-Build","owner":"Mothraa","description":"OC project 10","archived":false,"fork":false,"pushed_at":"2024-09-11T16:18:21.000Z","size":119,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-03-26T16:19:18.950Z","etag":null,"topics":["django","django-rest-framework","python","rest-api","security","sqlite3","webdev"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Mothraa.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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-07-05T19:28:06.000Z","updated_at":"2024-10-10T22:21:28.000Z","dependencies_parsed_at":"2024-09-11T23:16:38.468Z","dependency_job_id":null,"html_url":"https://github.com/Mothraa/Django-REST-API-Build","commit_stats":null,"previous_names":["mothraa/ocr_projet10","mothraa/django-rest-api-build"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mothraa%2FDjango-REST-API-Build","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mothraa%2FDjango-REST-API-Build/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mothraa%2FDjango-REST-API-Build/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mothraa%2FDjango-REST-API-Build/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Mothraa","download_url":"https://codeload.github.com/Mothraa/Django-REST-API-Build/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245689472,"owners_count":20656417,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["django","django-rest-framework","python","rest-api","security","sqlite3","webdev"],"created_at":"2025-03-26T16:19:20.979Z","updated_at":"2025-03-26T16:19:22.004Z","avatar_url":"https://github.com/Mothraa.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Créez une API sécurisée RESTful en utilisant Django REST\n\n## À propos\n\nFormation OpenClassRooms - API REST - Projet 10\n\nObjectifs :\n\n- Sécuriser une API afin qu'elle respecte les normes OWASP et RGPD\n- Créer une API RESTful avec Django REST\n\n## Prérequis\n\nSans\n\n## Installation\n\nCloner le repository\n\n```bash\ngit clone https://github.com/Mothraa/OCR_projet10.git\n```\n\nCréer l'environnement virtuel avec [pipenv](https://pipenv.pypa.io/en/latest/)\n\n```bash\npip install pipenv\npipenv install\n```\n\nActiver l'environnement\n\n```bash\npipenv shell\n```\n\nInstaller les packages\n\n```bash\npipenv install -r requirements.txt\n```\n\n## Génération d'une base vierge\n\n- Création d'une base de donnée (vide)\n\n```bash\ncd src\npython manage.py db\n```\n\n- Génération et éxecution des scripts de migration\n\n```bash\npython manage.py makemigrations\npython manage.py migrate\n```\n\n## Utilisation\n\n- Démarrer le serveur en local :\n\n```bash\ncd src\npython manage.py runserver\n```\n\nLa collection de requêtes utilisées lors du developpement est disponible sous Postman [ici](https://www.postman.com/mothraa/shared-workspace/overview/)\n\n## Langages \u0026 Librairies\n\n- Python avec [Django](https://www.djangoproject.com/)\n- [Django Rest Framework (DRF)](https://www.django-rest-framework.org/) pour la partie API\n  - Le plugin Django [Simple JWT](https://django-rest-framework-simplejwt.readthedocs.io/en/latest/) pour l'authentification\n  - Le plugin [Django filter](https://pypi.org/project/django-filter/) pour permettre le filtrage depuis l'URL\n- [SQLite](https://www.sqlite.org/) : stockage des données via l'ORM de Django\n\n## Documentation\n\nIl existe deux comptes (dont les accès sont disponibles dans la [collection postman](https://www.postman.com/mothraa/shared-workspace/overview/))\nLa création de nouveaux comptes est possible via un compte administrateur.\n\nL'application est paramétrée en mode developpement et debug ; elle n'est pas faite telle quelle pour un déploiement et une mise en production.\n\n## Gestion des versions\n\nLa dénomination des versions suit la spécification décrite par la [Gestion sémantique de version](https://semver.org/lang/fr/)\n\nLes versions disponibles ainsi que les journaux décrivant les changements apportés sont disponibles depuis [la section releases](https://github.com/Mothraa/OCR_projet10/releases)\n\n## Licence\n\nVoir le fichier [LICENSE](./LICENSE.md) du dépôt.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmothraa%2Fdjango-rest-api-build","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmothraa%2Fdjango-rest-api-build","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmothraa%2Fdjango-rest-api-build/lists"}