@@ -83,7 +83,7 @@ func (c *CAPIClient) IsAuthorized(sourceID, token string) bool {
8383 return true
8484 }
8585
86- uri = fmt .Sprintf ("%s/v2 /service_instances/%s" , c .externalCapi , sourceID )
86+ uri = fmt .Sprintf ("%s/v3 /service_instances/%s" , c .externalCapi , sourceID )
8787 req , err = http .NewRequest (http .MethodGet , uri , nil )
8888 if err != nil {
8989 log .Printf ("failed to build authorize service instance access request: %s" , err )
@@ -149,7 +149,7 @@ func (c *CAPIClient) AvailableSourceIDs(token string) []string {
149149 sourceIDs = append (sourceIDs , v .Guid )
150150 }
151151
152- req , err = http .NewRequest (http .MethodGet , c .externalCapi + "/v2 /service_instances" , nil )
152+ req , err = http .NewRequest (http .MethodGet , c .externalCapi + "/v3 /service_instances" , nil )
153153 if err != nil {
154154 log .Printf ("failed to build authorize service instance access request: %s" , err )
155155 return nil
@@ -169,7 +169,7 @@ func (c *CAPIClient) AvailableSourceIDs(token string) []string {
169169 }(resp )
170170
171171 if resp .StatusCode != http .StatusOK {
172- log .Printf ("CAPI request failed (/v2 /service_instances): %d" , resp .StatusCode )
172+ log .Printf ("CAPI request failed (/v3 /service_instances): %d" , resp .StatusCode )
173173 return nil
174174 }
175175
0 commit comments