{"id":15095889,"url":"https://github.com/zerohertz/crud","last_synced_at":"2026-01-07T06:10:10.400Z","repository":{"id":251217191,"uuid":"835474456","full_name":"Zerohertz/CRUD","owner":"Zerohertz","description":"🦀 CRUD operations based on various languages 🦀","archived":false,"fork":false,"pushed_at":"2024-08-01T13:56:12.000Z","size":214,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-27T16:19:23.745Z","etag":null,"topics":["actix-web","crud","expressjs","fastapi","flask","gin","go","java","javascript","nestjs","nodejs","python","rust","spring","spring-boot"],"latest_commit_sha":null,"homepage":"","language":"Python","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/Zerohertz.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}},"created_at":"2024-07-29T23:16:52.000Z","updated_at":"2024-08-01T13:59:58.000Z","dependencies_parsed_at":"2024-08-01T15:27:56.592Z","dependency_job_id":"8453de4d-cbdf-43ea-a06c-423391ee614a","html_url":"https://github.com/Zerohertz/CRUD","commit_stats":null,"previous_names":["zerohertz/crud"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zerohertz%2FCRUD","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zerohertz%2FCRUD/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zerohertz%2FCRUD/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zerohertz%2FCRUD/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Zerohertz","download_url":"https://codeload.github.com/Zerohertz/CRUD/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245878929,"owners_count":20687297,"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":["actix-web","crud","expressjs","fastapi","flask","gin","go","java","javascript","nestjs","nodejs","python","rust","spring","spring-boot"],"created_at":"2024-09-25T15:43:15.312Z","updated_at":"2026-01-07T06:10:10.395Z","avatar_url":"https://github.com/Zerohertz.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e🦀 CRUD 🦀\u003c/h1\u003e\n\n```sh\n$ kubectl create ns crud\nnamespace/crud created\n$ kubectl -n crud apply -f k8s\nconfigmap/postgres-config created\nsecret/postgres-secret created\ndeployment.apps/postgres created\nservice/postgres created\ndeployment.apps/backend created\n$ kubectl -n crud exec -it deploy/backend -- zsh\n```\n\n\u003ch3 align=\"center\"\u003eAPI Specification\u003c/h3\u003e\n\u003cdiv align=\"center\"\u003e\n\u003cimg width=\"400\" alt=\"crud\" src=\"https://github.com/user-attachments/assets/a31ed9a1-7dfc-48b5-830e-f2fc112c9c02\"\u003e\n\n| Function              | Endpoint      | Method   | Description                                      | Request Headers                  | Request Body                                                                                        | Response                                                                                                                                                                                                                                                      |\n| --------------------- | ------------- | -------- | ------------------------------------------------ | -------------------------------- | --------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| Create User           | `/users`      | `POST`   | Creates a new user.                              | `Content-Type: application/json` | `json { \"username\": \"john_doe\", \"email\": \"john.doe@example.com\", \"password\": \"securepassword123\" }` | Status: 201 Created\u003cbr\u003eBody: `json { \"id\": \"1\", \"username\": \"john_doe\", \"email\": \"john.doe@example.com\", \"created_at\": \"2024-07-30T12:34:56Z\" }`                                                                                                              |\n| Get All Users         | `/users`      | `GET`    | Retrieves all users.                             | -                                | -                                                                                                   | Status: 200 OK\u003cbr\u003eBody: `json [ { \"id\": \"1\", \"username\": \"john_doe\", \"email\": \"john.doe@example.com\", \"created_at\": \"2024-07-30T12:34:56Z\" }, { \"id\": \"2\", \"username\": \"jane_doe\", \"email\": \"jane.doe@example.com\", \"created_at\": \"2024-07-30T12:40:00Z\" } ]` |\n| Get User by ID        | `/users/{id}` | `GET`    | Retrieves a specific user by ID.                 | -                                | -                                                                                                   | Status: 200 OK\u003cbr\u003eBody: `json { \"id\": \"1\", \"username\": \"john_doe\", \"email\": \"john.doe@example.com\", \"created_at\": \"2024-07-30T12:34:56Z\" }`                                                                                                                   |\n| Update User           | `/users/{id}` | `PUT`    | Updates a specific user's information.           | `Content-Type: application/json` | `json { \"username\": \"john_doe_updated\", \"email\": \"john.doe.updated@example.com\" }`                  | Status: 200 OK\u003cbr\u003eBody: `json { \"id\": \"1\", \"username\": \"john_doe_updated\", \"email\": \"john.doe.updated@example.com\", \"updated_at\": \"2024-07-30T13:00:00Z\" }`                                                                                                   |\n| Partially Update User | `/users/{id}` | `PATCH`  | Partially updates a specific user's information. | `Content-Type: application/json` | `json { \"email\": \"john.newemail@example.com\" }`                                                     | Status: 200 OK\u003cbr\u003eBody: `json { \"id\": \"1\", \"username\": \"john_doe\", \"email\": \"john.newemail@example.com\", \"updated_at\": \"2024-07-30T13:30:00Z\" }`                                                                                                              |\n| Delete User           | `/users/{id}` | `DELETE` | Deletes a specific user.                         | -                                | -                                                                                                   | Status: 204\u003cbr\u003eNo Content                                                                                                                                                                                                                                     |\n\n\u003c/div\u003e\n\n\u003ch3 align=\"center\"\u003eDatabase (PostgreSQL) Table Schema\u003c/h3\u003e\n\u003cdiv align=\"center\"\u003e\n\n| Field      | Data Type    | Description        | Constraints                         |\n| ---------- | ------------ | ------------------ | ----------------------------------- |\n| id         | INT          | User's unique ID   | PRIMARY KEY, AUTO_INCREMENT         |\n| username   | VARCHAR(50)  | User's username    | NOT NULL, UNIQUE                    |\n| email      | VARCHAR(100) | User's email       | NOT NULL, UNIQUE                    |\n| password   | VARCHAR(255) | User's password    | NOT NULL                            |\n| created_at | DATETIME     | Creation timestamp | NOT NULL, DEFAULT CURRENT_TIMESTAMP |\n| updated_at | DATETIME     | Update timestamp   | NULL, ON UPDATE CURRENT_TIMESTAMP   |\n\n\u003c/div\u003e\n\u003cdiv align=\"right\"\u003e\n    \u003ccode\u003eDATABASE_URL=postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:${POSTGRES_PORT}/${POSTGRES_DB}\u003c/code\u003e\n\u003c/div\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzerohertz%2Fcrud","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzerohertz%2Fcrud","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzerohertz%2Fcrud/lists"}