{"id":25625143,"url":"https://github.com/kemalkochekov/crud-api","last_synced_at":"2026-04-04T20:33:13.679Z","repository":{"id":211177877,"uuid":"728415482","full_name":"kemalkochekov/CRUD-API","owner":"kemalkochekov","description":"Go-Backend CRUD API for seamless data management.","archived":false,"fork":false,"pushed_at":"2023-12-18T09:31:56.000Z","size":90,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-08T03:28:26.347Z","etag":null,"topics":["api","crud-application","docker","docker-compose","go","golang","mocks","pgx","postgres","postman"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kemalkochekov.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null}},"created_at":"2023-12-06T22:27:53.000Z","updated_at":"2023-12-09T09:04:53.000Z","dependencies_parsed_at":"2025-06-08T03:18:44.304Z","dependency_job_id":null,"html_url":"https://github.com/kemalkochekov/CRUD-API","commit_stats":null,"previous_names":["kemalkochekov/crud-go-backend","kemalkochekov/crud-api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kemalkochekov/CRUD-API","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kemalkochekov%2FCRUD-API","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kemalkochekov%2FCRUD-API/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kemalkochekov%2FCRUD-API/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kemalkochekov%2FCRUD-API/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kemalkochekov","download_url":"https://codeload.github.com/kemalkochekov/CRUD-API/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kemalkochekov%2FCRUD-API/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31413269,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T20:09:54.854Z","status":"ssl_error","status_checked_at":"2026-04-04T20:09:44.350Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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","crud-application","docker","docker-compose","go","golang","mocks","pgx","postgres","postman"],"created_at":"2025-02-22T14:08:51.941Z","updated_at":"2026-04-04T20:33:13.659Z","avatar_url":"https://github.com/kemalkochekov.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CRUD API\n\nThis project implements a CRUD (Create, Read, Update, Delete) API server for database and the HTTP protocol server by using Go. \n\n## Table of Contents\n- [Features](#features)\n- [Prerequisites](#prerequisites)\n- [Installation](#installation)\n- [Usage](#usage)\n- [API Endpoints](#api-endpoints)\n  - [Get](#get)\n  - [Create](#create)\n  - [Delete](#delete)\n  - [Update](#update)\n  - [Api Documentation](#api-documentation)\n- [Linting and Code Quality](#linting-and-code-quality)\n  - [Linting Installation](#linting-installation)\n  - [Linting Usage](#linting-usage)\n- [Testing](#testing)\n- [Contributing](#contributing)\n- [License](#license)\n\n\n## Features\n\n- Get: Retrieve data from the database based on the provided ID.\n- Create: Add new data to the database.\n- Delete: Remove data from the database based on the provided ID.\n- Update: Update existing data in the database based on the provided ID.\n\n## Prerequisites\n\nBefore running this application, ensure that you have the following prerequisites installed:\n\n- Go: [Install Go](https://go.dev/doc/install/)\n- Docker: [Install Docker](https://docs.docker.com/get-docker/)\n- Docker Compose: [Install Docker Compose](https://docs.docker.com/compose/install/)\n\n## Installation\n\n1. Clone the repository:\n  ```bash\n    git clone https://github.com/kemalkochekov/CRUD-API.git\n  ```\n\n2. Navigate to the project directory:\n  ```\n    cd CRUD-API\n  ```\n3. Build the Docker image:\n  ```\n    docker-compose build\n  ```\n\n## Usage\n1. Start the Docker containers:\n  ```\n    docker-compose up\n  ```\n2. The application will be accessible at:\n  ```\n    localhost:9000\n  ```\n## API Endpoints\n\n### Get\n\n- Method: GET\n- Endpoint: /entity\n- Query Parameter: id=[entity_id]\n\nRetrieve data from the database based on the provided ID.\n\n- Response:\n  - 200 OK: Returns the data in the response body.\n  - 400 Bad Request: If the `id` query parameter is missing.\n  - 404 Not Found: If the provided ID does not exist in the database.\n  - 500 Internal Server Error: If there is an internal server error.\n\n### Create\n\n- Method: POST\n- Endpoint: /entity\n- Request Body: JSON payload containing the ID and data.\n\nAdd new data to the database.\n\n- Response:\n  - 200 OK: If the request is successful.\n  - 500 Internal Server Error: If there is an internal server error.\n\n### Delete\n\n- Method: DELETE\n- Endpoint: /entity\n- Query Parameter: id=[entity_id]\n\nRemove data from the database based on the provided ID.\n\n- Response:\n  - 200 OK: If the request is successful.\n  - 404 Not Found: If the provided ID does not exist in the database.\n  - 500 Internal Server Error: If there is an internal server error.\n\n### Update\n\n- Method: PUT\n- Endpoint: /entity\n- Request Body: JSON payload containing the ID and updated data.\n\nUpdate existing data in the database based on the provided ID.\n\n- Response:\n  - 200 OK: If the request is successful.\n  - 404 Not Found: If the provided ID does not exist in the database.\n  - 500 Internal Server Error: If there is an internal server error.\n\n### Api Documentation\n\nFor detailed API documentation, including examples, request/response structures, and authentication details, please refer to the\n\n\u003ca href=\"https://documenter.getpostman.com/view/31073105/2s9YeN2oV9\" target=\"_blank\"\u003e\n    \u003cimg alt=\"View API Doc Button\" src=\"https://github.com/kemalkochekov/Go-Backend-CRUD-Api-Server/assets/85355663/e5cc7ad1-a31f-4c0d-b4b7-c4ab6e69f5a7\" width=\"200\" height=\"60\"/\u003e\n\u003c/a\u003e\n\n## Linting and Code Quality\n\nThis project maintains code quality using `golangci-lint`, a fast and customizable Go linter. `golangci-lint` checks for various issues, ensures code consistency, and enforces best practices, helping maintain a clean and standardized codebase.\n\n### Linting Installation\n\nTo install `golangci-lint`, you can use `brew`:\n\n```bash\n  brew install golangci-lint\n```\n\n### Linting Usage\n1. Configuration: \n\nAfter installing golangci-lint, create or use a personal configuration file (e.g., .golangci.yml) to define specific linting rules and settings:\n```bash\n  golangci-lint run --config=.golangci.yml\n```\nThis command initializes linting based on the specified configuration file.\n\n2. Run the linter:\n\nOnce configuration is completed, you can execute the following command at the root directory of your project to run golangci-lint:\n\n```bash\n  golangci-lint run\n```\nThis command performs linting checks on your entire project and provides a detailed report highlighting any issues or violations found.\n\n3. Customize Linting Rules:\n\nYou can customize the linting rules by modifying the `.golangci.yml` file.\n\nFor more information on using golangci-lint, refer to the golangci-lint documentation.\n\n\n## Testing\n\n- To run unit tests, use the following command:\n  ```bash\n    go test ./... -cover\n  ```\n- To run integration tests, use the following command:\n  ```bash\n    go test -tags integration ./... -cover\n  ```\n\n## Contributing\n\nContributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.\n\n## License\n\nThis project is licensed under the [MIT License](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkemalkochekov%2Fcrud-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkemalkochekov%2Fcrud-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkemalkochekov%2Fcrud-api/lists"}