{"id":17646750,"url":"https://github.com/rahulkp220/iceandfire-api","last_synced_at":"2025-03-30T07:16:24.188Z","repository":{"id":41944302,"uuid":"188856075","full_name":"rahulkp220/iceandfire-api","owner":"rahulkp220","description":"Repository playing around https://anapioficeandfire.com/Documentation#books","archived":false,"fork":false,"pushed_at":"2023-05-22T22:28:18.000Z","size":42,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-23T18:56:18.459Z","etag":null,"topics":["coverage","django-rest-framework","django2","python3","requests"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rahulkp220.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2019-05-27T14:13:49.000Z","updated_at":"2021-06-15T10:39:53.000Z","dependencies_parsed_at":"2024-10-23T14:04:58.167Z","dependency_job_id":null,"html_url":"https://github.com/rahulkp220/iceandfire-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rahulkp220%2Ficeandfire-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rahulkp220%2Ficeandfire-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rahulkp220%2Ficeandfire-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rahulkp220%2Ficeandfire-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rahulkp220","download_url":"https://codeload.github.com/rahulkp220/iceandfire-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246285816,"owners_count":20752958,"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":["coverage","django-rest-framework","django2","python3","requests"],"created_at":"2024-10-23T11:06:50.109Z","updated_at":"2025-03-30T07:16:24.166Z","avatar_url":"https://github.com/rahulkp220.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Ice\u0026Fire API :fire:\nA simple python/django based CRUD application to play around some of the APIs provided by the website.\n\n\n### How to Install\nThis project uses `Python 3+` so make sure you are having python3 preinstalled on your local machine.\n\n```\ngit clone https://github.com/rahulkp220/iceandfire-api.git\ncd iceandfire-api\npython3 -m venv env\nsource env/bin/activate\npip install -r requirements.txt\npython manage.py migrate --run-syncdb\npython manage.py runserver 8080\n```\n\nYou can also access the `admin` interface of django by using `python manage.py createsuperuser`\n\n\n### List of APIs\nOnce the server is up and running, go through\n\n\n#### Simple API\n* `http://localhost:8080/api/external-books/` to fetch all the results\n* `http://localhost:8080/api/external-books?name=nameOfABook` to fetch results for a specific book.\n\n\n#### DRF based REST API\n`http://localhost:8080/api/v1/books` for all CRUD operations\n\n\n### Tests \u0026 Coverage\nJust run `python manage.py test` to trigger tests on your local machine.\nTo check coverage, run the following:\n* `coverage run --source=\".\" manage.py test book` \n* `coverage report`\n\nCurrent coverage report is shared below.\n```\nName                     Stmts   Miss  Cover\n--------------------------------------------\nbook/__init__.py             0      0   100%\nbook/admin.py               10      0   100%\nbook/apps.py                 3      3     0%\nbook/models.py              16      2    88%\nbook/serializers.py         48      0   100%\nbook/tests.py               44      0   100%\nbook/views.py               66      5    92%\niceandfire/__init__.py       0      0   100%\niceandfire/settings.py      18      0   100%\niceandfire/urls.py           9      0   100%\niceandfire/wsgi.py           4      4     0%\nmanage.py                   12      2    83%\n--------------------------------------------\nTOTAL                      230     16    93%\n```\n\n### Contributions Welcome! \n:tada: :tada:","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frahulkp220%2Ficeandfire-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frahulkp220%2Ficeandfire-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frahulkp220%2Ficeandfire-api/lists"}