1 Config Binding Service 2.1.0
2 ============================
17 GET ``/service_component_all/{service_component_name}``
18 -------------------------------------------------------
27 Binds the configuration for service_component_name and returns the bound configuration, policies, and any other keys that are in Consul
34 :header: "Name", "Located in", "Required", "Type", "Format", "Properties", "Description"
35 :widths: 20, 15, 10, 10, 10, 20, 30
37 service_component_name | path | Yes | string | | | Service Component Name. service_component_name must be a key in consul.
50 OK; returns {config : ..., policies : ....., k : ...} for all other k in Consul
53 .. _i_4d863967ef9a9d9efdadd1b250c76bd6:
62 .. code-block:: javascript
69 there is no configuration in Consul for this component
76 GET ``/service_component/{service_component_name}``
77 ---------------------------------------------------
86 Binds the configuration for service_component_name and returns the bound configuration as a JSON
93 :header: "Name", "Located in", "Required", "Type", "Format", "Properties", "Description"
94 :widths: 20, 15, 10, 10, 10, 20, 30
96 service_component_name | path | Yes | string | | | Service Component Name. service_component_name must be a key in consul.
109 OK; the bound config is returned as an object
112 .. _i_4d863967ef9a9d9efdadd1b250c76bd6:
121 .. code-block:: javascript
128 there is no configuration in Consul for this component
135 GET ``/{key}/{service_component_name}``
136 ---------------------------------------
145 this is an endpoint that fetches a generic service_component_name:key out of Consul. The idea is that we don't want to tie components to Consul directly in case we swap out the backend some day, so the CBS abstracts Consul from clients. The structuring and weird collision of this new API with the above is unfortunate but due to legacy concerns.
152 :header: "Name", "Located in", "Required", "Type", "Format", "Properties", "Description"
153 :widths: 20, 15, 10, 10, 10, 20, 30
155 key | path | Yes | string | | | this endpoint tries to pull service_component_name:key; key is the key after the colon
156 service_component_name | path | Yes | string | | | Service Component Name.
169 OK; returns service_component_name:key
172 .. _i_4d863967ef9a9d9efdadd1b250c76bd6:
181 .. code-block:: javascript
188 bad request. Currently this is only returned on :policies, which is a complex object, and should be gotten through service_component_all
211 This is the health check endpoint. If this returns a 200, the server is alive and consul can be reached. If not a 200, either dead, or no connection to consul
230 the config binding service cannot reach Consul