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

Mohit branch #4

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

MohitSharma-21
Copy link
Member

@MohitSharma-21 MohitSharma-21 commented Aug 7, 2021

CSOC week 5 Submission

Tasks Completed

  • Task 1: Complete all the basic endpoints
  • Task 2: Implement collaborator feature

End points for collaborator

Both the end points takes the username of collaborator to be added or remove as input and user token as the authorization header with the prefix Token.

  • Add collaborator : PATCH /todo/:id/add-collaborators/

  • Remove collaborator : PATCH /todo/:id/remove-collaborators/

    Request Body (Sample) :

    {
      "username": "username of collaborator",
    }
    

    Response Body (Sample) :

    {
      "collaborators": [{"username of collaborators"}],
      "title": "string",
      "createdBy":"string"
    }
    

    Response Code: 200

Submission

Repo

@K-Kumar-01 K-Kumar-01 added Judged and removed Judged labels Aug 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants