ダンカグライク API Server 仕様 (0.0.2)

Download OpenAPI specification:Download

support

機能のサポート情報

APIサーバーの機能一覧API

有効なAPIサーバーの機能を返します

Responses

Response samples

Content type
application/json
{
  • "contents": true
}

contents

コンテンツ情報

コンテンツ一覧API

コンテンツ一覧を全件取得して返却します
idの昇順。

Responses

Response samples

Content type
application/json
{
  • "contents": [
    ]
}

コンテンツ詳細API

コンテンツ詳細を取得して返却します

Responses

Response samples

Content type
application/json
{
  • "description": "string",
  • "downloadUrl": "string",
  • "imageUrl": "string"
}

コンテンツのダウンロード済みAPI

コンテンツのダウンロードカウントを1増やします

Responses

コンテンツ評価の取得API

contentIdのコンテンツ評価を取得する

Responses

Response samples

Content type
application/json
{
  • "votes": [
    ]
}

コンテンツ評価の新規登録API

contentIdのコンテンツ評価を新規登録する

Request Body schema: application/json

vote

id
integer
contentId
integer

コンテンツのid番号

userId
string

ユーザー固有のid文字列

name
string

投稿者名

score
integer

評価の値 (1~5)

comment
string

評価一覧で表示されるコメント

like
integer

いいね数

date
string

UTC時間

Responses

Request samples

Content type
application/json
{
  • "id": 0,
  • "contentId": 0,
  • "userId": "string",
  • "name": "string",
  • "score": 0,
  • "comment": "string",
  • "like": 0,
  • "date": "string"
}

コンテンツ評価の編集API

contentIdのコンテンツ評価を編集する

Request Body schema: application/json

vote

id
integer
contentId
integer

コンテンツのid番号

userId
string

ユーザー固有のid文字列

name
string

投稿者名

score
integer

評価の値 (1~5)

comment
string

評価一覧で表示されるコメント

like
integer

いいね数

date
string

UTC時間

Responses

Request samples

Content type
application/json
{
  • "id": 0,
  • "contentId": 0,
  • "userId": "string",
  • "name": "string",
  • "score": 0,
  • "comment": "string",
  • "like": 0,
  • "date": "string"
}

likes

いいね情報

いいね情報取得API

ユーザーのいいね情報を取得します

Responses

Response samples

Content type
application/json
{
  • "likes": [
    ]
}

評価のいいねAPI

評価のいいね数を1増やします
評価のいいね対象はRequest bodyに設定されます

Request Body schema: application/json
voteId
integer

Responses

Request samples

Content type
application/json
{
  • "voteId": 0
}