Skip to content

REST saga 2/3: Add REST endpoints to all RPCs#4251

Merged
guggero merged 5 commits into
lightningnetwork:masterfrom
guggero:rest-2-subservers
Jun 4, 2020
Merged

REST saga 2/3: Add REST endpoints to all RPCs#4251
guggero merged 5 commits into
lightningnetwork:masterfrom
guggero:rest-2-subservers

Conversation

@guggero

@guggero guggero commented May 6, 2020

Copy link
Copy Markdown
Collaborator

This is part 2 of 3 of the REST improvement saga which will ultimately replace #4141:

Fixes #4329.

@Roasbeef

Copy link
Copy Markdown
Member

First part in, can be rebased now.

@Roasbeef Roasbeef left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mainly some commentary w.r.t the new REST paths

Comment thread lnrpc/chainrpc/chainnotifier.proto Outdated
Comment thread lnrpc/walletrpc/walletkit.proto Outdated
Comment thread lnrpc/walletrpc/walletkit.proto Outdated
Comment thread lnrpc/watchtowerrpc/watchtower.proto Outdated
Comment thread rpcserver.go Outdated
@guggero guggero added this to the 0.11.0 milestone May 12, 2020
@Roasbeef

Copy link
Copy Markdown
Member

Ready to leave draft now?

@guggero guggero force-pushed the rest-2-subservers branch from c38ab56 to 748889a Compare May 23, 2020 12:19
@guggero guggero changed the title [WIP] REST saga 2/3: Add REST endpoints to all RPCs REST saga 2/3: Add REST endpoints to all RPCs May 23, 2020
@guggero guggero marked this pull request as ready for review May 23, 2020 12:20
@guggero guggero requested a review from cfromknecht as a code owner May 23, 2020 12:20
@guggero guggero requested a review from Roasbeef May 23, 2020 12:20
@guggero guggero force-pushed the rest-2-subservers branch 2 times, most recently from db7e6e7 to e2b0a6b Compare May 23, 2020 12:37

@Roasbeef Roasbeef left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🎊

Really nice to have all these gaps filled. There's an upcoming informal meeting amongst a lot of lnd users, so we might want to hold off on merging this until we get some of their feedback w.r.t name-spacing. Alternatively, we can merge this early then follow up with feedback later, given we'll need to bundle this with a release ultimately.

Comment thread go.sum Outdated
Comment thread lnrpc/routerrpc/router.proto Outdated
@guggero

guggero commented Jun 3, 2020

Copy link
Copy Markdown
Collaborator Author

Reworked the PR to implement the suggestion in #4329 and added a very simple check to make rpc-check that makes sure every new RPC is added to the lnrpc/rest-annotations.yaml file.

@guggero guggero requested a review from Roasbeef June 3, 2020 09:24

@cfromknecht cfromknecht left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🚀

Comment thread Makefile Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@Roasbeef Roasbeef left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM ⛽️

@guggero guggero force-pushed the rest-2-subservers branch from 9b99481 to 19e3dc6 Compare June 4, 2020 06:54
@guggero guggero merged commit be36776 into lightningnetwork:master Jun 4, 2020
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.

Moving rest-gateway http annotations to seperate files

3 participants