OpenIsle Docs
ApiPostsPostidDonations

Donate

Donate points to the post author

POST
/api/posts/{postId}/donations
AuthorizationBearer <token>

In: header

Path Parameters

postIdinteger
Formatint64
amount?integer
Formatint32

Response Body

curl -X POST "https://www.open-isle.com/api/posts/0/donations" \  -H "Content-Type: application/json" \  -d '{}'
{
  "totalAmount": 0,
  "donations": [
    {
      "userId": 0,
      "username": "string",
      "avatar": "string",
      "amount": 0,
      "createdAt": "2019-08-24T14:15:22Z"
    }
  ],
  "balance": 0
}