stream-js icon indicating copy to clipboard operation
stream-js copied to clipboard

POST /reaction returns EnrichedReactionAPIResponse

Open MartinCupela opened this issue 2 years ago • 0 comments

Endpoint POST /reaction returns EnrichedReactionAPIResponse instead of ReactionAPIResponse:

image

The returned response body:

{
  "created_at": "2021-11-19T12:34:25.385922Z",
  "updated_at": "2021-11-19T12:34:25.385922Z",
  "id": "f7547cac-491c-11ec-87dd-a4bb6d26ac2f",
  "user_id": "MustermannMax",
  "user": {
    "created_at": "2021-10-07T11:17:54.858890Z",
    "updated_at": "2021-10-07T11:17:54.858890Z",
    "id": "MustermannMax",
    "data": {
      "about": null,
      "banner_url": null,
      "email": "[email protected]",
      "feedGroup": "timeline",
      "first_name": "Max",
      "handle": "MustermannMax",
      "id": "9beb4f6e-2139-4ccd-9401-4886bccd8e77",
      "joined": "2021-10-06T22:00:00.000Z",
      "last_name": "Mustermann",
      "name": "Max Mustermann",
      "profileImage": null,
      "website": null
    }
  },
  "kind": "comment",
  "activity_id": "64325227-489c-11ec-8823-0ac74274a1c1",
  "data": {
    "attachments": {
      "files": [],
      "images": []
    },
    "text": "Lorem ipsum"
  },
  "target_feeds": [
    "user:DoeJoe",
    "user:DoeJane"
  ],
  "target_feeds_extra_data": {
    "origin": "timeline:SmithAnne"
  },
  "parent": "",
  "latest_children": {},
  "children_counts": {},
  "duration": "19.00ms"
}

MartinCupela avatar Nov 22 '21 10:11 MartinCupela