Get ticket comments and details

hi
im new user of RT .
i want to get ticket details from apis
the data that I need is ticket subject , content , status,and the most important one is comments
i try to do it by api but REST 2 api dont show me comments in a clear way
maybe I dont know how to use but I can’t find a clear and optimize way for that
the way i found is :

  • get Subject , Status from this
    API : rt_server//REST/2.0/ticket/<thicket_id>
    note : (ITS DO NOT CONTAIN TICKET CONTENT)

  • get thickets histories type comments from this
    API: rt_server/REST/2.0/ticket/285/history?per_page=5&page=1&fields=Type&&query=Type%3DComment

    note : (ITS DONT CONTAIN COMMENTS CONTENT JUST SHOW TRANSACTIONS) :face_with_raised_eyebrow:
    (and I think I found a bug in this APi that create anothrer topic for it)

  • know i have thicket Comments tansactions :face_with_raised_eyebrow: but its not clear content

  • for each transaction I should get transaction details from this
    API : rt_server//REST/2.0/transaction/transaction_id

    note : (**that contain all transaction attachment **)

  • now I have all attachment for a comment transaction so for each attachment that I have shoud call attachment api to get the content and content type
    API : rt_server//REST/2.0/attachment/attachment_id?fields=ContentType,Content,Filename

  • after all that I should arrange this content

Am I going a wrong way? or its really should be in this way ?