{"id":19009592,"url":"https://github.com/ra1nz0r/cafe_list_with_testify","last_synced_at":"2026-06-21T02:31:29.851Z","repository":{"id":245590142,"uuid":"818684615","full_name":"Ra1nz0r/cafe_list_with_testify","owner":"Ra1nz0r","description":"Возвращает список кафе из указанного города по запросу, с указанием количества. ","archived":false,"fork":false,"pushed_at":"2024-06-22T16:14:13.000Z","size":70,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-19T11:51:21.699Z","etag":null,"topics":["cicd","go","golang","map","rest-api","server","unit-testing"],"latest_commit_sha":null,"homepage":"","language":"Go","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/Ra1nz0r.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-22T14:55:18.000Z","updated_at":"2024-07-16T07:00:21.000Z","dependencies_parsed_at":"2024-06-22T23:22:02.434Z","dependency_job_id":"98c4c206-b041-4376-83bc-b5f8774efb8f","html_url":"https://github.com/Ra1nz0r/cafe_list_with_testify","commit_stats":null,"previous_names":["ra1nz0r/cafe_list_with_testify"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/Ra1nz0r/cafe_list_with_testify","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ra1nz0r%2Fcafe_list_with_testify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ra1nz0r%2Fcafe_list_with_testify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ra1nz0r%2Fcafe_list_with_testify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ra1nz0r%2Fcafe_list_with_testify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Ra1nz0r","download_url":"https://codeload.github.com/Ra1nz0r/cafe_list_with_testify/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ra1nz0r%2Fcafe_list_with_testify/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34592050,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-21T02:00:05.568Z","response_time":54,"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":["cicd","go","golang","map","rest-api","server","unit-testing"],"created_at":"2024-11-08T19:08:20.978Z","updated_at":"2026-06-21T02:31:29.835Z","avatar_url":"https://github.com/Ra1nz0r.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e \u003ch1 align=\"center\"\u003e Список кафе по городу. \u003c/h1\u003e \u003c/div\u003e\r\n\r\n__Сервис возвращает список кафе из указанного города по запросу, с указанием количества. Если какие-то параметры указаны некорректно (нет такого города, неправильно указано количество), обработчик вернёт ошибку.__\r\n\r\n- __Сервер будет ожидать обращение по пути ```/cafe```. C параметрами ```Get```:__\r\n    - ```count``` - количество кафе, которые нужно вернуть.\r\n    - ```city``` - город, в котором нужно найти кафе.\r\n\r\n\u003c/div\u003e\r\n\r\n- __Реализовано три теста:__\r\n    - [x] Запрос корректный, возвращается код 200 и тело ответа не пустое.\r\n    - [x] Город не поддерживается. Сервис возвращает код 400 и ошибку. \r\n    - [x] Если количество больше, чем есть всего, должны вернуться все доступные кафе.\r\n***\r\n#### Инструкция по локальному запуску:\r\n\r\nЗапуск производится по-умолчанию: ```go run ./...```\\\r\nПо-умолчанию приложение запускается: ```0.0.0.0:8080```\\\r\nТесты выполняются по-умолчанию: ```go test -v ./... -count=1```\\\r\nДанные передаются и добавляются в файле ```internal/globals/map_with_example.go```, формат ```map[string][]string```\r\n\r\n***\r\n#### Пример:\r\n\r\n![logo](/web/example.jpg)\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fra1nz0r%2Fcafe_list_with_testify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fra1nz0r%2Fcafe_list_with_testify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fra1nz0r%2Fcafe_list_with_testify/lists"}