Skip to content

Adding Context Path in Spring REST Docs with WebTestClient #944

Closed as not planned
@PremAhankare

Description

@PremAhankare

I'm trying to add a context path (e.g., /my-app) to the requests generated by Spring REST Docs when using WebTestClient. Currently, the generated cURL commands do not include the context path:

$ curl 'http://localhost:4444/accounts/123/dummy' -i -X GET

I would like them to reflect the context path, like this:

$ curl 'http://localhost:4444/my-app/accounts/123/dummy' -i -X GET

How can I achieve this?

Reference

Spring REST Docs Issue #135

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions