Block -> Swagger

Swagger block let's you add documentation and to your Rubik REST APIs and serve as a tool for people to know and interact with your server.


Add this to main.go of your rubik server

_ ""


  • Add Swagger Information about your server into config/default.toml file:
title = "my rubik server"
description = "this is my awesome rubik server"
version = "1.0.1"
termsOfService = ""
  • Go to SERVER_URL/rubik/docs - replace SERVER_URL with your rubik server Base URL.