{"id":24080007,"url":"https://github.com/servicespack/tasks-api","last_synced_at":"2026-05-07T19:02:17.505Z","repository":{"id":99632031,"uuid":"537811816","full_name":"servicespack/tasks-api","owner":"servicespack","description":"Microservice for tasks management","archived":false,"fork":false,"pushed_at":"2025-01-27T23:18:43.000Z","size":972,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-01-28T00:26:48.211Z","etag":null,"topics":["microservice","nodejs","tasks","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/servicespack.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":"2022-09-17T13:08:21.000Z","updated_at":"2024-06-27T02:41:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"c21bf9df-8ff2-4b95-8d27-d98132ce438f","html_url":"https://github.com/servicespack/tasks-api","commit_stats":null,"previous_names":["servicespack/tasks-api"],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/servicespack%2Ftasks-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/servicespack%2Ftasks-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/servicespack%2Ftasks-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/servicespack%2Ftasks-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/servicespack","download_url":"https://codeload.github.com/servicespack/tasks-api/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240953479,"owners_count":19884024,"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":["microservice","nodejs","tasks","typescript"],"created_at":"2025-01-09T22:40:41.347Z","updated_at":"2026-05-07T19:02:17.403Z","avatar_url":"https://github.com/servicespack.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tasks API\n\nMicroservice for tasks management\n\n## Getting started\n\n### Docker\n\n```bash\ndocker container run \\\n  -p 3000:3000 \\\n  --name tasks-api \\\n  servicespack/tasks-api\n```\n\n### Locally\n\n```bash\ngit clone https://github.com/servicespack/tasks-api.git\ncd tasks-api\nnpm ci\ncp .env.variables .env\n```\n\n**For development:**\n```bash\nnpm run start:dev\n``` \n\n**For production:**\n```bash\nnpm run build\nnpm start\n``` \n\n## Authorization\n\nSince the Tasks API is a microservice, it does not has the responsibility to manage users and create tokens. So, in a real world the token creation would be outside the Tasks API.\n\nFor tests and developmet purposes, you can use the [jwt.io](https://jwt.io) to generate a valid token using the `JWT_SECRET` value that you can find in the `.env` file to sign the payload. The payload should have at least the property `sub` representing the unique id of the user. For exemple:\n\n\n```json\n{\n  \"sub\": \"110bab5c-0e5c-4d7c-932c-498be2dcfe7a\"\n}\n```\n\n## API\n\n### Healthcheck\n\n\u003e **GET `/health`**\n\n**Response 200:**\n```json\n{\n  \"server\": true,\n  \"database\": true\n}\n```\n\n### Create task\n\n\u003e **POST `/tasks`**\n\n**Headers:**\n```json\n{\n  \"Authorization\": \"Bearer eyJhbGciOiJIUzI1...\"\n}\n```\n\n**Body:**\n```json\n{\n  \"title\": \"Complete the challange\",\n  \"description\": \"Create a Tasks API with tests, documentation, typescript, etc..\"\n}\n```\n\n**Response 201:**\n```json\n{\n  \"id\": 1,\n  \"title\": \"Complete the challange\",\n  \"description\": \"Create a Tasks API with tests, documentation, typescript, etc..\",\n  \"status\": \"TO_DO\",\n  \"ownerId\": \"163e8571-127f-4d25-9dd4-79b1f47e780a\",\n  \"createdAt\": \"2022-09-18T18:59:01.231Z\",\n  \"updatedAt\": \"2022-09-18T18:59:01.231Z\"\n}\n```\n\n### Get tasks\n\n\u003e **GET `/tasks`**\n\n**Headers:**\n```json\n{\n  \"Authorization\": \"Bearer eyJhbGciOiJIUzI1...\"\n}\n```\n\n**Response 200:**\n```json\n{\n  \"data\": [\n    {\n      \"id\": 1,\n      \"title\": \"Complete the challange\",\n      \"description\": \"Create a Tasks API with tests, documentation, typescript, etc..\",\n      \"status\": \"TO_DO\",\n      \"ownerId\": \"163e8571-127f-4d25-9dd4-79b1f47e780a\",\n      \"createdAt\": \"2022-09-18T18:59:01.231Z\",\n      \"updatedAt\": \"2022-09-18T18:59:01.231Z\"\n    }\n  ],\n  \"total\": 1\n}\n```\n\n### Update task\n\n\u003e **PATCH `/tasks/:taskId`**\n\n**Headers:**\n```json\n{\n  \"Authorization\": \"Bearer eyJhbGciOiJIUzI1...\"\n}\n```\n\n**Body:**\n```json\n{\n  \"status\": \"IN_PROGRESS\"\n}\n```\n\n**Response 200:**\n```json\n{\n  \"id\": 1,\n  \"title\": \"Complete the challange\",\n  \"description\": \"Create a Tasks API with tests, documentation, typescript, etc..\",\n  \"status\": \"IN_PROGRESS\",\n  \"ownerId\": \"163e8571-127f-4d25-9dd4-79b1f47e780a\",\n  \"createdAt\": \"2022-09-18T18:59:01.231Z\",\n  \"updatedAt\": \"2022-09-18T18:59:01.231Z\"\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fservicespack%2Ftasks-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fservicespack%2Ftasks-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fservicespack%2Ftasks-api/lists"}