In order to fully support articles we need to implement a POST article favorite for slug,
according to following OpenAPI Spec.
/articles/{slug}/favorite:
delete:
tags:
- Favorites
summary: Unfavorite an article
description: Unfavorite an article. Auth is required
operationId: DeleteArticleFavorite
parameters:
- name: slug
in: path
description: Slug of the article that you want to unfavorite
required: true
schema:
type: string
responses:
'200':
$ref: '#/components/responses/SingleArticleResponse'
'401':
$ref: '#/components/responses/Unauthorized'
'422':
$ref: '#/components/responses/GenericError'
security:
- Token: []
- Add missing domain objects SingleArticleResponse if it doesn't exist.
- Implement
unfavoriteArticleWithSlug in ArticlePersistence by adding the corresponding SQL to SqlDelight
- Create
articles.kt in routes if does not exist, implement the DELETE route using ArticlePersistence
- 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!
In order to fully support articles we need to implement a POST article favorite for slug,
according to following OpenAPI Spec.
unfavoriteArticleWithSluginArticlePersistenceby adding the corresponding SQL to SqlDelightarticles.ktin routes if does not exist, implement the DELETE route usingArticlePersistencePlease 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!