Ganjoor

post new comment (Auth)

Changed on
post/api/ganjoor/comment

Request

  • Base URL
    https://api.ganjoor.net (the document declares no server; this is the origin it was published from)
  • Auth
    API key in header Authorization

Request body

poemIdinteger

Poem Id

htmlCommentstring nullable

comment

inReplyToIdinteger nullable

in reply to

coupletIndexinteger nullable

couplet index - send null for unrelated to a couplet comment

Response

OK

idinteger

Id

authorNamestring nullable

author name (MySql imported field)

authorUrlstring nullable

author url (MySql imported field)

commentDatestring date-time

comment date

htmlCommentstring nullable

comment

publishStatusstring nullable

status

inReplyToIdinteger nullable

in reply to

userIdstring uuid nullable

User Id

repliesGanjoorCommentSummaryViewModel[] circular
myCommentboolean

this can be used by clients

coupletIndexinteger

couplet index

coupletSummarystring nullable

couplet summary

isBookmarkedboolean

for client

likeCountinteger

Total likes

dislikeCountinteger

Total dislikes

currentUserRatingValueinteger

+1 = Like -1 = Dislike

Changes

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status