Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • C connection-manager
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 4
    • Issues 4
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 1
    • Merge requests 1
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Gaia-X
  • Organization Credential ManagerOrganization Credential Manager
  • connection-manager
  • Issues
  • #9
Closed
Open
Issue created Feb 22, 2022 by Sagar Khole@sagar.kholeDeveloper

Connection List API

Description

Rest API to get a list of connections for a specific participant.

Get all Connections API.

  • Endpoint: GET /v1/connections/?pageSize=10&page=0&participantId=Dp4ko8FieZztP6iSdR69pM

Libraries

  • pg
  • prisma

Expected Input

/v1/connections/?pageSize=10&page=0&participantId=Dp4ko8FieZztP6iSdR69pM

Expected Output

  • should return a list of connections depending on input parameters.
{
    "statusCode": 200,
    "message": "Connections fetch successfully",
    "data": [
        {
            "id": 1,
            "connectionDate": "2022-03-08T15:25:43.999Z",
            "connectionURL": "",
            "did": "EuCY8bQnRMPrf3MwZo3d1G",
            "status": "invited",
            "connectionId": "265160e1-12f6-4b76-8bff-2d239c83b4de",
            "theirDid": "",
            "theirLabel": ""
        },
        {
            "id": 2,
            "connectionDate": "2022-03-08T15:26:11.312Z",
            "connectionURL": "",
            "did": "3E12AjxFsaWQnPUifuUgkm",
            "status": "requested",
            "connectionId": "0ae4c51c-bd6b-4e50-8512-3b39e27222ff",
            "theirDid": "9seYMDYZ2XV74B2TU8qxo6",
            "theirLabel": "invitee"
        }
    ]
}

Steps to test

  • participants id should be provided to get the list of connections against participants
  • If we do not provide participants' id response status will be a bad request(400)
  • if we do not provide page size default it should take 10.

Dependencies

  • Need to finalise connection schema and request and response parameters with @suneet.aw and @team

Blocker

  • NA
Edited Apr 06, 2022 by Sagar Khole
Assignee
Assign to
Time tracking