Provided service broker API version is not supported: Expected Version = 2.4, Provided Version = null


Mark Spielman
 

I'm trying to explore Cloud Foundry services. To start I wanted to get the sample spring-boot-cf-service-broker-mongo running. When I launch this in cloud foundry or even outside of cloud foundry as a spring boot application, I get the following response when I poll the catalog:

http://localhost:8080/v2/catalog

{"description":"The provided service broker API version is not supported: Expected Version = 2.4, Provided Version = null"}

I saw these docs on the spring-boot-cf-service-broker README:

API version verification

By default, spring-boot-cf-service-broker will verify the version of the service broker API for each request it receives. To disable service broker API version header verification, provide a BrokerApiVersion bean that accepts any API version:

@Bean
public BrokerApiVersion brokerApiVersion() {
return new BrokerApiVersion();
}

I figure, I must be failing to disable the version header verification. But I'm not sure where to provide the BrokerApiVersion bean in the spring-boot-cf-service-broker-mongo sample. Would anyone be able to give me a few more pointers.

Thanks
Mark

Join cf-dev@lists.cloudfoundry.org to automatically receive all group messages.