{"id":22736581,"url":"https://github.com/fredwangwang/testing-service","last_synced_at":"2025-06-27T23:05:13.468Z","repository":{"id":129385566,"uuid":"355687804","full_name":"fredwangwang/testing-service","owner":"fredwangwang","description":"A Micro service useful for testing","archived":false,"fork":false,"pushed_at":"2021-09-28T14:05:35.000Z","size":42,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-30T02:44:05.944Z","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/fredwangwang.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":"2021-04-07T21:34:17.000Z","updated_at":"2021-09-28T14:05:39.000Z","dependencies_parsed_at":"2023-05-16T04:45:47.909Z","dependency_job_id":null,"html_url":"https://github.com/fredwangwang/testing-service","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fredwangwang/testing-service","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fredwangwang%2Ftesting-service","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fredwangwang%2Ftesting-service/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fredwangwang%2Ftesting-service/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fredwangwang%2Ftesting-service/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fredwangwang","download_url":"https://codeload.github.com/fredwangwang/testing-service/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fredwangwang%2Ftesting-service/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262347474,"owners_count":23296894,"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-12-10T21:27:48.271Z","updated_at":"2025-06-27T23:05:13.260Z","avatar_url":"https://github.com/fredwangwang.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# testing-service\nA Micro service useful for testing, docker: https://hub.docker.com/r/fredwanghuan/testing-service\n\n\n## Endpoints\n\n### /\nroot path, indicates it is running\n\n```\ncurl localhost:8000\nif you see this page, at least something is working\n```\n\n### /v0/hc\n\n#### GET\nreturns hc status code, default `200`\n\n```\ncurl localhost:8000/v0/hc\nthis is the hc response with status code: 200\n```\n\n#### POST\nset hc status code\n\n```\ncurl -X POST 'localhost:8000/v0/hc?status=500'\nhc status code set to: 500\n```\n\n### /v0/fib\ncalculate fib sequence the slow way\n\n```\ntime curl localhost:8000/v0/fib/45\n1134903170\ncurl localhost:8000/v0/fib/45  0.00s user 0.00s system 0% cpu 6.506 total\n```\n\n### /v0/control\ncontrol what to do\n\n```\ntime curl 'localhost:8000/v0/control?response_code=233\u0026response_body=helloworld\u0026response_delay=2s'\nhelloworld\ncurl   0.00s user 0.00s system 0% cpu 2.009 total\n```\n\n### /v0/reflect\nprints what its given\n\n```\ncurl localhost:8000/v0/reflect/hello\nMethod:\nGET\n\nHeaders:\nUser-Agent: []string{\"curl/7.68.0\"}\nAccept: []string{\"*/*\"}\n\nPath:\n/v0/reflect/hello\n\nQuery Params:\n\nBody:\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffredwangwang%2Ftesting-service","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffredwangwang%2Ftesting-service","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffredwangwang%2Ftesting-service/lists"}