toncenter / ton-http-api

HTTP API for TON (The Open Network)
https://toncenter.com
GNU General Public License v3.0
200 stars 36 forks source link

Add rapidoc documentation. Set it as default. #30

Closed heyqbnk closed 2 years ago

heyqbnk commented 2 years ago

RapiDoc provides better displayed documentation. It looks way better than ReDoc and Swagger and its the reason, why it was used here. I have used colors which are closer to TON project to make it look more adapted, but most part of colors are dark not to burn out the eyes.

Here is how docs look now: image

Additionally, set RapiDoc documentation as default. So, now, RapiDoc documentation is shown when visiting /api/v2/. Swagger docs were moved to /api/v2/swagger.

Added some comments and links in RapiDoc handler code about its customization.

slavafomin commented 2 years ago

Thank you for the work done.

I have used colors which are closer to TON project

The right color would be: #0088CC

screenshot-localhost-2022 03 18-18_31_39

Also, this looks weird ^

Can we fix it?