posts
post/api/posts/{id}/react

Request

  • The document declares no server URL.
  • Auth: none declared

Path parameters

idstring required

Request body

type'HELPFUL' | 'LOVE' | 'FIRE' | 'WOW' | 'SALUTE' | 'FUNNY' required

Response

idstring required
type'NOTE' | 'OLD_QUESTION' | 'EXERCISE' required
status'PENDING' | 'APPROVED' | 'REJECTED' required
publicationStatus'PUBLISHED' | 'PENDING_REVIEW' | 'REJECTED' required
trendingScorenumber required
isAnonymousboolean required
titlestring nullable
descriptionstring nullable
externalUrlstring nullable
summarystring nullable
summarizedAtstring date-time nullable
contentWarningstring nullable
examYearnumber nullable
moduleNumbernumber nullable
yearnumber nullable
semesternumber nullable
shortCodestring required
isOwnerboolean required
createdAtstring date-time required
updatedAtstring date-time required
savedByCurrentUserboolean required
viewsnumber required
reactionCountsobject required

Map of ReactionType to count

userReactionstring nullable

Changes

    • info

      added the optional property // to the response with the status

    • info

      added the required property // to the response with the status

    • warning

      added the new EXERCISE enum value to the //// response property for the response status

    • info

      removed the ASSIGNMENT enum value from the //// response property for the response status