{"id":18982981,"url":"https://github.com/mateomor/kanban-api-rest","last_synced_at":"2026-06-23T13:31:05.579Z","repository":{"id":247289643,"uuid":"825412822","full_name":"MateoMor/Kanban-API-REST","owner":"MateoMor","description":null,"archived":false,"fork":false,"pushed_at":"2024-07-14T17:33:53.000Z","size":81,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-11T13:22:36.322Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://kanban-api-rest.vercel.app","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/MateoMor.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-07-07T17:41:13.000Z","updated_at":"2024-07-14T17:33:57.000Z","dependencies_parsed_at":"2025-02-21T09:32:11.479Z","dependency_job_id":"c3748a7a-d356-4396-9a7a-b765ce34df43","html_url":"https://github.com/MateoMor/Kanban-API-REST","commit_stats":null,"previous_names":["mateomor/kanban-api-rest"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/MateoMor/Kanban-API-REST","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MateoMor%2FKanban-API-REST","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MateoMor%2FKanban-API-REST/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MateoMor%2FKanban-API-REST/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MateoMor%2FKanban-API-REST/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MateoMor","download_url":"https://codeload.github.com/MateoMor/Kanban-API-REST/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MateoMor%2FKanban-API-REST/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34691648,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-23T02:00:07.161Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-11-08T16:15:31.507Z","updated_at":"2026-06-23T13:31:05.556Z","avatar_url":"https://github.com/MateoMor.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# API Documentation\n\n## How to setup\n\n### Configure server\n- Use a database web service of your preference, Example: supabase.com\n- Create a project with postgreSQL as database\n- create a .env as the .env.example and insert your database data there (to run local)\n- run the consultas.sql queries to create the tables\n\n### Configure API service\n- Use your web service of preference. Example: render.com\n- Create a new web service instance and link your project with it\n- insert .env.example variables with the database fields in enviroment variables to connect with database\n- deploy\n\n## Endpoints\n\n## Authentication Methods\n\n### Login\n\n**POST /login**\n\nLogs in a user and sets a session.\n\n- **Request Body:**\n  - `email`: User's email (string)\n  - `password`: User's password (string)\n\n- **Response:**\n  - Status 200: User information and session token\n  - Status 404: User not found\n  - Status 401: Invalid password\n\n### Register\n\n**POST /register**\n\nRegisters a new user.\n\n- **Request Body:**\n  - `name`: User's name (string)\n  - `email`: User's email (string, max 50 characters)\n  - `password`: User's password (string)\n\n- **Response:**\n  - Status 200: Newly created user\n  - Status 422: Validation error\n  - Status 409: Email already exists\n\n### Logout\n\n**POST /logout**\n\nLogs out the current user.\n\n- **Response:**\n  - Status 204: Successful logout\n\n## Session Methods\n\n### Create Session\n\n**POST /createSession**\n\nCreates a new session.\n\n- **Request Body:**\n  - `sesion_name`: Name of the session (string)\n\n- **Response:**\n  - Status 200: Newly created session\n  - Status 401: Unauthorized\n  - Status 422: Validation error\n\n### Delete Session\n\n**DELETE /deleteSession/:id**\n\nDeletes a session by ID.\n\n- **Request Parameters:**\n  - `id`: ID of the session to be deleted\n\n- **Response:**\n  - Status 204: Successful deletion\n  - Status 401: Unauthorized\n  - Status 404: Session not found\n\n### Update Session\n\n**PATCH /updateSession/:id**\n\nUpdates a session by ID.\n\n- **Request Parameters:**\n  - `id`: ID of the session to be updated\n\n- **Request Body:**\n  - `sesion_name`: New name of the session (string)\n\n- **Response:**\n  - Status 200: Updated session\n  - Status 401: Unauthorized\n  - Status 422: Validation error\n  - Status 404: Session not found\n\n## Task Methods\n\n### Create Task\n\n**POST /createTask**\n\nCreates a new task.\n\n- **Request Body:**\n  - `task_name`: Name of the task (string)\n  - `task_description`: Description of the task (string)\n  - `sesion_id`: ID of the session to which the task belongs (number)\n\n- **Response:**\n  - Status 200: Newly created task\n  - Status 401: Unauthorized\n  - Status 422: Validation error\n\n### Delete Task\n\n**DELETE /deleteTask/:id**\n\nDeletes a task by ID.\n\n- **Request Parameters:**\n  - `id`: ID of the task to be deleted\n\n- **Response:**\n  - Status 204: Successful deletion\n  - Status 404: Task not found\n\n### Update Task\n\n**PATCH /updateTask/:id**\n\nUpdates a task by ID.\n\n- **Request Parameters:**\n  - `id`: ID of the task to be updated\n\n- **Request Body:**\n  - `task_name`: New name of the task (string)\n  - `task_description`: New description of the task (string)\n\n- **Response:**\n  - Status 200: Updated task\n  - Status 401: Unauthorized\n  - Status 422: Validation error\n  - Status 404: Task not found\n\n### Move Task\n\n**PATCH /moveTask/:id**\n\nMoves a task to a different session.\n\n- **Request Parameters:**\n  - `id`: ID of the task to be moved\n\n- **Request Body:**\n  - `destination_sesion_id`: ID of the destination session (number)\n\n- **Response:**\n  - Status 200: Moved task\n  - Status 401: Unauthorized\n  - Status 404: Session or task not found\n\n## User Methods\n\n### Get Users\n\n**GET /users**\n\nRetrieves all users.\n\n- **Response:**\n  - Status 200: List of users\n\n### Get User by ID\n\n**GET /users/:id**\n\nRetrieves a user by ID.\n\n- **Request Parameters:**\n  - `id`: ID of the user to be retrieved\n\n- **Response:**\n  - Status 200: User information\n  - Status 404: User not found\n\n### Delete User\n\n**DELETE /users/:id**\n\nDeletes a user by ID.\n\n- **Request Parameters:**\n  - `id`: ID of the user to be deleted\n\n- **Response:**\n  - Status 204: Successful deletion\n  - Status 404: User not found\n\n### Update User\n\n**PUT /users/:id**\n\nUpdates a user by ID.\n\n- **Request Parameters:**\n  - `id`: ID of the user to be updated\n\n- **Request Body:**\n  - `name`: New name of the user (string)\n  - `email`: New email of the user (string, max 50 characters)\n  - `password`: New password of the user (string)\n\n- **Response:**\n  - Status 200: Updated user\n  - Status 404: User not found\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmateomor%2Fkanban-api-rest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmateomor%2Fkanban-api-rest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmateomor%2Fkanban-api-rest/lists"}