SCORU/Node: generate OpenAPI spec
Context
This MR adds RPC endpoints /describe
and /openapi?protocol=<ProtocolHash>
and a new command for the node binary to generate the openAPI specification in JSON format (optionally for a given protocol).
The generated to openapi file is this one.
This MR subsumes !6440 (closed) which was abandoned a while ago.
Manually testing the MR
The following command should generate the JSON for protocol alpha on stdout.
octez-smart-rollup-node generate openapi
Edited by Alain Mebsout