This project is Open Source and source code is available on GitHub.
| Request | Path | Description | Data | Response |
|---|---|---|---|---|
| POST | /comments | Creates new comment | | |
| PUT | /comments/:commentId | Updates existing comment | | |
| GET | /comments | List comments | | |
| POST | /comments/:commentId/reactions | Adds reaction to specified comment | | |
| DELETE | /comments/:commentId/reactions/:reactionId | Removes reaction from specified comment | |
Token service is used to create and verify access tokens.
JWT uses JWT:
SERVICES_TOKEN_TYPE=JWT
SERVICES_TOKEN_SECRET=secret
SERVICES_TOKEN_TTL=900
onCommentCreateWhen new comment is successfully created (no error) the service will notify all subscribed services.
Set in the config:
{
callbacks: {
onCommentCreate: [
type: 'HTTP',
url: 'https://',
],
},
}
Data:
{
name: 'comment_create',
organization: {
id: number | null;
},
user: {
id: number,
},
parameters: {
id: number,
parentId: number | null,
organizationId: number | null,
userId: number | null,
entityName: string,
entityId: number,
content: string,
createdAt: string,
updatedAt: string,
},
}
Content type
Image
Digest
sha256:51b1843ac…
Size
92.1 MB
Last updated
almost 3 years ago
docker pull juffalow/comment-service