box-ui-elements
box-ui-elements copied to clipboard
feat(threaded-replies): modify Annotations.js
Modify Annotations (src/api/Annotations.js) to implement Threaded Replies requirements
-
modify getAnnotations function New param:
shouldFetchReplies?: booleanif true add url paramfields=replies -
modify getAnnotation function New param:
shouldFetchReplies?: booleanif true add url paramfields=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” }