{"id":21307243,"url":"https://github.com/dotnetrussell/accio","last_synced_at":"2025-03-15T19:48:50.301Z","repository":{"id":116077009,"uuid":"189329705","full_name":"DotNetRussell/Accio","owner":"DotNetRussell","description":"Quickly summon a new web server ","archived":false,"fork":false,"pushed_at":"2022-02-25T22:16:43.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-22T09:12:21.611Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/DotNetRussell.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":"2019-05-30T02:15:07.000Z","updated_at":"2022-02-16T20:55:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"84fba41e-9e9c-426c-ba3b-06633ddb0de3","html_url":"https://github.com/DotNetRussell/Accio","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/DotNetRussell%2FAccio","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DotNetRussell%2FAccio/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DotNetRussell%2FAccio/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DotNetRussell%2FAccio/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DotNetRussell","download_url":"https://codeload.github.com/DotNetRussell/Accio/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243784103,"owners_count":20347409,"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-11-21T16:30:40.850Z","updated_at":"2025-03-15T19:48:50.280Z","avatar_url":"https://github.com/DotNetRussell.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Accio\nQuickly summon a new web server \n\nAccio can handle any request method type that you define as well as delays to simulate network latency. If you have wildcards in your url path for example `/myPath/has/ID/152/page/endpoint/111` where 152 and 111 are wildcard paths then you can replace them in the config with `{$}` for example `/myPath/has/ID/{$}/page/endpoint/{$}`\n\n\nAccio\u003c/br\u003e\nAuthor: Athony Russell\u003c/br\u003e\nTwitter: @DotNetRussell\u003c/br\u003e\nBlog: https://DotNetRussell.com\u003c/br\u003e\nGitHub: https://github.com/DotNetRussell\u003c/br\u003e\n\u003c/br\u003e\nTo Use:\u003c/br\u003e\n\u003c/br\u003e\npython accio.py [config file path] [target localhost port] [calling port (For CORS)]\u003c/br\u003e\n\u003c/br\u003e\nExample:\u003c/br\u003e\n\u003c/br\u003e\npython accio.py /home/user/Desktop/accioConfig.json 8080 4200\u003c/br\u003e\n\u003c/br\u003e\nExample Output:\u003c/br\u003e\n\u003c/br\u003e\nAccio --% ~~~~ @X@ Server Active @X@\u003c/br\u003e\nServer Listening On Port 8080\u003c/br\u003e\nPress CTRL+C to stop the server\n\u003cbr/\u003e\n\u003cbr/\u003e\nExample Config:\u003c/br\u003e\n```\n{\n        \"routes\" : [\n                {\n                        \"url\" : \"/endpoint1\",\n                        \"definition\" : {\n                                \"filePath\" : \"./examples/endpoint1.json\",\n                                \"method\" : \"GET\",\n                                \"delay\" : 5\n                        }\n                },\n                {\n                        \"url\" : \"/endpoint1\",\n                        \"definition\" : {\n                                \"filePath\" : \"./examples/endpoint1_post.json\",\n                                \"method\" : \"POST\",\n                                \"delay\" : 2\n                        }\n                },\n                {\n                        \"url\" : \"/endpoint2\",\n                        \"definition\" : {\n                                \"filePath\" : \"./examples/endpoint2.json\"\n\n                        }\n                },\n                {\n                        \"url\" : \"/endpointWithWildCard/{$}/somethingElse/{$}\",\n                        \"definition\" : {\n                                \"filePath\" : \"./examples/wildCard.json\"\n\n                        }\n                }\n\n        ]\n\n}\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdotnetrussell%2Faccio","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdotnetrussell%2Faccio","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdotnetrussell%2Faccio/lists"}