Hi Francesco,

The generator checks which operations are the same path operations, I've checked the code and it also compares a number of path and matrix parameters, so PUT was also sharing the same root resource, before it had a keyId method parameter.

If PUT where inside a keyId resource then the reverse generation would produce a put method with a PathParam.

We can add a configuration option to make sure PUT ends up in the same block with GET/DELETE, but as I mentioned that would imply a generated Java PUT method would end up with PathParam - that can be done if you prefer it

Thanks, Sergey
On 14/07/15 10:46, Francesco Chicchiriccò wrote:
Hi all,
any obvious reason why two distinct resources with path "/{key}" [1] are
generated from [2]?

TIA
Regards.

[1] https://paste.apache.org/lQbF
[2]
https://github.com/apache/syncope/blob/master/common/rest-api/src/main/java/org/apache/syncope/common/rest/api/service/AnyTypeService.java



Reply via email to