{"id":15095962,"url":"https://github.com/felipeversiane/picpay-golang","last_synced_at":"2025-04-14T22:09:54.385Z","repository":{"id":240445285,"uuid":"802341437","full_name":"felipeversiane/picpay-golang","owner":"felipeversiane","description":"simple bank transfer system made for a challenge from 𝗽𝗶𝗰𝗽𝗮𝘆 bank with 𝗴𝗼𝗹𝗮𝗻𝗴.","archived":false,"fork":false,"pushed_at":"2025-03-23T03:18:32.000Z","size":95,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-23T04:22:07.067Z","etag":null,"topics":["docker","gin-gonic","git","golang","migrations","postgresql","zap-logger"],"latest_commit_sha":null,"homepage":"https://picpay-golang.onrender.com/docs/index.html","language":"Go","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/felipeversiane.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-05-18T03:20:34.000Z","updated_at":"2025-03-23T03:18:36.000Z","dependencies_parsed_at":"2024-05-18T23:26:13.021Z","dependency_job_id":"fcc0a5b6-b632-47e8-b7af-472a7e2b4391","html_url":"https://github.com/felipeversiane/picpay-golang","commit_stats":{"total_commits":69,"total_committers":3,"mean_commits":23.0,"dds":0.02898550724637683,"last_synced_commit":"a8effb5e36d0e86ea4704dcf50e1367ca6261691"},"previous_names":["felipeversiane/picpay-golang"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/felipeversiane%2Fpicpay-golang","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/felipeversiane%2Fpicpay-golang/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/felipeversiane%2Fpicpay-golang/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/felipeversiane%2Fpicpay-golang/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/felipeversiane","download_url":"https://codeload.github.com/felipeversiane/picpay-golang/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248968914,"owners_count":21191162,"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":["docker","gin-gonic","git","golang","migrations","postgresql","zap-logger"],"created_at":"2024-09-25T15:44:19.462Z","updated_at":"2025-04-14T22:09:54.360Z","avatar_url":"https://github.com/felipeversiane.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PicPay Challenge API\n\nAPI for managing users and transfers, developed for PicPay's challenge.\n\n## Introduction\n\nThe API allows for the management of users and transfers. Below are described the main functionalities available, as well as instructions for setup and usage.\n\n## Main Libraries Used\n\n- **github.com/jackc/pgx/v5** - PostgreSQL database driver for Go.\n- **github.com/joho/godotenv** - Loads environment variables from a .env file.\n- **go.uber.org/zap** - Fast, structured logging for Go.\n- **github.com/gin-gonic/gin** - Fast, and concurrency way to make a api.\n\nFor a full list of dependencies, please refer to the [go.mod](https://github.com/felipeversiane/picpay-golang/blob/main/go.mod) file.\n\n## Endpoints\n\n### Users\n\n#### Create User\n\n- **Description:** Creates a new user with the provided information.\n- **Method:** `POST`\n- **Endpoint:** `/api/v1/user`\n- **Request Body:**\n\n  ```json\n  {\n    \"email\": \"pedro@xx.com\",\n    \"password\": \"senha123!F\",\n    \"first_name\": \"Pedro\",\n    \"last_name\": \"Silva\",\n    \"is_merchant\": false,\n    \"document\": \"1234567220\",\n    \"balance\": 200.00\n  }\n\n#### Get User By ID\n\n- **Description:** Find a user with the provided id.\n- **Method:** `GET`\n- **Endpoint:** `/api/v1/user/{id}`\n\n#### Get User By Email\n\n- **Description:** Find a user with the provided email.\n- **Method:** `GET`\n- **Endpoint:** `/api/v1/user/find_user_by_email/{email}`\n\n\n#### Get User By Document\n\n- **Description:** Find a user with the provided document.\n- **Method:** `GET`\n- **Endpoint:** `/api/v1/user/find_user_by_document/{document}`\n\n#### Update User\n\n- **Description:** Update a user with the provided ID.\n- **Method:** `PUT`\n- **Endpoint:** `/api/v1/user/{id}`\n- **Request Body:**\n\n  ```json\n  {\n    \"first_name\": \"Pedro\",\n    \"last_name\": \"Silva\",\n    \"is_merchant\": false,\n    \"balance\": 200.00\n  }\n\n#### Delete User\n\n- **Description:** Delete a user with the provided id.\n- **Method:** `DELETE`\n- **Endpoint:** `/api/v1/user/{id}`\n\n### Orders\n\n#### Create Order\n\n- **Description:** Creates a new order with the provided information.\n- **Method:** `POST`\n- **Endpoint:** `/api/v1/order`\n- **Request Body:**\n\n  ```json\n  {\n  \"amount\": 1000.00,\n  \"payee\": \"d260ff06-5369-4269-8d54-91bbf42fd26a\",\n  \"payer\": \"103cdecf-6e1c-4ec9-9e54-2dc6a4f185f8\"\n  }   \n\n\n#### Get Order By ID\n\n- **Description:** Find a order with the provided id.\n- **Method:** `GET`\n- **Endpoint:** `/api/v1/order/{id}`\n\nThe API is deployed and accessible at [picpay-golang.onrender.com](https://picpay-golang.onrender.com/docs/index.html).\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffelipeversiane%2Fpicpay-golang","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffelipeversiane%2Fpicpay-golang","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffelipeversiane%2Fpicpay-golang/lists"}