@Target(value={FIELD,METHOD}) @Retention(value=RUNTIME) public @interface RestResource
If you create a RestServlet like the following example, a valid resource path could be http://localhost:8080/rest/type/name depending on your context root.
@WebServlet("/rest/*")
public class Rest extends RestServlet {
@RestResource("/type/{name}")
MyType gallery;
}
public abstract String value
public abstract Operation[] allowedOperations
Copyright © 2019. All rights reserved.