Skip to content

Expose source location in API definition #295

Closed
@dblock

Description

@dblock

It used to be possible to get access to the original API block at runtime via env['api.endpoint'].block, so you could do something like env['api.endpoint'].block.source_location to figure out where the API was actually defined.

Since 3bbb4fe we create an anonymous method, then drop it, losing this information.

For debugging purposes it would be useful to expose block properties at the level of the endpoint.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions