{"id":20016609,"url":"https://github.com/r3code/fake-take","last_synced_at":"2026-04-21T10:03:54.087Z","repository":{"id":150686043,"uuid":"170326368","full_name":"r3code/fake-take","owner":"r3code","description":"Simple REST API read only server to test Single Page Application","archived":false,"fork":false,"pushed_at":"2019-08-09T11:16:36.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2023-04-04T11:52:50.091Z","etag":null,"topics":["go","golang","http-api-testing","http-server","rest-api","simple","vuejs"],"latest_commit_sha":null,"homepage":null,"language":"Go","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/r3code.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-02-12T13:51:42.000Z","updated_at":"2024-06-19T11:11:47.902Z","dependencies_parsed_at":"2023-04-10T01:31:18.631Z","dependency_job_id":null,"html_url":"https://github.com/r3code/fake-take","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"purl":"pkg:github/r3code/fake-take","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r3code%2Ffake-take","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r3code%2Ffake-take/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r3code%2Ffake-take/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r3code%2Ffake-take/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/r3code","download_url":"https://codeload.github.com/r3code/fake-take/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r3code%2Ffake-take/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279004174,"owners_count":26083688,"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","status":"online","status_checked_at":"2025-10-10T02:00:06.843Z","response_time":62,"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":["go","golang","http-api-testing","http-server","rest-api","simple","vuejs"],"created_at":"2024-11-13T08:12:08.737Z","updated_at":"2025-10-10T14:33:48.717Z","avatar_url":"https://github.com/r3code.png","language":"Go","readme":"# fake-take                                                  \n\n![Alt text](assets/fake-take-avatar.png?raw=true \"Fake Take Logo\")\nSimple HTTP API read only server to test Single Page Application\n\nSimulates HTTP API for testing Single Page Application, e.g. VueJs app. \nTypically a reply is a 'application/json' format but you can use anything you want by passing the '-contentType' param.  Allows only \"GET\" requests. \n\n## Setup\n\nAPI root path by default '/api/v1.0/'  to set another root path use '-apiroot' param and set any prefix you want.\n\n### Adding paths and response bodies\n\nCreate a file with a *.resp extension. Name it follow the rule below.\nAny part of the name separated by one underscore '_' treated as url part before the slash '/'.\nExample:\nevents_recent.resp will be transalted to /api/v1.0/events/recent    \n\n_No query params supported!_\n\nYou can crate as many '*.resp' files as you want.\nNew files can be added during server work, no need to restart.\nYou can even change the contents in '*.resp' file - server always reads the file at request time.\n\nError 404 reported if '*.resp' file not exists.  \n\n## Usage \n\nTo see usage notes use `-help` flag.\n\nYou can set:\n* -addr string - to which IP bind the server (default `localhost`), to bind all interfaces place empty value `\"\"`\n* -apiroot string - relative to the server root path (default `/api/v1`)\n* -contentType string - content type for response (default \"application/json\")\n* -ext string - extension for data files (default \"resp\")\n* -port int  - server port to listen at (default 3000)\n \nCompile the app with `go install` or just run with `go run main.go`\n\nBy default server starts at `localhost:3000` and API available at `http://localhost:3000/api/v1`.\nRoot '/' path always redirects to apiRoot.\nAt api root `http://localhost:3000/api/v1` you can see clickable link list of available API paths.\n\nExample:                    \n\n    Available paths to GET:\n        /api/v1/events/history\n        /api/v1/events/recent\n\n\n\n## Dev env\n\nCompile with Go 1.9.x and https://github.com/gin-gonic/gin","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fr3code%2Ffake-take","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fr3code%2Ffake-take","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fr3code%2Ffake-take/lists"}