From 45e9d5e0092e0c452c0d5b068d17b913c94036d4 Mon Sep 17 00:00:00 2001 From: Jack Pearkes Date: Tue, 26 Jun 2018 12:15:23 -0700 Subject: [PATCH] website: correct paramater for service meta on catalog register 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 } ] --- website/source/api/catalog.html.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/source/api/catalog.html.md b/website/source/api/catalog.html.md index 9e0ae90a3..331df26f2 100644 --- a/website/source/api/catalog.html.md +++ b/website/source/api/catalog.html.md @@ -54,7 +54,7 @@ The table below shows this endpoint's support for - `Service` `(Service: nil)` - Specifies to register a service. If `ID` is not provided, it will be defaulted to the value of the `Service.Service` property. Only one service with a given `ID` may be present per node. The service - `Tags`, `Address`, `ServiceMeta`, and `Port` fields are all optional. + `Tags`, `Address`, `Meta`, and `Port` fields are all optional. - `Check` `(Check: nil)` - Specifies to register a check. The register API manipulates the health check entry in the Catalog, but it does not setup the