Rate this page:
This page describes how to send feedback from your cloud app to the server app, and how to fetch feedback in your server app about the migration.
Your cloud app can use the Feedback channel API to send feedback about the migration to your server app.
New feedback will overwrite any existing feedback. The feedback object is a Optional<Map<String, Object>>
.
About the Feedback channel API
Use the following endpoint to send feedback from your cloud app to the server app:
Method | Endpoint |
---|---|
POST | migration/feedback/{transferId} |
In the endpoint above, specify the {transferId}
that you want to send feedback about.
This section shows you an example of a request and response to send feedback.
Sample request
1 2curl -X POST "https://your-site.atlassian.net/rest/atlassian-connect/1/migration/feedback/26925583-10bd-49fb-b67c-15fc2447a97b" \ --header 'Content-Type: application/json' \ --data-raw '{"details": {"key1":["your feedback1"],"key2":"value"}}'
Sample response
1 2200 OK
The example above is part of our sample app.
Your server app can use the App cloud migration library to retrieve feedback about the migration sent by your cloud app.
1 2Optional<Map<String, Object>> cloudFeedbackResponse = gateway.getCloudFeedbackIfPresent(transferId);
Rate this page: