Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Bitbucket API Swagger definition throws error

Ian Newson
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 11, 2018

Hi, the swagger definition at https://bitbucket.org/api/swagger.json?_ga=2.266811975.819807041.1544523433-438775995.1506441662 produces errors.

 

The specific error I'm seeing is:

"Required property 'responses' not found in JSON. Path 'paths['/repositories/{username}/{repo_slug}/properties/{app_key}/{property_name}'].put', line 8379, position 15."

(The line number refers to  a beautified version of the original)

I have tried to generate a client from the Swagger file using NSwaggerStudio and the web based tool at http://editor.swagger.io. Both tools error, although I'm not shown a specific error message with the latter.

 

My company is migrating to Bitbucket, but we can't easily migrate our repositories without access to the API.

 

Please can you provide a fixed API definition?

1 answer

1 accepted

1 vote
Answer accepted
Ana Retamal
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 12, 2018

 

Hi Ian, welcome to the Community! 

For questions like this one, you'll have better chances of getting a more precise response if you post it in our Developer Community

Hope that helps,

Ana

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events