{"id":24081939,"url":"https://github.com/excites/geokey-webresources","last_synced_at":"2026-05-15T00:03:50.187Z","repository":{"id":57433827,"uuid":"52516213","full_name":"ExCiteS/geokey-webresources","owner":"ExCiteS","description":"Add web resources to GeoKey projects","archived":false,"fork":false,"pushed_at":"2018-11-03T09:16:03.000Z","size":92,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-02-12T12:56:32.520Z","etag":null,"topics":["django","geojson","geokey","geokey-extension","kml"],"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/ExCiteS.png","metadata":{"files":{"readme":"README.rst","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}},"created_at":"2016-02-25T10:25:05.000Z","updated_at":"2018-11-03T09:13:10.000Z","dependencies_parsed_at":"2022-08-28T05:01:07.592Z","dependency_job_id":null,"html_url":"https://github.com/ExCiteS/geokey-webresources","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ExCiteS%2Fgeokey-webresources","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ExCiteS%2Fgeokey-webresources/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ExCiteS%2Fgeokey-webresources/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ExCiteS%2Fgeokey-webresources/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ExCiteS","download_url":"https://codeload.github.com/ExCiteS/geokey-webresources/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240959077,"owners_count":19884909,"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","geojson","geokey","geokey-extension","kml"],"created_at":"2025-01-09T23:44:39.491Z","updated_at":"2026-05-15T00:03:50.007Z","avatar_url":"https://github.com/ExCiteS.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":".. image:: https://img.shields.io/pypi/v/geokey-webresources.svg\n    :alt: PyPI Package\n    :target: https://pypi.python.org/pypi/geokey-webresources\n\n.. image:: https://img.shields.io/travis/ExCiteS/geokey-webresources/master.svg\n    :alt: Travis CI Build Status\n    :target: https://travis-ci.org/ExCiteS/geokey-webresources\n\n.. image:: https://img.shields.io/coveralls/ExCiteS/geokey-webresources/master.svg\n    :alt: Coveralls Test Coverage\n    :target: https://coveralls.io/r/ExCiteS/geokey-webresources\n\ngeokey-webresources\n===================\n\nExtend GeoKey projects by adding web resources: GeoJSON and KML.\n\nInstall\n-------\n\ngeokey-webresources requires:\n\n- Python version 2.7\n- GeoKey version 1.6 or greater\n\nInstall the geokey-webresources from PyPI:\n\n.. code-block:: console\n\n    pip install geokey-webresources\n\nOr from cloned repository:\n\n.. code-block:: console\n\n    cd geokey-webresources\n    pip install -e .\n\nAdd the package to installed apps:\n\n.. code-block:: console\n\n    INSTALLED_APPS += (\n        ...\n        'geokey_webresources',\n    )\n\nMigrate the models into the database:\n\n.. code-block:: console\n\n    python manage.py migrate geokey_webresources\n\nYou're now ready to go!\n\nUpdate\n------\n\nUpdate the geokey-webresources from PyPI:\n\n.. code-block:: console\n\n    pip install -U geokey-webresources\n\nMigrate the new models into the database:\n\n.. code-block:: console\n\n    python manage.py migrate geokey_webresources\n\nTest\n----\n\nRun tests:\n\n.. code-block:: console\n\n    python manage.py test geokey_webresources\n\nCheck code coverage:\n\n.. code-block:: console\n\n    pip install coverage\n    coverage run --source=geokey_webresources manage.py test geokey_webresources\n    coverage report -m --omit=*/tests/*,*/migrations/*\n\nPublic API\n----------\n\n**Get all web resources of a project**\n\n.. code-block:: console\n\n    GET /api/projects/:project_id/webresources/\n\n*Request parameters:*\n\n==========  ======= ====================================\nParameter   Type    Description\n==========  ======= ====================================\nproject_id  Integer A unique identifier for the project.\n==========  ======= ====================================\n\n*Response:*\n\nThe response contains an array of web resources. If the array is empty, then the project has no active web resources.\n\n.. code-block:: console\n\n    [\n        {\n            \"id\": 46,\n            \"status\": \"active\",\n            \"name\": \"Public Houses\",\n            \"description\": \"All public houses in London.\",\n            \"created\": \"2014-09-19T15:51:32.790Z\",\n            \"modified\": \"2014-09-21T15:51:32.804Z\",\n            \"dataformat\": \"KML\",\n            \"url\": \"http://london.co.uk/public-houses.kml\",\n            \"colour\": \"#000000\",\n            \"symbol\": null\n        }\n    ]\n\n*Response status codes:*\n\n==== =========================================================\nCode Reason\n==== =========================================================\n200  The list of web resources has been returned successfully.\n404  The project was not found (or user has no access to it).\n==== =========================================================\n\n**Get a single web resource of a project**\n\n.. code-block:: console\n\n    GET /api/projects/:project_id/webresources/:webresource_id/\n\n*Request parameters:*\n\n==============  ======= =========================================\nParameter       Type    Description\n==============  ======= =========================================\nproject_id      Integer A unique identifier for the project.\nwebresource_id  Integer A unique identifier for the web resource.\n==============  ======= =========================================\n\n*Response:*\n\n.. code-block:: console\n\n    {\n        \"id\": 46,\n        \"status\": \"active\",\n        \"name\": \"Train Stations\",\n        \"description\": \"Train stations in Germany.\",\n        \"created\": \"2015-09-15T09:40:01.747Z\",\n        \"modified\": \"2016-01-10T07:12:01.827Z\",\n        \"dataformat\": \"GeoJSON\",\n        \"url\": \"https://germany.de/all-train-stations.geojson\",\n        \"colour\": \"#ffc0cb\",\n        \"symbol\": '/media/webresources/symbols/train_stations.png'\n    }\n\n*Response status codes:*\n\n==== ================================================\nCode Reason\n==== ================================================\n200  The web resource has been returned successfully.\n404  The project or web resource was not found.\n==== ================================================\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexcites%2Fgeokey-webresources","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fexcites%2Fgeokey-webresources","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexcites%2Fgeokey-webresources/lists"}