OpenIsle Docs
API 概览
List posts GET Create post POST
List donations GET Donate POST
Api
Posts
Postid
Donations

# List donations

Get recent donations for a post

GET
/`api`/`posts`/`{postId}`/`donations`

## Authorization

Authorization Bearer <token>

In: `header`

## Path Parameters

postId integer
Format `int64`

## Response Body

###

    curl -X GET "https://www.open-isle.com/api/posts/0/donations"

    {
      "totalAmount": 0,
      "donations": [
        {
          "userId": 0,
          "username": "string",
          "avatar": "string",
          "amount": 0,
          "createdAt": "2019-08-24T14:15:22Z"
        }
      ],
      "balance": 0
    }

Create comment POST

Previous Page

Donate POST

Next Page

    curl -X GET "https://www.open-isle.com/api/posts/0/donations"