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

Get trust relationship by id endpoint #396

Merged
merged 2 commits into from
Aug 21, 2023

Conversation

pranavkparti
Copy link
Collaborator

Description

The endpoint GET /trust_relationships/:id is implemented to get details of a specific trust relationship.

Issue(s) addressed
Resolves #395.

What kind of change(s) does this PR introduce?

  • Enhancement
  • Bug fix
  • Refactor

Please check if the PR fulfills these requirements

  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

Issue

What is the current behavior?
The endpoint GET /trust_relationships/:id is not implemented.

What is the new behavior?

  • For a trust relationship id that exists and is associated with the logged in wallet, the server returns the trust relationship with 200 code:
    image

  • For a non-existent id, or for a trust relationship that is not associated with the wallet, the server returns 404 error:
    image

Breaking change

Does this PR introduce a breaking change?
No.

Other useful information

None.

@Kpoke Kpoke merged commit 4a0d084 into Greenstand:master Aug 21, 2023
1 check passed
@github-actions
Copy link

🎉 This PR is included in version 1.24.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

Implement GET /trust_relationships/:id endpoint
2 participants