{"id":25898267,"url":"https://github.com/clebsf/challenge-otimizeit","last_synced_at":"2025-07-11T01:10:26.359Z","repository":{"id":188600420,"uuid":"256909118","full_name":"clebsf/challenge-otimizeit","owner":"clebsf","description":"This is just a simple RESTful API.","archived":false,"fork":false,"pushed_at":"2020-04-27T15:22:09.000Z","size":245,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-03T00:17:44.019Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/clebsf.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}},"created_at":"2020-04-19T03:54:09.000Z","updated_at":"2020-04-19T04:09:48.000Z","dependencies_parsed_at":"2023-08-16T04:07:21.936Z","dependency_job_id":null,"html_url":"https://github.com/clebsf/challenge-otimizeit","commit_stats":null,"previous_names":["byclebert/challenge-otimizeit","clebsf/challenge-otimizeit"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/clebsf/challenge-otimizeit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clebsf%2Fchallenge-otimizeit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clebsf%2Fchallenge-otimizeit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clebsf%2Fchallenge-otimizeit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clebsf%2Fchallenge-otimizeit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/clebsf","download_url":"https://codeload.github.com/clebsf/challenge-otimizeit/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clebsf%2Fchallenge-otimizeit/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264703263,"owners_count":23651935,"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":[],"created_at":"2025-03-03T00:17:46.985Z","updated_at":"2025-07-11T01:10:26.340Z","avatar_url":"https://github.com/clebsf.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Challenge Otimize IT\nThis is just a simple API RESTful for managing contacts.\n\n### Functional Requirements\n- [x] Must be able to register a new contact;\n- [x] Must be able to update contact;\n- [x] Must be able to delete a contact;\n- [x] Must be able to list all contacts;\n- [x] Must be able to show a contact;\n\n### Non-Functional Requirements\n- Must be developed with TypeScript and Node.js;\n- Must be hosted in Firebase Functions;\n- Must store the data in the Firebase Firestore;\n- Must use JWT for authentication;\n\n### Business Requirements\n- To register, update or delete a contact, must be authenticated with a JWT;\n\n### API Access\n[Link to endpoint](https://us-central1-challenge-otimizeit.cloudfunctions.net/api/contacts)\n\n#### ENDPOINTS\n```js\n- [GET] /contacts         // List contacts\n- [GET] /contacts/:id     // Show a contact\n- [POST] /contacts        // Register new contact \u003cNeed to authenticate\u003e\n- [PUT] /contacts/:id     // Update a contact \u003cNeed to authenticate\u003e\n- [DELETE] /contacts/:id  // Delete a contact \u003cNeed to authenticate\u003e\n```\n\n#### JWT Authentication\nYou can use the following token to authenticate yourself:\n```js\nauthorization: \"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.JgE3iK5c1ZBmUK-X0iiazRLtlOvO-G6b6sZV6eDTZOg\"\n\n// This should be in the request header.\n```\n\n#### Data to register new contact\n```js\n[POST] /contacts\n\n{\n    \"name\": \"Jhon Snow\",\n    \"email\": \"jhon.snow@gameofthrones.com\"\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclebsf%2Fchallenge-otimizeit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fclebsf%2Fchallenge-otimizeit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclebsf%2Fchallenge-otimizeit/lists"}