-
Dominique authored
* Added the `convert` endpoint - Controller, service, response type * Removed getPair * SS58 Address from Public key (hex) - Using the query param `publicKey` to output the SS58 address if the input/parameter that is given by the user is a Public Key (hex) and not an accountID. * Changes in validation code & Adding tests - Added specific types that the `RequestHandler` can accept. - Cleaned the code that validates the query params (and sets default values) in the Controller. - Added tests with different valid or invalid endpoints to check. * Updated the Docs - Updated the docs with the `convert` endpoint functionality & path & query params. * Changes in the docs based on Tarik's feedback - Keeping the "AccountId" written with the same format. - Other minor changes in formatting. * Changes in code & formatting based on Tarik's feedback * Minor change in the docstrings * refactor controller to use validateBoolean Co-authored-by: tarikgul <[email protected]>