Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Fetching a raw file as application/json

Johan Ferner April 28, 2017

Hello!

We are evaluating oharagroup.confluence.plugins.confluence-open-api and want to store the swagger yaml in bitbucket server.

The addon in confluence contacts Bitbucket server using:

* a URL: http://git/projects/TDF/repos/test/raw/swagger.yaml
* with request headers "accept: application/json;charset=utf-8,*/*"

This results in a 404.

A request header "Accept: */*" works and delivers the content as text/plain.

Any ideas how I can get this working?

Thanks,

Johan

1 answer

1 vote
Deleted user December 17, 2017

The issue is reported here: https://jira.atlassian.com/browse/BSERV-10138

You can use the suggested workaround, i.e. add mvc before /projects/ in the URL: http://git/mvc/projects/TDF/repos/test/raw/swagger.yaml

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events