Commit 3177ade0 authored by Corey O'Connor's avatar Corey O'Connor
Browse files

update to reference IntegerCounters

parent ee98ec7b
......@@ -285,7 +285,7 @@ To determine what services fragments we can instantiate query the `/_ops/service
$ curl localhost:10000/_ops/services.json
[
"glngn.server.services.CounterService$"
"glngn.server.services.IntegerCounters$"
]
~~~
......@@ -295,7 +295,7 @@ includes a standard set of generic service fragments.
##### 2. Instantiate the service fragment
Let's pick the `glngn.server.services.CounterService$` service fragment to instantiate.
Let's pick the `glngn.server.services.IntegerCounters$` service fragment to instantiate.
After creating the group `accounts` a route was added `/accounts/_ops/services`. According to the
OpenAPI spec this route accepts a `POST` of a `GroupServiceChange` json structure. The schema of
......@@ -324,18 +324,18 @@ We already know the logical service ID (`logicalServiceId`) from the query to `/
~~~
$ curl --data '{ "serviceId": "retail", \
"logicalServiceId": "glngn.server.services.CounterService$" \
"logicalServiceId": "glngn.server.services.IntegerCounters$" \
}' localhost:10000/accounts/_ops/services
{
"retail" : [
"glngn.server.services.CounterService$"
"glngn.server.services.IntegerCounters$"
]
}
~~~
Which replies with the new set of services under that group. This reply states the `retail` service
is a composition of a list of service fragments. Which only contains
`glngn.server.services.CounterService$` in this example.
`glngn.server.services.IntegerCounters$` in this example.
#### Use a Service
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment