-
Notifications
You must be signed in to change notification settings - Fork 39
Open
Labels
hacktoberfestTickets belonging to hacktoberfestTickets belonging to hacktoberfest
Description
In order to fully support articles we need to implement a POST article comments for slug,
according to following OpenAPI Spec.
post:
tags:
- Comments
summary: Create a comment for an article
description: Create a comment for an article. Auth is required
operationId: CreateArticleComment
parameters:
- name: slug
in: path
description: Slug of the article that you want to create a comment for
required: true
schema:
type: string
requestBody:
$ref: '#/components/requestBodies/NewCommentRequest'
responses:
'200':
$ref: '#/components/responses/SingleCommentResponse'
'401':
$ref: '#/components/responses/Unauthorized'
'422':
$ref: '#/components/responses/GenericError'
security:
- Token: []
x-codegen-request-body-name: comment- Add missing domain objects NewCommentRequest and SingleCommentResponse if it doesn't exist.
- Implement
insertCommentForArticleSluginArticlePersistenceby adding the corresponding SQL to SqlDelight - Create
articles.ktin routes if does not exist, implement the POST route usingArticlePersistence - Add test that verifies the behavior works
Please assign yourself to this ticket before starting, and if you run into any issues please raise a PR so I can provide help and support directly in the code.
Thank you in advance for your interest in the project! Happy hacktoberfest!
Metadata
Metadata
Assignees
Labels
hacktoberfestTickets belonging to hacktoberfestTickets belonging to hacktoberfest