Commit ac114ba
committed
fix: add service_id and plan_id to OSBAPI (service) fetch endpoints
Add optional service_id and plan_id query parameters to fetch_service_instance
and fetch_service_binding broker requests, matching the pattern used by
last_operation endpoints.
Enables delegate/router brokers to route fetch requests without falling back
to trying all sub-brokers. While optional per OSBAPI spec, these parameters
are helpful hints that CC already has available. An aim of a platform (like CC)
is to make it easier to write brokers - especially stateless brokers, so low
cost hints like this bring the code in line with the product aims.
- [x] I have reviewed the contributing guide
- [x] I have viewed, signed, and submitted the Contributor License Agreement
- [x] I have made this pull request to the `main` branch
- [x] I have run all the unit tests using `bundle exec rake`
- [ ] I have run CF Acceptance Tests1 parent 6d5b46b commit ac114ba
File tree
4 files changed
+53
-8
lines changed- lib/services/service_brokers/v2
- spec
- request
- unit/lib/services/service_brokers/v2
4 files changed
+53
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
312 | 312 | | |
313 | 313 | | |
314 | 314 | | |
315 | | - | |
| 315 | + | |
316 | 316 | | |
317 | 317 | | |
318 | 318 | | |
319 | 319 | | |
320 | 320 | | |
321 | | - | |
| 321 | + | |
322 | 322 | | |
323 | 323 | | |
324 | 324 | | |
| |||
407 | 407 | | |
408 | 408 | | |
409 | 409 | | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
410 | 418 | | |
411 | 419 | | |
412 | 420 | | |
413 | 421 | | |
414 | 422 | | |
415 | 423 | | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
416 | 432 | | |
417 | 433 | | |
418 | 434 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1515 | 1515 | | |
1516 | 1516 | | |
1517 | 1517 | | |
| 1518 | + | |
1518 | 1519 | | |
1519 | 1520 | | |
1520 | 1521 | | |
| |||
2121 | 2122 | | |
2122 | 2123 | | |
2123 | 2124 | | |
| 2125 | + | |
2124 | 2126 | | |
2125 | 2127 | | |
2126 | 2128 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
844 | 844 | | |
845 | 845 | | |
846 | 846 | | |
| 847 | + | |
847 | 848 | | |
848 | 849 | | |
849 | 850 | | |
| 851 | + | |
850 | 852 | | |
851 | 853 | | |
852 | 854 | | |
| |||
856 | 858 | | |
857 | 859 | | |
858 | 860 | | |
| 861 | + | |
859 | 862 | | |
860 | 863 | | |
861 | 864 | | |
| |||
1634 | 1637 | | |
1635 | 1638 | | |
1636 | 1639 | | |
| 1640 | + | |
1637 | 1641 | | |
1638 | 1642 | | |
1639 | 1643 | | |
1640 | 1644 | | |
1641 | 1645 | | |
1642 | 1646 | | |
| 1647 | + | |
1643 | 1648 | | |
1644 | 1649 | | |
1645 | 1650 | | |
| |||
1679 | 1684 | | |
1680 | 1685 | | |
1681 | 1686 | | |
| 1687 | + | |
1682 | 1688 | | |
1683 | 1689 | | |
1684 | 1690 | | |
| |||
1719 | 1725 | | |
1720 | 1726 | | |
1721 | 1727 | | |
| 1728 | + | |
1722 | 1729 | | |
1723 | 1730 | | |
1724 | 1731 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2275 | 2275 | | |
2276 | 2276 | | |
2277 | 2277 | | |
2278 | | - | |
| 2278 | + | |
2279 | 2279 | | |
| 2280 | + | |
| 2281 | + | |
| 2282 | + | |
| 2283 | + | |
| 2284 | + | |
2280 | 2285 | | |
2281 | | - | |
| 2286 | + | |
2282 | 2287 | | |
2283 | 2288 | | |
2284 | 2289 | | |
| |||
2293 | 2298 | | |
2294 | 2299 | | |
2295 | 2300 | | |
| 2301 | + | |
| 2302 | + | |
| 2303 | + | |
| 2304 | + | |
| 2305 | + | |
2296 | 2306 | | |
2297 | | - | |
| 2307 | + | |
2298 | 2308 | | |
2299 | 2309 | | |
2300 | 2310 | | |
| |||
2309 | 2319 | | |
2310 | 2320 | | |
2311 | 2321 | | |
2312 | | - | |
| 2322 | + | |
2313 | 2323 | | |
| 2324 | + | |
| 2325 | + | |
| 2326 | + | |
| 2327 | + | |
| 2328 | + | |
2314 | 2329 | | |
2315 | | - | |
| 2330 | + | |
2316 | 2331 | | |
2317 | 2332 | | |
2318 | 2333 | | |
| |||
2327 | 2342 | | |
2328 | 2343 | | |
2329 | 2344 | | |
| 2345 | + | |
| 2346 | + | |
| 2347 | + | |
| 2348 | + | |
| 2349 | + | |
2330 | 2350 | | |
2331 | | - | |
| 2351 | + | |
2332 | 2352 | | |
2333 | 2353 | | |
2334 | 2354 | | |
| |||
0 commit comments