[EAJ] Rest documentation

Base64 get

Fetch all attachments based on Issue-key.

API -
{base-url}/jira/rest/easy-attachment-jira/1.0/content/{issue-key}/attachment

METHOD TYPE - GET

RESPONSE BODY-

[     {         "fileName": "test1.png",         "base64Data": "/9AAAAAAAAAA...." }, { "fileName": "test2.jpg", "base64Data": ""iVBORw0KGgoAAA..." }, . . . ]

Error retrieving attachment - null

<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <status>     <status-code>404</status-code>     <message>null for uri: http://localhost:2990/jira/rest/easy-attachment-jira/1.0/content//attachment</message> </status>

 


 

Base64 post

Upload attachment for any issue based on issue-key.

API -
{base-url}/jira/rest/easy-attachment-jira/1.0/content/{issue-key}/upload/base64

 

METHOD TYPE - POST

REQUEST BODY -

{     "base64Data":"data:image/jpeg;base64,/9j/4AAQSkZJR...." "fileName":"test1.jpg" }


RESPONSE BODY -