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

Add POST /peer route handler #1802

Closed
3 tasks
Tracked by #1761
mkurapov opened this issue Aug 29, 2023 · 0 comments · Fixed by #1849
Closed
3 tasks
Tracked by #1761

Add POST /peer route handler #1802

mkurapov opened this issue Aug 29, 2023 · 0 comments · Fixed by #1849
Assignees

Comments

@mkurapov
Copy link
Contributor

mkurapov commented Aug 29, 2023

Context

By adding a POST /peer route handler, we can supply the peer information that it needs to make the peering connection on its own side, as well as return the necessary information for the requesting Rafiki to create the peer locally. This route will be the main connection point between two peers trying to connect, and exchange peering information.

Todos

  • Create a POST /peer handler to the existing "peering" service built in Add GET /peer discoverability route #1763. The request will take in { staticIlpAddress, ilpConnectorAddress, asset: { code, scale }, httpToken } as the arguments.

Within the handler:

  • Call the peerService.createPeer method internally, to create the (requesting) peer locally in the DB
  • If peering creation was successful, return the configured staticIlpAddress ilpConnectorAddress so the requesting peer can connect on it's own end
@github-project-automation github-project-automation bot moved this to Backlog in Rafiki Aug 29, 2023
@mkurapov mkurapov changed the title Add POST /peer route handler Add POST /peer route handler Aug 29, 2023
@mkurapov mkurapov mentioned this issue Aug 22, 2023
3 tasks
@mkurapov mkurapov moved this from Backlog to Todo in Rafiki Aug 30, 2023
@mkurapov mkurapov self-assigned this Aug 30, 2023
@mkurapov mkurapov moved this from Todo to In Progress in Rafiki Sep 1, 2023
@sabineschaller sabineschaller added this to the v1.0.0-alpha.3 milestone Sep 5, 2023
@github-project-automation github-project-automation bot moved this from In Progress to Done in Rafiki Sep 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants