{"id":15198808,"url":"https://github.com/rafael-vasconcellos/payment-api","last_synced_at":"2026-02-01T01:05:40.536Z","repository":{"id":231589773,"uuid":"782071939","full_name":"rafael-vasconcellos/payment-api","owner":"rafael-vasconcellos","description":"challenge resolution with nest js","archived":false,"fork":false,"pushed_at":"2024-06-24T20:36:47.000Z","size":146,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-12T12:50:15.354Z","etag":null,"topics":["api","class-validator","jest","nest-js","nestjs","nodemailer","prisma","server-client","server-side","supertest"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/rafael-vasconcellos.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-04-04T15:29:26.000Z","updated_at":"2024-06-24T20:36:51.000Z","dependencies_parsed_at":"2024-09-24T01:02:10.953Z","dependency_job_id":"674af864-a159-433a-b667-9ca710834c09","html_url":"https://github.com/rafael-vasconcellos/payment-api","commit_stats":{"total_commits":18,"total_committers":1,"mean_commits":18.0,"dds":0.0,"last_synced_commit":"583f14995040a7d593c323e31cfbfbf620d1db1f"},"previous_names":["rafael-vasconcellos/payment-api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rafael-vasconcellos/payment-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rafael-vasconcellos%2Fpayment-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rafael-vasconcellos%2Fpayment-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rafael-vasconcellos%2Fpayment-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rafael-vasconcellos%2Fpayment-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rafael-vasconcellos","download_url":"https://codeload.github.com/rafael-vasconcellos/payment-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rafael-vasconcellos%2Fpayment-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28963219,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-01T00:42:38.011Z","status":"ssl_error","status_checked_at":"2026-02-01T00:42:35.920Z","response_time":128,"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","class-validator","jest","nest-js","nestjs","nodemailer","prisma","server-client","server-side","supertest"],"created_at":"2024-09-28T01:41:42.298Z","updated_at":"2026-02-01T01:05:40.518Z","avatar_url":"https://github.com/rafael-vasconcellos.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sobre\nResolução do [desafio](https://github.com/PicPay/picpay-desafio-backend) por um completo iniciante em backend\n\n## API\nAlgumas rotas fazem uso de uma proto autenticação através do header *\"Authorization\"*.\n```typescript\nconst AuthorizationHeader = {\n    Authorization: \"email:pass\"\n}\n```\n### /api (GET)\nlista as rotas\n### /user\no método GET utiliza parâmetros de busca, enquanto POST e PUT utilizam o body da requisição\n```typescript\n// GET \u0026 PUT\ninterface IUserDTO { \n    id?: string\n    document?: string,\n    type?: \"COMMON\" | \"MERCHANT\",\n    name?: string,\n    lastname?: string,\n    email?: string,\n    pass?: string,\n    balance?: number\n}\n\n// POST\ninterface ICreateUserDTO { \n    document: string,\n    type: \"COMMON\" | \"MERCHANT\",\n    name: string,\n    email: string,\n    pass: string,\n    lastname?: string,\n}\n```\n### /transaction\nos métodos GET e DELETE utilizam parâmetros de busca, enquanto o método POST utiliza o body da requisição\n```typescript\n// POST\ninterface ICreateTransactionDTO { \n    sender: string\n    receiver: string\n    amount: number\n}\n\n// DELETE\ninterface IReverseTransactionDTO {\n    id: string\n}\n\n// GET\ninterface IGetTransactionDTO extends IGetUser { \n  transactionId?: string \n}\n```\n\n#### Variáveis de ambiente\n*HOST, PORT, USER, PASS* (credenciais do provedor de email)\n\n## Instalação\n```bash\n$ npm  install\n```\n\n## Executando\n```bash\n# development\n$ npm  run  start\n\n# watch mode\n$ npm  run  start:dev\n\n# production mode\n$ npm  run  start:prod\n```\n\n## Executando Testes\n```bash\n# unit tests\n$ npm  run  test\n\n# e2e tests\n$ npm  run  test:e2e\n\n# test coverage\n$ npm  run  test:cov\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frafael-vasconcellos%2Fpayment-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frafael-vasconcellos%2Fpayment-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frafael-vasconcellos%2Fpayment-api/lists"}