{"id":20886142,"url":"https://github.com/double-em/restluent","last_synced_at":"2025-12-29T01:31:31.336Z","repository":{"id":68013158,"uuid":"472038473","full_name":"double-em/Restluent","owner":"double-em","description":"A Fluent client generator for Rest API's","archived":false,"fork":false,"pushed_at":"2024-07-09T21:31:38.000Z","size":17,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-19T11:14:20.035Z","etag":null,"topics":["fluent-api","fluent-interface","rest-api","restful-api"],"latest_commit_sha":null,"homepage":"","language":"C#","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/double-em.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}},"created_at":"2022-03-20T16:34:45.000Z","updated_at":"2022-03-20T16:44:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"dccaea1e-f05c-432c-b589-9dcde9138d54","html_url":"https://github.com/double-em/Restluent","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/double-em%2FRestluent","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/double-em%2FRestluent/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/double-em%2FRestluent/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/double-em%2FRestluent/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/double-em","download_url":"https://codeload.github.com/double-em/Restluent/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243268085,"owners_count":20263803,"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":["fluent-api","fluent-interface","rest-api","restful-api"],"created_at":"2024-11-18T08:15:54.181Z","updated_at":"2025-12-29T01:31:31.305Z","avatar_url":"https://github.com/double-em.png","language":"C#","readme":"# Restluent (Work in progress)\nRestluent is supposed to be a Fluent Api Client generator.  \nThe only thing needed is an OpenAPI Standard Schema eg. from Swagger.\n\n## Todo (Proof of Concept):\n- [x] Example API\n- [x] Open API Component parsing from a Json file\n- [x] SourceGenerated classes from parsed components\n- [x] Fluent Api builder\n- [ ] Couple the Api Client with the generated classes\n- [ ] HttpClient request handling\n- [ ] Unit Tests\n\n## Concept\n\n### Schema Example\nIf given a schema with the following components:\n```json\n\"components\": {\n    \"schemas\": {\n        \"WeatherForecast\": {\n            \"type\": \"object\",\n            \"properties\": {\n                \"date\": {\n                    \"type\": \"string\",\n                    \"format\": \"date-time\"\n                },\n                \"temperatureC\": {\n                    \"type\": \"integer\",\n                    \"format\": \"int32\"\n                },\n                \"temperatureF\": {\n                    \"type\": \"integer\",\n                    \"format\": \"int32\",\n                    \"readOnly\": true\n                },\n                \"summary\": {\n                    \"type\": \"string\",\n                    \"nullable\": true\n                }\n            },\n            \"additionalProperties\": false\n        }\n    }\n}\n```\n  \n### Generated Example\nThere should be generated a class as:\n```csharp\n// Auto-generated code\nusing System;\n\nnamespace Restluent\n{\n    public class WeatherForecast\n    {\n        public string date { get; set; }\n        public int temperatureC { get; set; }\n        public int temperatureF { get; set; }\n        public string summary { get; set; }\n    }\n}\n\n```\n\n### Usage Example\nWith a generated class like:\n```csharp\npublic class Customer\n{\n    public Guid Id { get; set; }\n\n    public string Name { get; set; } = null!;\n    \n    public bool WithCompanies { get; set; }\n}\n```\n\nThen the usage should be:\n```csharp\nvar customer = RestluentApi.Customers()\n    .Where(c =\u003e c.Name == \"tester\")\n    .WithCompanies();\n\nvar newCustomer = RestluentApi.Customers()\n    .Add(new CustomerVariables\n    {\n        Name = \"Test\"\n    });\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdouble-em%2Frestluent","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdouble-em%2Frestluent","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdouble-em%2Frestluent/lists"}