Communication API
SaaSus Communication API Schema (1.0.0)
SaaSus Communication API Schema
Create Feedback
Create Feedback.
Authorizations:
Bearer
Request Body schema: application/json
user_id required | string (Uuid) |
feedback_title required | string (Feedback Title) |
feedback_description required | string (Feedback Content) |
Responses
Request samples
- Payload
Content type
application/json
{- "feedback_title": "保存ボタンの位置を変えてほしい",
- "feedback_description": "編集ダイアログの保存ボタンが押しにくいので、位置を変えてほしい"
}
Response samples
- 201
- 500
Content type
application/json
{- "id": "69e732d6-8ecc-45c4-c2eb-8438f7ffe775",
- "user_id": "69e732d6-8ecc-45c4-c2eb-8438f7ffe775",
- "created_at": 1640995200,
- "status": 1,
- "feedback_title": "保存ボタンの位置を変えてほしい",
- "feedback_description": "編集ダイアログの保存ボタンが押しにくいので、位置を変えてほしい",
- "comments": [
- {
- "id": "69e732d6-8ecc-45c4-c2eb-8438f7ffe775",
- "created_at": 1640995200,
- "body": "貴重なご意見ありがとうございます。"
}
], - "count": 1,
- "users": [
- {
- "user_id": "69e732d6-8ecc-45c4-c2eb-8438f7ffe775"
}
]
}
Response samples
- 200
- 500
Content type
application/json
{- "feedbacks": [
- {
- "id": "69e732d6-8ecc-45c4-c2eb-8438f7ffe775",
- "user_id": "69e732d6-8ecc-45c4-c2eb-8438f7ffe775",
- "created_at": 1640995200,
- "status": 1,
- "feedback_title": "保存ボタンの位置を変えてほしい",
- "feedback_description": "編集ダイアログの保存ボタンが押しにくいので、位置を変えてほしい",
- "comments": [
- {
- "id": "69e732d6-8ecc-45c4-c2eb-8438f7ffe775",
- "created_at": 1640995200,
- "body": "貴重なご意見ありがとうございます。"
}
], - "count": 1,
- "users": [
- {
- "user_id": "69e732d6-8ecc-45c4-c2eb-8438f7ffe775"
}
]
}
]
}
Update Feedback
Edit feedback.
Authorizations:
Bearer
path Parameters
feedback_id required | string (Uuid) Example: 69e732d6-8ecc-45c4-c2eb-8438f7ffe775 |
Request Body schema: application/json
feedback_title required | string (Feedback Title) |
feedback_description required | string (Feedback Content) |
Responses
Request samples
- Payload
Content type
application/json
{- "feedback_title": "保存ボタンの位置を変えてほしい",
- "feedback_description": "編集ダイアログの保存ボタンが押しにくいので、位置を変えてほしい"
}
Response samples
- 404
- 500
Content type
application/json
{- "type": "string",
- "message": "string"
}
Get Feedback
Retrieve feedback.
Authorizations:
Bearer
path Parameters
feedback_id required | string (Uuid) Example: 69e732d6-8ecc-45c4-c2eb-8438f7ffe775 |
Responses
Response samples
- 200
- 404
- 500
Content type
application/json
{- "id": "69e732d6-8ecc-45c4-c2eb-8438f7ffe775",
- "user_id": "69e732d6-8ecc-45c4-c2eb-8438f7ffe775",
- "created_at": 1640995200,
- "status": 1,
- "feedback_title": "保存ボタンの位置を変えてほしい",
- "feedback_description": "編集ダイアログの保存ボタンが押しにくいので、位置を変えてほしい",
- "comments": [
- {
- "id": "69e732d6-8ecc-45c4-c2eb-8438f7ffe775",
- "created_at": 1640995200,
- "body": "貴重なご意見ありがとうございます。"
}
], - "count": 1,
- "users": [
- {
- "user_id": "69e732d6-8ecc-45c4-c2eb-8438f7ffe775"
}
]
}
Update Feedback Status
Update Feedback Status.
Authorizations:
Bearer
path Parameters
feedback_id required | string (Uuid) Example: 69e732d6-8ecc-45c4-c2eb-8438f7ffe775 |
Request Body schema: application/json
status required | integer (Feedback Status) |
Responses
Request samples
- Payload
Content type
application/json
{- "status": 1
}
Response samples
- 404
- 500
Content type
application/json
{- "type": "string",
- "message": "string"
}
Create Vote User
Vote for feedback.
Authorizations:
Bearer
path Parameters
feedback_id required | string (Uuid) Example: 69e732d6-8ecc-45c4-c2eb-8438f7ffe775 |
Request Body schema: application/json
user_id required | string (Uuid) |
Responses
Request samples
- Payload
Content type
application/json
{- "user_id": "69e732d6-8ecc-45c4-c2eb-8438f7ffe775"
}
Response samples
- 201
- 404
- 500
Content type
application/json
{- "count": 1,
- "users": [
- {
- "user_id": "69e732d6-8ecc-45c4-c2eb-8438f7ffe775"
}
]
}
Delete Vote For Feedback
Cancel vote for feedback.
Authorizations:
Bearer
path Parameters
feedback_id required | string (Uuid) Example: 69e732d6-8ecc-45c4-c2eb-8438f7ffe775 |
user_id required | string (Uuid) Example: 69e732d6-8ecc-45c4-c2eb-8438f7ffe775 |
Responses
Response samples
- 404
- 500
Content type
application/json
{- "type": "string",
- "message": "string"
}
Create Feedback Comment
Post comment to feedback.
Authorizations:
Bearer
path Parameters
feedback_id required | string (Uuid) Example: 69e732d6-8ecc-45c4-c2eb-8438f7ffe775 |
Request Body schema: application/json
body required | string (Comment Content) |
Responses
Request samples
- Payload
Content type
application/json
{- "body": "貴重なご意見ありがとうございます。"
}
Response samples
- 201
- 404
- 500
Content type
application/json
{- "id": "69e732d6-8ecc-45c4-c2eb-8438f7ffe775",
- "created_at": 1640995200,
- "body": "貴重なご意見ありがとうございます。"
}
Get Feedback Comment
Retrieve comment from feedback.
Authorizations:
Bearer
path Parameters
feedback_id required | string (Uuid) Example: 69e732d6-8ecc-45c4-c2eb-8438f7ffe775 |
comment_id required | string (Uuid) Example: 69e732d6-8ecc-45c4-c2eb-8438f7ffe775 |
Responses
Response samples
- 200
- 404
- 500
Content type
application/json
{- "id": "69e732d6-8ecc-45c4-c2eb-8438f7ffe775",
- "created_at": 1640995200,
- "body": "貴重なご意見ありがとうございます。"
}
Update Feedback Comment
Edit comment for feedback.
Authorizations:
Bearer
path Parameters
feedback_id required | string (Uuid) Example: 69e732d6-8ecc-45c4-c2eb-8438f7ffe775 |
comment_id required | string (Uuid) Example: 69e732d6-8ecc-45c4-c2eb-8438f7ffe775 |
Request Body schema: application/json
body required | string (Edited Content) |
Responses
Request samples
- Payload
Content type
application/json
{- "body": "貴重なご意見ありがとうございます。"
}
Response samples
- 404
- 500
Content type
application/json
{- "type": "string",
- "message": "string"
}
Delete Feedback Comment
Delete comment for feedback.
Authorizations:
Bearer
path Parameters
feedback_id required | string (Uuid) Example: 69e732d6-8ecc-45c4-c2eb-8438f7ffe775 |
comment_id required | string (Uuid) Example: 69e732d6-8ecc-45c4-c2eb-8438f7ffe775 |
Responses
Response samples
- 404
- 500
Content type
application/json
{- "type": "string",
- "message": "string"
}