{"id":15817371,"url":"https://github.com/nikoksr/notify-http-test","last_synced_at":"2025-08-01T06:41:09.154Z","repository":{"id":108050892,"uuid":"534138055","full_name":"nikoksr/notify-http-test","owner":"nikoksr","description":"Tiny HTTP server to test Notify's generic http service.","archived":false,"fork":false,"pushed_at":"2024-04-12T03:25:31.000Z","size":3,"stargazers_count":0,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-10-06T05:41:19.513Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/nikoksr.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":"2022-09-08T09:21:07.000Z","updated_at":"2022-09-08T09:21:36.000Z","dependencies_parsed_at":"2024-06-20T23:16:52.529Z","dependency_job_id":null,"html_url":"https://github.com/nikoksr/notify-http-test","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikoksr%2Fnotify-http-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikoksr%2Fnotify-http-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikoksr%2Fnotify-http-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikoksr%2Fnotify-http-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nikoksr","download_url":"https://codeload.github.com/nikoksr/notify-http-test/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246586048,"owners_count":20801026,"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":[],"created_at":"2024-10-05T05:41:18.756Z","updated_at":"2025-04-01T04:58:03.651Z","avatar_url":"https://github.com/nikoksr.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"### Description\n\nThis is a super basic HTTP server that offers a single POST endpoint at `/` and is intended to be used as a testing\nwebhook for Notify's coming generic http service.\n\n### Usage\n\nThe server will listen on `:8080` by default. You can change this by setting the `NOTIFY_TEST_ADDR` environment\nvariable. Now, you can send a POST request to the server and see the request body printed to the console.\n\n```bash\ngo run main.go\n```\n\n### Client examples\n\n\u003e Supported content types are `application/json`, `application/x-www-form-urlencoded` and `text/plain`. The following examples use curl for demonstration purposes, but of course the usage translates to Notify's generic http service.\n\n#### JSON\n\n```bash\ncurl http://localhost:8080 \\\n  -X POST \\\n  -H 'Content-Type: application/json' \\\n  -d '{\"subject\":\"Test\", \"message\":\"Hello, world!\"}'\n```\n\n#### Form\n\n```bash\ncurl http://localhost:8080 \\\n  -X POST \\\n  -H 'Content-Type: application/x-www-form-urlencoded' \\\n  -d 'subject=Test\u0026message=Hello, world!'\n```\n\n#### Plain text\n\n```bash\ncurl http://localhost:8080 \\\n  -X POST \\\n  -H 'Content-Type: text/plain' \\\n  -d 'Test - Hello, world!'\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikoksr%2Fnotify-http-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnikoksr%2Fnotify-http-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikoksr%2Fnotify-http-test/lists"}