Closed semuxgo closed 4 years ago
Maybe consider taking method 'safety' into consideration to better support what uses local wallet and what is gneric. Current public apis have to whitelist/blacklist based on which they choose that can be public
Or make 'local wallet' only API separate port/config option to aid in spinning up a consistent public facing api
Good point. I briefly looked at the HTTP method types being used. 99% of the GET methods are safe to be exposed to public.
If we're okay with the following definition:
we can then add a flag to allow users to enable GET methods only if they want to make a public facing API.
Hm. I don't think submit raw tx can be a GET due to url length? But I like where this isngoing
Bumped the HTTP request size limits. Commit: 51fb2c186120785202d6541ecdfb50e714029bb9
Tested, working with both Java Client and Chrome.
Ah. Ok. Thanks
Description
This PR assigns endpoints to different categories, which include
Additional changes are also included:
/syncing
with/syncing-status
;~/call
with/local-call
;/transaction/raw
with/broadcast-raw-transaction
;~/transaction/raw
;POST /account
andDELETE /account
;/create-account
and/delete-account
;/local-create
;/broadcast-raw-transaction
.Test Plan
Existing tests
Related issues and/or PRs
N/A