Class AnnotationAdapter

All Implemented Interfaces:
AdapterResource, Resource, Adaptable

@Produces("application/json") public class AnnotationAdapter extends DefaultAdapter
Since:
10.1
  • Field Details

  • Constructor Details

    • AnnotationAdapter

      public AnnotationAdapter()
  • Method Details

    • createAnnotation

      @POST public jakarta.ws.rs.core.Response createAnnotation(Annotation annotation)
    • getAnnotations

      @GET public List<Annotation> getAnnotations(@QueryParam("xpath") String xpath)
    • getComments

      @GET @Path("comments") @Deprecated(since="11.3") public List<Comment> getComments(@QueryParam("annotationIds") List<String> annotationIds)
      Deprecated.
      since 11.3, use getCommentsFromBody(String) instead
    • getCommentsFromBody

      @POST @Path("comments") public List<Comment> getCommentsFromBody(String payload)
    • getAnnotation

      @GET @Path("{annotationId}") public Annotation getAnnotation(@PathParam("annotationId") String annotationId)
    • getExternalAnnotation

      @GET @Path("external/{entityId}") public Annotation getExternalAnnotation(@PathParam("entityId") String entityId)
    • updateAnnotation

      @PUT @Path("{annotationId}") public Annotation updateAnnotation(@PathParam("annotationId") String annotationId, Annotation annotation)
    • updateExternalAnnotation

      @PUT @Path("external/{entityId}") public Annotation updateExternalAnnotation(@PathParam("entityId") String entityId, Annotation annotation)
    • deleteAnnotation

      @DELETE @Path("{annotationId}") public jakarta.ws.rs.core.Response deleteAnnotation(@PathParam("annotationId") String annotationId)
    • deleteExternalAnnotation

      @DELETE @Path("external/{entityId}") public jakarta.ws.rs.core.Response deleteExternalAnnotation(@PathParam("entityId") String entityId)