{"id":28509986,"url":"https://github.com/rflechner/tinyrest","last_synced_at":"2025-07-03T01:31:18.405Z","repository":{"id":77338973,"uuid":"38112951","full_name":"rflechner/TinyRest","owner":"rflechner","description":"A tiny FSharp and CSharp Rest server","archived":false,"fork":false,"pushed_at":"2016-06-23T08:34:31.000Z","size":3837,"stargazers_count":10,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-06-08T22:39:50.862Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://rflechner.github.io/TinyRest/","language":"F#","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/rflechner.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":"2015-06-26T13:35:34.000Z","updated_at":"2024-03-27T13:53:18.000Z","dependencies_parsed_at":"2023-06-16T12:15:35.013Z","dependency_job_id":null,"html_url":"https://github.com/rflechner/TinyRest","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rflechner/TinyRest","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rflechner%2FTinyRest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rflechner%2FTinyRest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rflechner%2FTinyRest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rflechner%2FTinyRest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rflechner","download_url":"https://codeload.github.com/rflechner/TinyRest/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rflechner%2FTinyRest/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263243615,"owners_count":23436336,"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":"2025-06-08T22:37:49.921Z","updated_at":"2025-07-03T01:31:18.386Z","avatar_url":"https://github.com/rflechner.png","language":"F#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TinyRest\nA tiny FSharp and CSharp Rest server written in F#\n\n## Install\n\nA nuget package exists hehe: https://www.nuget.org/packages/TinyRest/\n\n\tPM\u003e Install-Package TinyRest\n\n## Usage in FSharp\n\nThere an example of a simple file server here: \n  https://github.com/rflechner/TinyRest/blob/master/TinyRest/TinyRest/TinyRestServer-sample.fsx\n\n\n\n    let routes = [\n                GET (Path(\"/\")) \u003c| fun q r -\u003e text \"coucou\"\n                get \"/bye\" \u003c| fun q r -\u003e text \"bye bye\\n@++\"\n                getPattern \"/haha/(.*)\" \u003c| fun q r -\u003e text \"ha ha\"\n                GET (Path(\"/files\")) \u003c| listFiles\n                get \"/download\" \u003c| download\n             ]\n\n    let conf = { Schema=Http; Port=8009; BasePath=Some \"/TinyRest1\"; Routes=routes; }\n\tlisten conf\n\tConsole.Read () |\u003e ignore\n\n## Usage in CSharp\n\n    class Program\n    {\n        private static int count = 0;\n\n        private static void Main(string[] args)\n        {\n            TinyRestServerCSharp.TinyRest.Server()\n                .WithHttp()\n                .WithPort(8001)\n                .WithBasePath(\"/learning\")\n                .OnGetPath(\"/\", (request, response) =\u003e \"coucou \" + (count++))\n                .OnGetPath(\"/json\", (request, response) =\u003e response.Json(new\n                {\n                    Text = \"coucou \" + (count++)\n                }))\n                .Create()\n                .Listen();\n\n            Console.Read();\n        }\n\n    }\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frflechner%2Ftinyrest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frflechner%2Ftinyrest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frflechner%2Ftinyrest/lists"}