[bisq-network/bisq] Add REST API for DAO data (PR #6184)

chimp1984 notifications at github.com
Sun May 1 14:27:59 CEST 2022


This is a REST API prototype for DAO data required for Bisq 2.
In its current form it uses a super simple http server and lack swagger support.
The PR is not intended for merge, but rather that some dev use that as base for a production ready implementation.

The REST API could be used also for BSQ explorer use case, but should get some input from @wiz and Simon what would be the best approach.

Also there are some rough plans to add a REST API for normal Bisq trade use case. I would prefer to postpone that as a separate project as it would be a much larger project with a different security context.

This API is intended for private node use case only (e.g. Bisq2 bridge client running on same server, BSQ explorer,...), not for public access. In case a public access use case is desired it should be limited to read only API functionality, thus limiting the risks to dos.

@ghubstan Would you have bandwidth to work on that? If so, can you make a rough estimation and roadmap for the missing parts? See various TODOs in the code for the parts which require more work. 
You can view, comment on, or merge this pull request online at:

  https://github.com/bisq-network/bisq/pull/6184

-- Commit Summary --

  * Add daonode module
  * Add comment for how to update metadata file
  * Add simple server with 2 rest endpoints
  * Enable shadow plugin
  * Use getProofOfBurnTxs not getBurntFeeTxs
  * Add support for query, extract controller

-- File Changes --

    M build.gradle (30)
    A daonode/src/main/java/bisq/daonode/DaoNode.java (65)
    A daonode/src/main/java/bisq/daonode/DaoNodeMain.java (215)
    A daonode/src/main/java/bisq/daonode/controller/ProofOfBurnController.java (78)
    A daonode/src/main/java/bisq/daonode/controller/RestController.java (33)
    A daonode/src/main/java/bisq/daonode/dto/ProofOfBurnDto.java (39)
    A daonode/src/main/java/bisq/daonode/service/DaoNodeService.java (92)
    A daonode/src/main/resources/logback.xml (15)
    M gradle/README.md (11)
    M gradle/verification-metadata.xml (2389)
    M settings.gradle (1)

-- Patch Links --

https://github.com/bisq-network/bisq/pull/6184.patch
https://github.com/bisq-network/bisq/pull/6184.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/bisq-network/bisq/pull/6184
You are receiving this because you are subscribed to this thread.

Message ID: <bisq-network/bisq/pull/6184 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bisq.network/pipermail/bisq-github/attachments/20220501/5b075632/attachment.htm>


More information about the bisq-github mailing list