Is it possible to nest the path uda in the rest interface definition? Like so:
interface ExampleNestedPathUda {
@path("root") {
void getRootResource();
@path(":nr") {
void getSub(int _nr);
}
}
}
Is it possible to nest the path uda in the rest interface definition? Like so:
interface ExampleNestedPathUda {
@path("root") {
void getRootResource();
@path(":nr") {
void getSub(int _nr);
}
}
}
Am 21.08.2016 um 08:07 schrieb Sebastiaan Koppe:
Is it possible to nest the path uda in the rest interface definition? Like so:
interface ExampleNestedPathUda { @path("root") { void getRootResource(); @path(":nr") { void getSub(int _nr); } } }
Not possible like that, but you can put a @path
UDA on the interface
itself. Might be interesting to enable this kind of chaining, though,
even if my original idea was to use nested interfaces/collections for
nested paths.