I would like to suggest that there should be a way to create API documentation for the services exposed through firefly using the function doc string for example:
def square(n):
"""Function that returns square of a number.
Args:
n (int): The first parameter.
Returns:
Square of the number n
"""
return n**2
And once it is exposed as a service then the documentation will be available at some URL something like /docs/square