{"id":15091347,"url":"https://github.com/inagoesit/products-api","last_synced_at":"2026-02-20T01:31:33.615Z","repository":{"id":213074147,"uuid":"732959869","full_name":"InagoesIT/Products-API","owner":"InagoesIT","description":"A products API using ASP.NET Web APIs. For testing I used xUnit and Fluent Assertions.","archived":false,"fork":false,"pushed_at":"2024-01-23T10:59:14.000Z","size":53,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-23T18:05:33.576Z","etag":null,"topics":["api","asp-net-core-web-api","backend-api","csharp","dotnet","fluentassertions","openapi-specification","xunit"],"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/InagoesIT.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":"2023-12-18T08:52:09.000Z","updated_at":"2024-01-22T13:09:22.000Z","dependencies_parsed_at":"2024-09-19T18:30:41.309Z","dependency_job_id":"5fcca55a-aad2-4961-801d-7ac7b1c02c1c","html_url":"https://github.com/InagoesIT/Products-API","commit_stats":null,"previous_names":["inagoesit/products-api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/InagoesIT/Products-API","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InagoesIT%2FProducts-API","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InagoesIT%2FProducts-API/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InagoesIT%2FProducts-API/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InagoesIT%2FProducts-API/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/InagoesIT","download_url":"https://codeload.github.com/InagoesIT/Products-API/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InagoesIT%2FProducts-API/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261528653,"owners_count":23172749,"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":["api","asp-net-core-web-api","backend-api","csharp","dotnet","fluentassertions","openapi-specification","xunit"],"created_at":"2024-09-25T10:40:32.214Z","updated_at":"2025-10-17T21:34:11.674Z","avatar_url":"https://github.com/InagoesIT.png","language":"C#","readme":"# Products API\n\n## Overview\n\nThis project is a simple RESTful API for managing products, implemented using ASP.NET Web APIs. The task was provided by ChatGPT, and the requirements are outlined below.\n\n## Task Requirements\n\n1. **CRUD Operations using Repositories:**\n\n   - `READ` all products.\n   - `CREATE` a single product.\n   - `READ` a product by id.\n   - `UPDATE` an existing product by id.\n   - `DELETE` a product by id.\n\n2. **Implement Endpoints:**\n\n   - `GET /api/products`: Retrieve a list of products (using a hardcoded list for simplicity).\n   - `POST /api/products`: Add a new product to the list.\n   - `GET /api/products/{id}`: Retrieve a product by id.\n   - `PUT /api/products/{id}`: Update a product by id.\n   - `DELETE /api/products/{id}`: Delete a product by id.\n\n3. **Data Validation:**\n\n   - Ensure that the product model has required fields (e.g., name, price).\n   - Validate input data to handle common errors gracefully.\n\n4. **Error Handling:**\n\n   - Handle exceptions appropriately.\n   - Return meaningful error messages in the API responses.\n\n5. **Authentication: (will be added latter)**\n\n   - Allow only authenticated users to perform POST, PUT, and DELETE operations.\n   - Use a simple username/password approach for authentication.\n\n6. **Dependency Injection:**\n   - Organize your code using dependency injection for services and controllers.\n\n## Getting Started...\n\nFollow these steps to set up and run the project locally.\n\n### Prerequisites\n\n- [.NET SDK](https://dotnet.microsoft.com/download) installed.\n\n### Installation\n\n1. Clone the repository:\n   ```bash\n   git clone https://github.com/InaGoesIT/Products-API.git\n   ```\n\n### Usage\n\n- **To view the documentation that I wrote during and before coding**\n  1. Open [Swagger Online Editor](https://editor.swagger.io/)\n  2. Copy the swagger.yaml file contents from the main directory or from the github repository\n  3. Paste the file contents into the editor\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finagoesit%2Fproducts-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finagoesit%2Fproducts-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finagoesit%2Fproducts-api/lists"}