In the bitbucket server doc (https://confluence.atlassian.com/bitbucketserver/enhancements-to-your-code-review-workflow-1014275076.html), I see this note:
We've got your code covered (released 7.0)
This code coverage can be shown in the diff view gutter:
But it seems it doesn't have any details about how to provide code coverage data to the Bitbucket server.
I have a Bitbucket server running on-premise, when I click a file in the pull request page, a XHR request will be sent to
GET /rest/insights/latest/{projectKey}/{repositorySlug}/pull-requests/{pullRequestId}/coverage/{filePath}
but I can't find any REST API I can POST or PUT data for code coverage to.

