-
Notifications
You must be signed in to change notification settings - Fork 739
Closed
Labels
type: documentationChanges to the documentationChanges to the documentation
Milestone
Description
I am generating spring rest docs using mock mvc and I see that my doc always contains a port value (its either 8080 if I do not override it with a custom one or its the custom port value I provide). I am not sure if this is possible but I was looking for a way to omit the port from my request and response (in the snippets particularly).
For example my curl-request.adoc looks like this (I have set no port value)
[source,bash]
----
$ curl 'https://mylocalhost:8080/myapp' -i
----
and the @before method in my junit looks like this:
this.mockMvc = MockMvcBuilders.webAppContextSetup(this.context).apply(documentationConfiguration(this.restDocumentation).uris().withScheme("https").withHost("mylocalhost")).build();
Is it possible for the curl-request.adoc to look as follows without the port?
[source,bash]
----
$ curl 'https://mylocalhost/myapp' -i
----
Thanks for any help in this regard!
gchnick
Metadata
Metadata
Assignees
Labels
type: documentationChanges to the documentationChanges to the documentation