Skip to content

AdminApiMappingBuilder WithPath should add the starting / if missing #1376

Description

@AdrianoAE

Is your feature request related to a problem? Please describe.
When doing the setup of an endpoint, it's easy to miss the starting / and unless you are aware of it, it's hard to nail down why things are not working.

Describe the solution you'd like
Instead of forcing the developer to either add or check on every setup, simply check within the WithPath call and either throw an exception or better option simply prefix the path with it

Is your feature request supported by WireMock (java version)? Please provide details.
I don't know, but it's simple and can save a lot of headaches

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions