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.
Note- I made the model by manually creating resources and methods. Can this be a reason I cannot export it in WADL format?
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
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
FYI, @Marsh Gardiner , @Chris Novak , @cesar
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
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
User | Count |
---|---|
5 | |
2 | |
2 | |
1 | |
1 |