Cookbook

Get a single recipe with creator info, ratings and comments

get/api/cookbook/recipes/{id}

Request

  • Base URL
    https://api.rewritelifestyle.ai (the document declares no server; this is the origin it was published from)
  • URL
    https://api.rewritelifestyle.ai/api/cookbook/recipes/{id}
  • Auth
    HTTP bearer

Path parameters

idnumber required

Response

unknown required

Example response

{
  "success": true,
  "recipe": {
    "id": 1,
    "title": "High-Protein Chicken Bowl",
    "createdBy": {
      "userId": 5,
      "firstName": "Jane",
      "lastName": "D.",
      "profileImageUrl": null
    },
    "averageRating": 4.2,
    "ratingCount": 11,
    "myRating": 5,
    "commentCount": 3,
    "comments": [
      {
        "id": 10,
        "body": "Love this!",
        "createdAt": "2026-01-01T00:00:00.000Z",
        "user": {
          "userId": 7,
          "firstName": "Tom",
          "lastName": "K.",
          "profileImageUrl": null
        }
      }
    ]
  }
}

Changes

No recorded changes to this operation across all 34 revisions of this API.