error when exporting smartdocs model

Hi guys, when I'm trying to export a model in WADL file type from smart docs I'm getting this error,

"There was an error exporting the ‘ecomm test’ model."

While Export file type-SmartDocs JSON works fine.

screenshot-8.jpg

Note- I made the model by manually creating resources and methods. Can this be a reason I cannot export it in WADL format?

1 4 283
4 REPLIES 4

Dear @Barahalikar Siddharth ,

Manually creating resources and methods is not an issue. I can able to reproduce same using SAMPLE Weather API model. It's a bug in Developer Portal.

Log report says,

GET /v1/o/asagarnodeapp/apimodels/27a594af-7199-4d67-ab80-5a2b4bf3f7e4/revisions/latest?expand=yes&format=wadl HTTP/1.1

Host: api.enterprise.apigee.com

accept: text/xml

User-Agent: DevPortal/15.04.01.00 Guzzle/3.9.3 curl/7.32.0 PHP/5.3.29

Referer: http://dev-aniltest.devportal.apigee.com/admin/smartdocs/models/27a594af-7199-4d67-ab80-5a2b4bf3f7e4...

Authorization: Basic [**masked**]

Api call failed with error response

HTTP/1.1 406 Not Acceptable

Date: Thu, 28 May 2015 10:07:11 GMT

Content-Length: 0

Connection: keep-alive

It was due to accept header. Ideally accept header should be application/json instead of text/xml which is causing an issue. I have logged an issue with relevant team.

Hopefully you will see the issue fixed in next release of developer portal 🙂

Cheers,

Anil Sagar

Dear @Barahalikar Siddharth ,

For time being you can use below api call to export smartdocs as wadl.

https://:host/v1/organizations/:org/apimodels/:model/revisions/:rev?format=wadl

There is a post man collection too for SmartDocs APIs which helps you export SmartDocs as WADL.

Cheers,

Anil Sagar

Hi @Anil Sagar @ Google

Does this issue fixed? I was trying to export smartdoc model as WADL using management API https://:host/v1/organizations/:org/apimodels/:model/revisions/:rev?format=wadl , still i could see the 406 Not Acceptable when add accept as text/xml