box-ui-elements icon indicating copy to clipboard operation
box-ui-elements copied to clipboard

feat(threaded-replies): modify Annotations.js

Open wpiesiak opened this issue 3 years ago • 0 comments

Modify Annotations (src/api/Annotations.js) to implement Threaded Replies requirements

  • modify getAnnotations function New param: shouldFetchReplies?: boolean if true add url param fields=replies

  • modify getAnnotation function New param: shouldFetchReplies?: boolean if true add url param fields=replies

  • modify updateAnnotation function New param status?: OPEN|RESOLVED|DELETED Include status field in PUT request

  • create getAnnotationReplies function Returns an array of replies for a given annotation id.  

  • create createAnnotationReply function Creates a reply for an annotation Request body:

{ message: “reply message” }

wpiesiak avatar Aug 11 '22 16:08 wpiesiak