New in 2.4: Test runs you can trust See what's new →

API de recetas

Recetas de solo lectura con ingredientes, instrucciones, cocina y dificultad.

Petición de ejemplo

List recipes with filtering, sorting, search and pagination. Referencia completa y botón Send (en inglés).

cURL
curl -X GET "https://api.testingapis.com/api/Recipes?limit=2"
Ejecutar en Studio
Respuesta · 200 OK
[
  {
    "id": 1,
    "title": "Spicy Thai Basil Chicken",
    "cuisine": "Thai",
    "prepTime": 15,
    "cookTime": 10,
    "servings": 4,
    "difficulty": "medium",
    "ingredients": ["500g chicken breast", "1 cup thai basil leaves", "… 5 more items"],
    "instructions": ["Dice the chicken into small cubes.", "Mince garlic and slice chilies.", "… 5 more items"],
    "image": "https://picsum.photos/seed/recipe1/600/400",
… (3 more lines)

Filtros, ordenación y paginación

El endpoint de lista acepta limit, page, offset, sort, order y q, y cualquier nombre de campo como filtro exacto. Los totales vuelven en la cabecera X-Total-Count. Los cambios se guardan en memoria hasta que se reinicia el servidor, así que los tests pueden crear, cambiar y borrar registros con libertad. Referencia de parámetros de query.