Name of a SubResource in REST Module

In the SwaggerSpecficationCreator, path of a sub-resource is considered as it’s name.

For example the name of LocationAttributeResource (which is a sub-resource of Location) is considered just attribute, which I believe is wrong.

Shouldn’t the name ideally be location/attribute (parent-name/sub-name)?

And these path values are passed to other methods as resourceNames which caused problems. For example passing attribute as resourceName to the below method would possibly cause mis-matches.

@pascal what is your take on this? :smile: