Skip to content

BE 1 - Implement create_role API function #51

@LeandroHamaguchi

Description

@LeandroHamaguchi

Create an API function to add new Roles to the database. Here are some resources:

Notes:

  • The API functions should be written inside src/lib/api/
  • Ensure proper error handling and validation of input data
  • Include a description of the ticket and the implementation in the PR (with screenshots showing that it works!)

The goal is to:

  • Create a function that accepts roles data and inserts it into the Supabase database
  • Return appropriate success/error responses with HTTP status codes.
  • The return value should be the data object returned from the method .from("Roles").select()

Metadata

Metadata

Labels

backendthis ticket is part of the backend

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions