{"id":22859913,"url":"https://github.com/harmim/kiwi-sorting","last_synced_at":"2025-08-02T08:09:10.828Z","repository":{"id":209161558,"uuid":"715726391","full_name":"harmim/kiwi-sorting","owner":"harmim","description":"Kiwi.com - Itineraries Sorting","archived":false,"fork":false,"pushed_at":"2023-11-10T00:13:47.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-31T08:23:42.564Z","etag":null,"topics":["kiwi","python3","rest-api"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":false,"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/harmim.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}},"created_at":"2023-11-07T17:56:04.000Z","updated_at":"2023-11-25T12:40:01.000Z","dependencies_parsed_at":"2023-11-25T14:44:37.363Z","dependency_job_id":null,"html_url":"https://github.com/harmim/kiwi-sorting","commit_stats":null,"previous_names":["harmim/kiwi-sorting"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/harmim/kiwi-sorting","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harmim%2Fkiwi-sorting","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harmim%2Fkiwi-sorting/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harmim%2Fkiwi-sorting/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harmim%2Fkiwi-sorting/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/harmim","download_url":"https://codeload.github.com/harmim/kiwi-sorting/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harmim%2Fkiwi-sorting/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268351540,"owners_count":24236427,"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","status":"online","status_checked_at":"2025-08-02T02:00:12.353Z","response_time":74,"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":["kiwi","python3","rest-api"],"created_at":"2024-12-13T09:08:25.474Z","updated_at":"2025-08-02T08:09:10.794Z","avatar_url":"https://github.com/harmim.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Kiwi.com - Itineraries Sorting\n\nA REST API for sorting a given list of travel itineraries using various sorting\ncriteria. See the [task](https://github.com/mcyprian/itineraries_sorting_task).\n\nIt is implemented in [Python 3](https://www.python.org) using the\n[Flask framework](https://flask.palletsprojects.com).\n\n_The application runs in a Docker container. Thus,\n[Docker](https://www.docker.com) needs to be installed._\n\n## Usage\n\nThe application can be started using `make` (or `make run`). A web-server runs\ninside a Docker container. The sorting end-point is accessible through\n`/sort_itineraries`. The port `5000` is mapped from the container to a local\nhost. Therefore, the application may be accessed via\nhttp://localhost:5000/sort_itineraries.\n\nBelow is an example how to make a `POST` sorting request, e.g., using `curl`:\n```bash\ncurl --location 'http://localhost:5000/sort_itineraries' \\\n  --header 'Content-Type: application/json' \\\n  --data '{\n    \"sorting_type\": \"cheapest\",\n    \"itineraries\": [\n      {\n        \"id\": \"sunny_beach_bliss\",\n        \"duration_minutes\": 330,\n        \"price\": {\n          \"amount\": 90,\n          \"currency\": \"EUR\"\n        }\n      },\n      {\n        \"id\": \"rocky_mountain_adventure\",\n        \"duration_minutes\": 140,\n        \"price\": {\n          \"amount\": 830,\n          \"currency\": \"EUR\"\n        }\n      },\n      {\n        \"id\": \"urban_heritage_odyssey\",\n        \"duration_minutes\": 275,\n        \"price\": {\n          \"amount\": 620,\n          \"currency\": \"CZK\"\n        }\n      }\n    ]\n  }'\n```\n\n## Tests\n\n[Pytest](https://docs.pytest.org) is used for testing the application. Tests\nare located in [src/tests/](src/tests/). They can be executed using\n`make tests`.\n\nAll tests are run automatically via GitHub Actions, see\n[`tests.yml`](.github/workflows/tests.yml).\n\n## Documentation\n\nThe documentation is generated using [Sphinx](https://www.sphinx-doc.org). It\ncan be generated using `make doc`. This will generate the documentation into\nthe `docs/_build/` directory in the HTML format. Open\n`docs/_build/html/index.html`.\n\nTesting of the generation of the documentation is done via GitHub Actions,\nsee [`doc.yml`](.github/workflows/doc.yml).\n\n## Author: Dominik Harmim \u003charmim6@gmail.com\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharmim%2Fkiwi-sorting","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fharmim%2Fkiwi-sorting","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharmim%2Fkiwi-sorting/lists"}