app_recetas
  1. Admin
app_recetas
  • Auth
    • sign-in
      POST
    • recover-user
      POST
    • recover-user-confirm
      POST
    • recover-password-change
      POST
    • user-info
      GET
    • user-info
      PUT
  • Recetas
    • Últimas recetas cargadas
      GET
    • Buscar recetas
      POST
    • Consulta de existencia de receta
      GET
    • Obtiene receta por id
      GET
    • Agregar receta
      POST
    • Actualizar receta
      PUT
    • Valoración receta
      POST
    • Obtener mis recetas
      GET
  • Favoritos
    • Obtener recetas favoritas
      GET
    • Agregar receta a favoritos
      POST
    • Eliminar receta de favoritos
      DELETE
  • Otros
    • Listar categorías de recetas
      GET
    • Listar ingredientes de recetas
      GET
    • Listar medidas
      GET
  • Admin
    • Aprobar comentario
      PUT
    • Aprobar receta
      PUT
  1. Admin

Aprobar comentario

Developing
PUT
/comment-approve/{id}
Permite aprobar un comentario en base a su id
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT 'https://okqjoprwutewmsgnphyc.supabase.co/functions/v1/comment-approve/123'
Response Response Example
200 - Example 1
{
    "message": "Comentario aprobado exitosamente.",
    "comment": {
        "id": "555",
        "content": "Este comentario es un comentario de prueba :)",
        "approved": true,
        "author": "usuario123",
        "createdAt": "2025-04-08T12:00:00Z",
        "approvedAt": "2025-04-14T12:00:00Z"
    }
}

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Path Params
id
integer 
required
Example:
123

Responses

🟢200Success
application/json
Body
object {0}
🟠404Record Not Found
🟠400Bad Request
🟠401Unauthorized
🔴500Server Error
Modified at 2025-04-20 00:09:22
Previous
Listar medidas
Next
Aprobar receta
Built with