{"id":18029067,"url":"https://github.com/fgvn/codebrdg_tt","last_synced_at":"2026-01-27T15:32:00.493Z","repository":{"id":260100838,"uuid":"879806619","full_name":"FGVN/CodeBRDG_TT","owner":"FGVN","description":"This .NET API provides endpoints for adding and retrieving data,","archived":false,"fork":false,"pushed_at":"2024-10-29T18:36:42.000Z","size":37,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-05T19:51:16.831Z","etag":null,"topics":["api-rest","cqrs","dotnet","mssql","repository","unit-testing","unitofwork"],"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/FGVN.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":"2024-10-28T15:24:00.000Z","updated_at":"2024-10-29T18:36:46.000Z","dependencies_parsed_at":"2024-12-18T00:41:41.412Z","dependency_job_id":"b0a2fc85-194e-44a9-a4db-3d5a4f16ae27","html_url":"https://github.com/FGVN/CodeBRDG_TT","commit_stats":{"total_commits":6,"total_committers":2,"mean_commits":3.0,"dds":"0.16666666666666663","last_synced_commit":"9c8a55f1c0726ed86c728cdb6ce3b011b97205bb"},"previous_names":["fgvn/codebrdg_tt"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/FGVN/CodeBRDG_TT","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FGVN%2FCodeBRDG_TT","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FGVN%2FCodeBRDG_TT/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FGVN%2FCodeBRDG_TT/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FGVN%2FCodeBRDG_TT/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FGVN","download_url":"https://codeload.github.com/FGVN/CodeBRDG_TT/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FGVN%2FCodeBRDG_TT/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270945167,"owners_count":24672873,"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-08-18T02:00:08.743Z","response_time":89,"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":["api-rest","cqrs","dotnet","mssql","repository","unit-testing","unitofwork"],"created_at":"2024-10-30T09:07:40.885Z","updated_at":"2026-01-27T15:32:00.467Z","avatar_url":"https://github.com/FGVN.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CodeBRDG_TT\nThis .NET API provides endpoints for adding and retrieving data, allowing users to manage and view records efficiently in a structured database environment\n## Requirements\n- .NET 8 SDK \n- MS SQL Server \n## Installation\n```bash\ngit clone https://github.com/FGVN/CodeBRDG_TT\ncd CodeBRDG_TT\ncd CodeBRDG_TT\n```\nIf you don`t have the MsSQL database runnning - start it\nSet your connection string in the appsettings.json here:\n```json\n{\n...\n  \"ConnectionStrings\": {\n    \"DefaultConnection\": \"Data Source=localhost;Initial Catalog=MessengerDb;User Id=USERNAME_HERE;Password=PASSWORD_HERE;Persist Security Info=True;Pooling=False;Multiple Active Result Sets=False;Connect Timeout=60;Encrypt=True;Trust Server Certificate=True;Command Timeout=0;MultipleActiveResultSets=true\"\n  },\n...\n}\n```\nThen run the following command to apply migration\n```\ndotnet ef database update\n```\nAfter that, you can simply start the application\n```\ndotnet run\n```\nAdditionally, you can set the rate limiter yourself\n```json\n{\n ...\n  \"RateLimiting\": {\n    \"PermitLimit\": 10,\n    \"WindowInSeconds\": 1\n  },\n ...\n}\n```\n## Endpoints\n### Ping - GET\nUse it to check whether or not the application is running\n```\n/ping\n```\n#### Response\n200 OK: Returns the string \"Dogshouseservice.Version1.0.1\".\n### Dog - POST\nUse this endpoint to register a new dog in the database.\n```\n/dog\n```\n#### Request body\n```\n{\n  \"name\" : \"string\",\n  \"color\" : \"string\",\n  \"tail_length\" : (number \u003e= 0),\n  \"weight\" : (number \u003e 0)\n}\n```\n#### Response\n201 Created: Returns the registered dog details on success.\n\n400 Bad Request: If the registration fails, returns an error message\n\n### Dogs - GET\nUse this endpoint to get data about existing dogs.\n```\n/dogs\n```\n#### Request body\n```\n{\n  \"attribute\": \"name of the attribute to sort by (e.g., 'name', 'age')\", // Optional\n  \"order\": \"asc or desc for sorting order\", // Optional\n  \"pageNumber\": 1, // Page number for pagination (must be \u003e= 1), optional\n  \"pageSize\": 10 // Number of records per page (must be \u003e 0), optional\n}\n```\n#### Response\n200 OK: Returns a paginated list of dog records sorted according to the specified attribute and order.\n\n400 Bad Request: Returns an error message if the request body contains invalid values or if there are issues with pagination parameters.\n\n## Tests\nTo run test simply change directory to the test project (CodeBRDG_TT.Tests) and run\n```\ndotnet test\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffgvn%2Fcodebrdg_tt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffgvn%2Fcodebrdg_tt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffgvn%2Fcodebrdg_tt/lists"}