{"id":14969915,"url":"https://github.com/pruh/api","last_synced_at":"2026-05-20T20:12:38.996Z","repository":{"id":44383746,"uuid":"119573942","full_name":"pruh/api","owner":"pruh","description":"Simple Go REST API server in Go","archived":false,"fork":false,"pushed_at":"2026-05-20T04:20:13.000Z","size":117,"stargazers_count":0,"open_issues_count":5,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-05-20T06:13:15.195Z","etag":null,"topics":["dockerized","golang","mongodb","rest-api"],"latest_commit_sha":null,"homepage":"","language":"Go","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/pruh.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":"2018-01-30T18:03:34.000Z","updated_at":"2026-05-20T04:19:53.000Z","dependencies_parsed_at":"2023-12-24T07:50:05.552Z","dependency_job_id":"01783b43-05f7-46e4-a1a0-896267e66fe8","html_url":"https://github.com/pruh/api","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/pruh/api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pruh%2Fapi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pruh%2Fapi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pruh%2Fapi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pruh%2Fapi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pruh","download_url":"https://codeload.github.com/pruh/api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pruh%2Fapi/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33273792,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-20T15:12:43.734Z","status":"ssl_error","status_checked_at":"2026-05-20T15:12:42.300Z","response_time":356,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["dockerized","golang","mongodb","rest-api"],"created_at":"2024-09-24T13:42:40.772Z","updated_at":"2026-05-20T20:12:38.990Z","avatar_url":"https://github.com/pruh.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# api\n![Build](https://github.com/pruh/api/actions/workflows/test_and_start.yml/badge.svg)\n[![CodeCov](https://codecov.io/gh/pruh/api/branch/master/graph/badge.svg)](https://codecov.io/gh/pruh/api)\n[![GoDoc](https://godoc.org/github.com/pruh/api?status.svg)](http://godoc.org/github.com/pruh/api)\n\nREST API server written in Go. Supports basic HTTP auth.\n\n## Usage\n\n* Rename api.env.template to api.env and add correct its contents, such as Telegram BOT token, basic auth credential, etc.\n* Run `docker-compose up -d` to start the server\n\n## api.env\n\nSimple key-value file which will be used by docker to set container environment variables.\n\n* `PORT` mandatory port to use for service.\n\n* `TELEGRAM_BOT_TOKEN` mandatory telegram bot token.\n\n* `TELEGRAM_DEFAULT_CHAT_ID` default telegram chat ID, which will receive messages from the bot. This parameter is optinal.\n\n* `API_V1_CREDS` username/password pairs in JSON format of users who are allowed to access API: `{\"username1\":\"password1\", \"username2\":\"password2\"}`. This parameter is optional.\n\n## List of API methods\n\n### Messages:\n\nAPI to send messages.\n\n* `/api/v1/telegram/messages/send` POST method which passes message to telegram. It accepts JSON in the following format:\n\n  ```json\n  {\n      \"message\": \"message to send\",\n      \"chat_id\": 1234567890,\n      \"silent\": true\n  }\n  ```\n\n  where `chat_id` is telegram chat id and `silent` is a flag indicating if message should be sent silently\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpruh%2Fapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpruh%2Fapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpruh%2Fapi/lists"}