massa icon indicating copy to clipboard operation
massa copied to clipboard

API refactoring

Open damip opened this issue 2 years ago • 1 comments

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

damip avatar Sep 24 '22 07:09 damip

@aoudiamoncef (no need to start yet, I'm just preparing the project so that you can start efficiently when you arrive :) )

damip avatar Sep 24 '22 09:09 damip

related to https://github.com/massalabs/massa/issues/2799

aoudiamoncef avatar Nov 02 '22 10:11 aoudiamoncef