app_recetas
  1. Recetas
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. Recetas

Valoración receta

Developing
POST
/recipes-rate
Permite valorar una receta con puntaje de 1 al 5, y agregar un comentario.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://okqjoprwutewmsgnphyc.supabase.co/functions/v1/recipes-rate' \
--header 'Content-Type: application/json' \
--data-raw '{
    "recipe_id": "r123",
    "rating": "5",
    "comment": "Receta muy clara! voy a cocinarla!"
}'
Response Response Example
200 - Example 1
{
    "message": "Valoración registrada correctamente. Su comentario quedará en espera de aprobación."
}

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Body Params application/json
object {0}
Examples

Responses

🟢200Success
application/json
Body
object {0}
🟠400Bad Request
🟠404Record Not Found
🟠401Unauthorized
🔴500Server Error
Modified at 2025-04-20 00:04:46
Previous
Actualizar receta
Next
Obtener mis recetas
Built with