rzepa_m
Contributor
Contributor

Brocade - Error code 415: Unsupported Media Type

We tried to create MP for Brocade switch. FOS REST API supports the XML (default) and JSON media types.
For the JSON media type, we have to include in the headers "application/yang-data+json". Unfortunately, Management Pack Builder does not support it and it include by default their media type "application/json" at the end of Accept.

Maybe somebody know any workaround for this, or how to force MPB to handle "application/yang-data+json" and not append application/json

Thank you for helping

Regards

Marcin 

3 Replies
marbogast
VMware Employee
VMware Employee

Hi Marcin,

Thanks for finding this issue. We were able to reproduce it and unfortunately we were not able to find a workaround. We will add support for custom Accept values (without appending application/json) in a future release of MP Builder.

Best regards,

Mark

0 Kudos
rzepa_m
Contributor
Contributor

Hi Mark,

Thank you for your answer
Do you know when next version of MPB will be available.

Regards

Marcin

0 Kudos
marbogast
VMware Employee
VMware Employee

Hi Marcin,

We are working on the 1.1 release now and plan on having it done as soon as possible, but we haven't announced a release date yet. We are going to try to add support for custom Accept headers in 1.1.

Best regards,

Mark

0 Kudos