Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table of Contents

Get Project S3 Documents

GET http://localhost:8080/rest/projects3documents/1.0/utility/list/documents

...

Code Block
$ curl -u"user:password" -XGET http://localhost:8080/rest/projects3documents/1.0/utility/list \
/documents/?projectKey=SWTEST

Attach existing Amazon S3 Document

POST http://localhost:8080/rest/projects3documents/1.0/utility/attach/documents

...

Code Block
$ curl -u"user:password" -XPOST \
http://localhost:8080/rest/projects3documents/1.0/utility/attach/documents \
-H "Content-Type: application/json" --data "{\"projectKey\":\"SWTEST\",\"documentKey\": \
\"test2/README\"}"
{"status":17,"message":"[Info] Project S3 Document has been attached."}
$

Detach Amazon S3 Document on Jira

DELETE http://localhost:8080/rest/projects3documents/1.0/utility/detach/document

...

Code Block
$ curl -u"user:password" -XDELETE \
"http://localhost:8080/rest/projects3documents/1.0/utility/detach/document/?projectKey=SWTEST&documentId=17"
{"status":17,"message":"[Info] S3 Document has been detached."}
$

Code Utilities REST API