RejectedSoftware Forums

Sign up

Nested path uda in rest interface

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);
		}
	}
}

Re: Nested path uda in rest interface

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.