{"id":45709101,"url":"https://github.com/ztroop/echoserve","last_synced_at":"2026-03-01T04:25:05.586Z","repository":{"id":221233931,"uuid":"753387101","full_name":"ztroop/echoserve","owner":"ztroop","description":"Mock HTTP API Server","archived":false,"fork":false,"pushed_at":"2025-05-25T03:41:53.000Z","size":88,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-14T19:15:40.472Z","etag":null,"topics":["http-server","mocking","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/ztroop.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}},"created_at":"2024-02-06T02:32:13.000Z","updated_at":"2025-05-25T03:37:06.000Z","dependencies_parsed_at":"2024-02-09T03:21:53.984Z","dependency_job_id":"5cdd055d-5e42-47fc-a511-e409d52e240a","html_url":"https://github.com/ztroop/echoserve","commit_stats":null,"previous_names":["ztroop/echoserve"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/ztroop/echoserve","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ztroop%2Fechoserve","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ztroop%2Fechoserve/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ztroop%2Fechoserve/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ztroop%2Fechoserve/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ztroop","download_url":"https://codeload.github.com/ztroop/echoserve/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ztroop%2Fechoserve/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29808930,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-24T22:43:48.403Z","status":"online","status_checked_at":"2026-02-25T02:00:07.329Z","response_time":61,"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":["http-server","mocking","rust"],"created_at":"2026-02-25T02:03:53.907Z","updated_at":"2026-02-25T02:03:56.699Z","avatar_url":"https://github.com/ztroop.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# echoserve\n\n[![Build](https://github.com/ztroop/echoserve/actions/workflows/build.yml/badge.svg?branch=main)](https://github.com/ztroop/echoserve/actions/workflows/build.yml)\n\nEchoserve is a mock API server that serves configurable responses based on a YAML configuration file. It supports static responses as well as response sequences for endpoints.\n\n## Features\n- Serve mock endpoints with configurable method, path, status, headers, and payload.\n- Support for JSON, XML, HTML, and plain text responses.\n- Sequence feature: endpoints can return a series of different responses in order.\n- Simulated latency.\n\n## Usage\n\n```sh\ncargo run -- --config examples/config.yml\n```\n\n### Command-line Options\n- `-c, --config \u003cFILE\u003e`: Path to the YAML configuration file.\n- `-p, --port \u003cPORT\u003e`: Port to listen on (default: 8080).\n- `-a, --address \u003cADDR\u003e`: Address to bind to (default: 127.0.0.1).\n- `-l, --latency \u003cMS\u003e`: Simulated latency in milliseconds (default: 0).\n\n## Configuration File Format\n\nThe configuration file is a YAML file containing a list of endpoint definitions. Each endpoint can specify a static response or a sequence of responses.\n\n### Static Response Example\n```yaml\n- name: \"Example Endpoint 1\"\n  endpoint: \"/example1\"\n  method: \"GET\"\n  data:\n    format: \"xml\"\n    payload: |\n      \u003cexample\u003e\n        \u003cid\u003e12345\u003c/id\u003e\n        \u003cdescription\u003eData for the first example\u003c/description\u003e\n      \u003c/example\u003e\n  status: 200\n  headers:\n    Custom-Header: \"Value1\"\n```\n\n### Sequence Response Example\n```yaml\n- name: \"Sequence Example\"\n  endpoint: \"/sequence\"\n  method: \"GET\"\n  sequence:\n    - data:\n        format: \"json\"\n        payload:\n          message: \"First response\"\n      status: 200\n    - data:\n        format: \"json\"\n        payload:\n          message: \"Second response\"\n      status: 200\n    - data:\n        format: \"json\"\n        payload:\n          message: \"Final response\"\n      status: 404\n```\n\n- On each request to `/sequence`, the next response in the sequence is returned. After the last response, the final response is repeated for subsequent requests.\n\n### Not Found Example\n```yaml\n- name: \"Not Found Example\"\n  endpoint: \"/notfound\"\n  status: 404\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fztroop%2Fechoserve","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fztroop%2Fechoserve","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fztroop%2Fechoserve/lists"}