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

Connections management #1

Open
21 tasks
bambooSocks opened this issue May 16, 2020 · 0 comments
Open
21 tasks

Connections management #1

bambooSocks opened this issue May 16, 2020 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@bambooSocks
Copy link
Member

bambooSocks commented May 16, 2020

User stories:

  • As a Person, I want to be able to send a connection request to other Persons.
  • As a Person, I want to be able to delete (cancel) a connection request to other Persons.
  • As a Person with pending request, I want to be able to accept the pending request.
  • As a Person with pending request, I want to be able to decline the pending request.
  • As a Person, I want to be able to query my connections.
  • As a Person, I want to be able to query my connection requests.
  • As a Person, I want to be able to remove my connection.

Subtasks:

  • Model:
    • Create Person class
    • Create Connection class
    • Create ConnectionRequest class
  • Controllers:
    • Create ConnectionController class with endpoints:
      • GET /connections - query all Connections for a specified Person
      • DELETE /connections/{id} - delete Connection by id
      • GET /connections/requests - query all ConnectionRequests for a specified Person (both receiving and sending)
      • DELETE /connections/requests/{id} - delete ConnectionRequest by id (used for canceling and denying a request)
      • POST /connections/requests - create a ConnectionRequest (Person JSON)
      • POST /connections/requests/accept/{id} - accepts a pending ConnectionRequest
  • Repository:
    • Create ConnectionRepository class that can:
      • query Connections for a Person
      • create Connection and store it in the database
      • remove Connection from the database
    • Create ConnectionRequestRepository class that can:
      • query ConnectionRequests for a Person
      • create ConnectionRequest and store it in the database
      • remove ConnectionRequest from the database
  • Services:
    • ? Service to handle Person logic
    • Service to handle Connection logic
    • Service to handle ConnectionRequest logic
@bambooSocks bambooSocks changed the title connection request Connections management May 22, 2020
@bambooSocks bambooSocks added the enhancement New feature or request label May 22, 2020
@bambooSocks bambooSocks self-assigned this May 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant