pmorie / osb-broker-lib

A go library for developing an Open Service Broker
Apache License 2.0
28 stars 23 forks source link

serviceID ,operation ,plan_id will always be nil #52

Open mackwong opened 4 years ago

mackwong commented 4 years ago

Accroding to https://github.com/openservicebrokerapi/servicebroker/blob/v2.12/spec.md#request-1, operation,operation,plan_id are in query,

/v2/service_instances/4510f942-43d8-41a7-8c4e-80a3c9ec3e1d/last_operation?operation=Deprovision&plan_id=ebd00cf7-3d2a-465f-b10c-b9b90a01badf&service_id=558888d1-f00a-3176-01e4-05cd2d68eb18

But because of following: https://github.com/pmorie/osb-broker-lib/blob/87d71cfbf3427836e5623f1e3843a466348b7be6/pkg/rest/apisurface.go#L257 https://github.com/pmorie/osb-broker-lib/blob/87d71cfbf3427836e5623f1e3843a466348b7be6/pkg/rest/apisurface.go#L261 https://github.com/pmorie/osb-broker-lib/blob/87d71cfbf3427836e5623f1e3843a466348b7be6/pkg/rest/apisurface.go#L265

operation,operation,plan_id will always be nil