{"id":15586371,"url":"https://github.com/brandaoplaster/api_report","last_synced_at":"2025-08-09T19:53:20.457Z","repository":{"id":100333979,"uuid":"604209345","full_name":"brandaoplaster/api_report","owner":"brandaoplaster","description":"mini api to generate report in csv format","archived":false,"fork":false,"pushed_at":"2023-03-02T04:15:09.000Z","size":96,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-03T23:48:31.837Z","etag":null,"topics":["elixir","phoenix-framework"],"latest_commit_sha":null,"homepage":"","language":"Elixir","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/brandaoplaster.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-02-20T15:09:03.000Z","updated_at":"2023-03-02T04:17:45.000Z","dependencies_parsed_at":"2023-05-13T22:15:17.280Z","dependency_job_id":null,"html_url":"https://github.com/brandaoplaster/api_report","commit_stats":{"total_commits":38,"total_committers":1,"mean_commits":38.0,"dds":0.0,"last_synced_commit":"4d855606e6052f0d2cc2b8a17e01b5d3edf98912"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brandaoplaster%2Fapi_report","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brandaoplaster%2Fapi_report/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brandaoplaster%2Fapi_report/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brandaoplaster%2Fapi_report/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brandaoplaster","download_url":"https://codeload.github.com/brandaoplaster/api_report/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246162147,"owners_count":20733357,"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":["elixir","phoenix-framework"],"created_at":"2024-10-02T21:22:05.163Z","updated_at":"2025-03-29T09:16:14.305Z","avatar_url":"https://github.com/brandaoplaster.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ApiReport\n\nTo start your Phoenix server:\n\n- Create database\n```\ndocker compose run --rm web mix ecto.create\n```\n\n- Make database migrations\n```\ndocker compose run --rm web mix ecto.migrate\n```\n\n- Run the tests\n```\ndocker compose run --rm web mix test\n```\n\n- Generate test coverage report\n```\ndocker compose run --rm web mix coveralls.html\n```\n\n- Format the code\n```\ndocker compose run --rm web mix format\n```\n\n- Run the application\n```\ndocker compose up\n```\n\n## Endpoint List\n\n- Endpoint can be **DailyRegistrationsByPartner** or **DailyRegistrations** - **method** POST\n```\nlocalhost:4000/api/csv_report/:report_name\n```\n\n- Endpoint to create a partner - **method** POST\n```json\n{\n\t\"partner\": {\n\t\t\"name\": \"Dan\"\n\t}\n}\n```\n\n```\nlocalhost:4000/api/partners/\n```\n\n- Endpoint to list a partner - **method** GET\n```\nlocalhost:4000/api/partners/\n```\n\n- Endpoint to create a registration - **method** POST\n```json\n{\n\t\"cpf\": \"111.222.333-45\",\n\t\"email\": \"Lavínia@hotmail.com\",\n\t\"name\": \"Lavínia Pires\",\n\t\"partner_id\": registered partner id\n}\n```\n```\nlocalhost:4000/api/registrations\n```\n\n\nNow you can visit [`localhost:4000`](http://localhost:4000) from your browser.\n\nReady to run in production? Please [check our deployment guides](https://hexdocs.pm/phoenix/deployment.html).\n\n## Learn more\n\n  * Official website: https://www.phoenixframework.org/\n  * Guides: https://hexdocs.pm/phoenix/overview.html\n  * Docs: https://hexdocs.pm/phoenix\n  * Forum: https://elixirforum.com/c/phoenix-forum\n  * Source: https://github.com/phoenixframework/phoenix\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrandaoplaster%2Fapi_report","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrandaoplaster%2Fapi_report","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrandaoplaster%2Fapi_report/lists"}