View Source Swagdox.PathBuilder (swagdox v0.1.3)

Builds paths from a router by calling the routes function.

We can then use the Endpoint.extract_all/1 function to extract the API specification from the controller modules.

Summary

Functions

@spec build_paths(module()) :: [Swagdox.Path.t()]
Link to this function

build_router_paths(routes)

View Source
@spec build_router_paths([Swagdox.Path.route()]) :: [Swagdox.Path.t()]