Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagetext
firstline1
titleexample output of links
{
	"statusCode": "OK",
	"result": [{
		"id": "MyRegionregion-with-proxy",
		"groups": [{
			"configuration": {
				"group": "group2",
				"name": "MyRegionregion-with-proxy",
				"type": "PARTITION"
			},
			"runtimeInfo": [{
				"entryCount": 010
			}]
		}, {
			"configuration": {
				"group": "group1",
				"name": "MyRegionregion-with-proxy",
				"type": "PARTITION_PROXY"
			},
			"runtimeInfo": [{
				"entryCount": 10
			}]
		}],
		"links": {
			"indexes": "http://localhost:22500/management/v1/regions/region-with-proxy/indexes",
			"self": "http://localhost:22500/management/v1/regions/region-with-proxy",
			"list": "http://localhost:22500/management/v1/regions"
		}
	}, {
		"id": "region-in-single-group",
		"groups": [{
			"configuration": {
				"group": "group1",
				"name": "region-in-single-group",
				"type": "PARTITION"
			},
			"runtimeInfo": [{
				"entryCount": 20
			}]
		}],
		"links": {
			"indexes": "http://localhost:22500/management/v1/regions/region-in-single-group/indexes",
			"self": "http://localhost:22500/management/v1/regions/region-in-single-group",
			"list": "http://localhost:22500/management/v1/regions"
		}
	}, {
		"id": "region-in-cluster",
		"groups": [{
			"configuration": {
				"name": "region-in-cluster",
				"type": "PARTITION"
			},
			"runtimeInfo": [{
				"entryCount": 0
			}]
		}],
		"links": {
			"indexes": "http://localhost:22500/management/v1/regions/MyRegion/region-in-cluster/indexes",
			"self": "http://localhost:22500/management/v1/regions/region-in-cluster",
			"list": "http://localhost:22500/management/v1/regions"
		}
	}, {
		"id": "region-in-multiple-groups",
		"groups": [{
			"configuration": {
				"group": "group2",
				"name": "region-in-multiple-groups",
				"type": "PARTITION"
			},
			"runtimeInfo": [{
				"entryCount": 0
			}]
		}, {
			"configuration": {
				"group": "group1",
				"name": "region-in-multiple-groups",
				"type": "PARTITION"
			},
			"runtimeInfo": [{
				"entryCount": 0
			}]
		}],
		"links": {
			"indexes": "http://localhost:22500/management/v1/regions/region-in-multiple-groups/indexes",
			"self": "http://localhost:22500/management/v1/regions/MyRegionregion-in-multiple-groups",
			"list": "http://localhost:22500/management/v1/regions"
		}
	}]
}

References:

1 https://github.com/Microsoft/api-guidelines/blob/vNext/Guidelines.md

...