massa
massa copied to clipboard
API refactoring
Refactor the API:
1 - specify the business needs with Core, the Innovation team, direct users (eg. Dusa) and the community Builders. Try to split endpoints as much as possible. Use snake_case everywhere (https://github.com/massalabs/massa/pull/2823). Decide if we fuse the private/public APIs and allow finer access control through other means.
2 - write a new API that uses https://github.com/paritytech/jsonrpsee crate and:
- enable HTTPS and optional client authentication
- decide if we enable more advanced per-endpoint access control
- enable call batching to read/write time-consistent information
- allow websocket streaming to enable https://github.com/massalabs/massa/discussions/2895 and stream events for SC applications (@BatiGencho)
- enable rate limiting
@aoudiamoncef (no need to start yet, I'm just preparing the project so that you can start efficiently when you arrive :) )
related to https://github.com/massalabs/massa/issues/2799