{"id":16909492,"url":"https://github.com/drager/toerh","last_synced_at":"2026-04-18T14:33:08.063Z","repository":{"id":35766270,"uuid":"40045755","full_name":"drager/toerh","owner":"drager","description":"RESTful API written in Python with Django","archived":false,"fork":false,"pushed_at":"2015-08-01T12:31:55.000Z","size":468,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-20T17:52:31.317Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/drager.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}},"created_at":"2015-08-01T12:20:16.000Z","updated_at":"2015-08-01T12:34:11.000Z","dependencies_parsed_at":"2022-09-04T02:01:52.754Z","dependency_job_id":null,"html_url":"https://github.com/drager/toerh","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/drager/toerh","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drager%2Ftoerh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drager%2Ftoerh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drager%2Ftoerh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drager%2Ftoerh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/drager","download_url":"https://codeload.github.com/drager/toerh/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drager%2Ftoerh/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31972360,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T00:39:45.007Z","status":"online","status_checked_at":"2026-04-18T02:00:07.018Z","response_time":103,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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-10-13T18:55:54.044Z","updated_at":"2026-04-18T14:33:08.047Z","avatar_url":"https://github.com/drager.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"TOERH\n===========\n\n[![Build Status](https://travis-ci.org/drager/toerh.svg?branch=master)](https://travis-ci.org/drager/toerh)\n\n[![Coverage Status](https://coveralls.io/repos/drager/toerh/badge.svg)](https://coveralls.io/r/drager/toerh)\n\n# API\n\nSee [api.md](https://github.com/drager/toerh/blob/master/api.md)\n\n## Postman\nPostman collection can be found [here](https://github.com/drager/toerh/blob/master/API.json.postman_collection)\n\n# Run the application\n\n## Get the project\nFirst of all clone this repository: `git clone https://github.com/drager/toerh.git`\n\nYou also need to set `TOERH_DJANGO_SECRET_KEY`\n\nYou can set it like this in unix-systems:\n\n`export TOERH_DJANGO_SECRET_KEY='@v9c-4ymi$o6xk@m24c5hy5)7vrme6_qk_pbd*7+p(!trld@o%'`\n\n(You can use that key since it's used for Travis).\n\n\n## Elasticsearch\nYou'll need to have elasticsearch installed.\nhttp://www.elasticsearch.org/guide/en/elasticsearch/guide/current/_installing_elasticsearch.html\n\n## Dependencies\n[Python version \u003e= 3.0](https://www.python.org/downloads/)\n\nLatest version of [pip](https://pip.pypa.io/en/latest/installing.html)\n\nCheck `requirements.txt` for more dependencies\n\n### Install dependencies\nTo install all the requirements for this project just run: `pip install -r requirements.txt`.\n(given that you have Python and pip installed).\n\n## Database\nTo get the database up and running with the latest migrations and so on just type:\n* `python manage.py syncdb`\n* `python manage.py makemigrations`\n* `python manage.py migrate`\n\nand then the database should be just fine.\n\n### Factories\nTo seed the database with some nice data run: `python manage.py shell`\nthen type: `from positioningservice.tests.factories import *` so all our factories get imported.\n\n#### Positions\nAfter import type: `PositionFactory()` and a position will be created.\n\n#### Events\nAfter import type: `EventFactory()` and a event will be created. If we want to have some tags related to that\nevent we need to do this instead:\n\n```\ntag1 = TagFactory()\ntag2 = TagFactory()\nEventFactory.create(tags=(tag1, tag2))\n```\n\n#### Tags\nAfter import type: `TagFactory()` and a tag will be created.\n\n## Run it\n\nlocate to `path/to/toerh/` then just run Python's built-in server using the command: `python manage.py runserver` and the application will be served at `http://localhost:8000/`\n\n# Using the API\nFirst of you need to register an account. After that sign in and create a new token.\n\nAfter successfully set up your account and your token you can make requests as follows:\n\n``curl -X GET http://127.0.0.1:8000/api/v1/positions/ -H 'Authorization: Token 9944b09199c62bcf9418ad846dd0e4bbdfc6ee4b'``\n\n# Admin\n\nThe admin interface is located at: `http://localhost:8000/admin/`, login with user created when `python manage.py syncdb` (superuser) was run.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrager%2Ftoerh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdrager%2Ftoerh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrager%2Ftoerh/lists"}