Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DELETE unfollow profile #156

Open
nomisRev opened this issue Sep 25, 2023 · 1 comment
Open

DELETE unfollow profile #156

nomisRev opened this issue Sep 25, 2023 · 1 comment
Assignees
Labels
hacktoberfest Tickets belonging to hacktoberfest

Comments

@nomisRev
Copy link
Owner

nomisRev commented Sep 25, 2023

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: []
  1. Add missing domain objects such as Profile domain object if it doesn't exist & ProfileResponse.
  2. Add unfollowProfile operation to UserPersistence using FollowingQueries
  3. Create profile.kt in routes if does not exist, or add delete operation there.
  4. 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!

@nomisRev nomisRev added the hacktoberfest Tickets belonging to hacktoberfest label Sep 26, 2023
@pabloaguilarmartinez
Copy link
Contributor

Hi Simon, could I take this one?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hacktoberfest Tickets belonging to hacktoberfest
Projects
None yet
Development

No branches or pull requests

2 participants