{"id":18623705,"url":"https://github.com/clifftech123/dotnet-7-crud-api","last_synced_at":"2025-11-03T18:30:28.893Z","repository":{"id":219589279,"uuid":"652063636","full_name":"Clifftech123/dotnet-7-crud-api","owner":"Clifftech123","description":" dotnet-7-crud-api","archived":false,"fork":false,"pushed_at":"2024-01-28T14:23:42.000Z","size":93,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-27T05:25:11.091Z","etag":null,"topics":[],"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/Clifftech123.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-06-11T01:02:54.000Z","updated_at":"2024-01-28T14:18:47.000Z","dependencies_parsed_at":null,"dependency_job_id":"3f1626b1-f9b8-40b1-8d20-dd905b3b0cdb","html_url":"https://github.com/Clifftech123/dotnet-7-crud-api","commit_stats":null,"previous_names":["clifftech123/dotnet-7-crud-api"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Clifftech123%2Fdotnet-7-crud-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Clifftech123%2Fdotnet-7-crud-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Clifftech123%2Fdotnet-7-crud-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Clifftech123%2Fdotnet-7-crud-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Clifftech123","download_url":"https://codeload.github.com/Clifftech123/dotnet-7-crud-api/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239418575,"owners_count":19635208,"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":"2024-11-07T04:25:42.430Z","updated_at":"2025-11-03T18:30:28.864Z","avatar_url":"https://github.com/Clifftech123.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# .NET 7 CRUD API\n\nWelcome to the dotnet-7-crud-api, a robust .NET Core 7 CRUD (Create, Read, Update, Delete) API designed to efficiently manage users within a database.\n\n\n\u003c!-- Addiing the over view image here for users  --\u003e\n\n![image](/asstes//imageone.png)\n\n## Overview\n\nThis API leverages modern technologies such as dotnet, C#, Entity Framework, SQL Server, BCrypt, AutoMapper, and Swashbuckle to offer seamless user management functionalities.\n\n## Features\n\n- **Get All Users**: Retrieve a comprehensive list of all users stored in the database.\n- **Get User by GUID**: Fetch a specific user based on their globally unique identifier (GUID).\n- **Create User**: Add a new user entry to the database.\n- **Update User**: Modify the details of an existing user using their GUID.\n- **Delete User**: Permanently remove a user from the database using their GUID.\n\n## API Endpoints\n\n### POST /users\n\nCreate a new user.\n\n**URL:** `http://localhost:4000/users`\n\n**Request Body:**\n\n```json\n{\n    \"title\": \"Mrs\",\n    \"firstName\": \"Isaiah Clifford\",\n    \"lastName\": \"Opoku\",\n    \"role\": \"User\",\n    \"email\": \"Cliffiordg@gmail.com\",\n    \"password\": \"clifford\",\n    \"confirmPassword\": \"clifford\"\n}\n```\n\n### GET /users\n\nRetrieve all users.\n\n**URL:** `http://localhost:4000/users`\n\n**Response Body:**\n\n```json\n{\n  \"message\": \"Successfully retrieved all users\",\n  \"data\": [\n    {\n      \"guid\": \"c825bf7d-f2f9-4f76-924b-08dc2005ac18\",\n      \"title\": \"Mr\",\n      \"firstName\": \"George\",\n      \"lastName\": \"Costanza\",\n      \"email\": \"loveg@gmail.com\",\n      \"role\": \"User\"\n    },\n    {\n      \"guid\": \"c985783d-fcda-4c2f-924c-08dc2005ac18\",\n      \"title\": \"Mrs\",\n      \"firstName\": \"Isaiah Clifford\",\n      \"lastName\": \"Opoku\",\n      \"email\": \"Cliffiordg@gmail.com\",\n      \"role\": \"User\"\n    }\n  ]\n}\n```\n\n### GET /users/{id}\n\nRetrieve user by ID.\n\n**URL:** `http://localhost:4000/users/c825bf7d-f2f9-4f76-924b-08dc2005ac18`\n\n**Response Body:**\n\n```json\n{\n  \"message\": \"Successfully retrieved user with id c825bf7d-f2f9-4f76-924b-08dc2005ac18\",\n  \"data\": {\n    \"guid\": \"c825bf7d-f2f9-4f76-924b-08dc2005ac18\",\n    \"title\": \"Mr\",\n    \"firstName\": \"George\",\n    \"lastName\": \"Costanza\",\n    \"email\": \"loveg@gmail.com\",\n    \"role\": \"User\"\n  }\n}\n```\n\n### PUT /users/{id}\n\nUpdate user details.\n\n**URL:** `http://localhost:4000/users/c985783d-fcda-4c2f-924c-08dc2005ac18`\n\n**Request Body:**\n\n```json\n{\n    \"title\": \"Mrs\",\n    \"firstName\": \"Isaiah Clifford\",\n    \"lastName\": \"Opoku\",\n    \"role\": \"User\",\n    \"email\": \"Cliffiordg@gmail.com\",\n    \"password\": \"clifford\",\n    \"confirmPassword\": \"clifford\"\n}\n```\n\n### DELETE /users/{id}\n\nDelete user by ID.\n\n**URL:** `http://localhost:4000/users/3634a5e5-5add-4198-55f6-08dc200a693d`\n\n**Response Body:**\n\n```json\n{\n  \"message\": \"User with id 3634a5e5-5add-4198-55f6-08dc200a693d successfully deleted\"\n}\n```\n\n## Usage\n\nInteract with the API by sending HTTP requests to the respective endpoints. Use the GUID as the unique identifier for user-related operations.\n\n## Setup\n\nClone the repository and run the application in your local development environment. Ensure you have .NET Core 7 installed. Remember to update the connection string in the `appsettings.json` file with your SQL Server details.\n\n## Contribution\n\nContributions are encouraged! Please thoroughly test your changes before submitting a pull request.\n\n## License\n\nThis project is licensed under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclifftech123%2Fdotnet-7-crud-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fclifftech123%2Fdotnet-7-crud-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclifftech123%2Fdotnet-7-crud-api/lists"}