Skip to content

Produce URI Snippet #299

@hughwphamill

Description

@hughwphamill

It would be useful to be able to document a resources URI as part of documenting a given resource, this could use the custom scheme, server and port as configured in mock mvc.

It would be great if it could also include placeholders so output could something like

http://api.example.com/resources

for a collection, or

http://api.example.com/resources/{id}

For an individual resource

Bonus points if it could also produce a path variable table that could describe path variables like {id} above.

This would be obviously useful to document consumers, but also for producers as they wouldn't have to coordinate between the request snippets produced by restdocs and 'hardcoded' URIs in the asciidoc templates.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: enhancementEnhancement that adds a new feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions