mirror of
https://github.com/status-im/consul.git
synced 2025-01-10 13:55:55 +00:00
cd4d5a82da
I believe this may have been missed as part of #3994. Note that the API _returns_ `ServiceMeta`, but accepts `Meta`. $ curl -X PUT -d \ '{ "Datacenter": "dc1", "Node": "example", "Address": "www.example.com", "Service": { "Service": "example-service", "Port": 80, "Meta": {"foo": "bar"} } }' \ http://localhost:8500/v1/catalog/register $ curl localhost:8500/v1/catalog/service/example-service [ { "ID": "", "Node": "example", "Address": "www.example.com", "Datacenter": "dc1", "TaggedAddresses": null, "NodeMeta": null, "ServiceKind": "", "ServiceID": "example-service", "ServiceName": "example-service", "ServiceTags": [], "ServiceAddress": "", "ServiceMeta": { "foo": "bar" }, "ServicePort": 80, "ServiceEnableTagOverride": false, "ServiceProxyDestination": "", "ServiceConnect": { "Native": false, "Proxy": null }, "CreateIndex": 11, "ModifyIndex": 37 } ]