Skip to content

Use function doc strings of functions to create API documetation for the services. #68

@RatanShreshtha

Description

@RatanShreshtha

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions