I want make Swagger specification for my API. But customers use my API can create and delete some entity on server. Each entity have only one type and can include other entity.
Example of API:
http:/localhost/api/<entity_lv_1>
http:/localhost/api/<entity_lv_1>/<entity_lv_2>
http:/localhost/api/<entity_lv_1>/<entity_lv_2>/<entity_lv_3>
And my rest controller have mapping /**
for catch all of them.
I try make mapping with regexp:
@GetMapping(value = /{entityLv1}/{entityLv2:[a-z0-9_-]+/*})
But it not work fine, because server can't processed request with entity_lv_3
correctly.