ktor-arrow-example
ktor-arrow-example copied to clipboard
DELETE unfollow profile
In order to fully support profiles we need to implement a DELETE unfollow profile by username, according to following OpenAPI Spec.
/profiles/{username}/follow:
delete:
tags:
- Profile
summary: Unfollow a user
description: Unfollow a user by username
operationId: UnfollowUserByUsername
parameters:
- name: username
in: path
description: Username of the profile you want to unfollow
required: true
schema:
type: string
responses:
'200':
$ref: '#/components/responses/ProfileResponse'
'401':
$ref: '#/components/responses/Unauthorized'
'422':
$ref: '#/components/responses/GenericError'
security:
- Token: []
- Add missing domain objects such as
Profiledomain object if it doesn't exist &ProfileResponse. - Add
unfollowProfileoperation toUserPersistenceusingFollowingQueries - Create
profile.ktinroutesif does not exist, or adddeleteoperation there. - 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!
Hi Simon, could I take this one?