From bc4f854784d45004f001eb1ed0611c3179e5f1a6 Mon Sep 17 00:00:00 2001 From: Erik Reid <erik.reid@geant.org> Date: Sat, 13 Apr 2019 13:04:12 +0200 Subject: [PATCH] fixed errors in coriant-info schema --- README.md | 53 ++++++++++++++++++++++++++++++----------------------- 1 file changed, 30 insertions(+), 23 deletions(-) diff --git a/README.md b/README.md index 8c64ad0f..620bfbac 100644 --- a/README.md +++ b/README.md @@ -655,7 +655,7 @@ Any non-empty responses are JSON formatted messages. } ``` -* /classifier/coriant-info/*`equipment_name`*/*`card_id`*/*`port_number`* +* /classifier/coriant-info/*`equipment name`*/*`entity name`* Returns information about the effective path of a coriant card/port combination. @@ -671,7 +671,6 @@ Any non-empty responses are JSON formatted messages. "pop-info": { "type": "object", "properties": { - "absid": {"type": "integer"}, "name": {"type": "string"}, "abbreviation": {"type": "string"}, "country": {"type": "string"}, @@ -680,7 +679,6 @@ Any non-empty responses are JSON formatted messages. "latitude": {"type": "number"} }, "required": [ - "absid", "name", "abbreviation", "country", @@ -693,37 +691,46 @@ Any non-empty responses are JSON formatted messages. "endpoint": { "type": "object", "properties": { - "name": {"type": "string"}, + "equipment name": {"type": "string"}, "card id": {"type": "string"}, "port number": {"type": "string"}, "pop": {"$ref": "#/definitions/pop-info"} }, - "required": ["name", "port number", "pop"], + "required": ["equipment name", "port number", "pop"], + "additionalProperties": False + }, + "path": { + "type": "object", + "properties": { + 'category': {"type": "string"}, + 'circuit_type': {"type": "string"}, + 'service_type': {"type": "string"}, + 'peering_type': {"type": "string"}, + 'status': {"type": "string"}, + 'name': {"type": "string"}, + 'a': {"$ref": "#/definitions/endpoint"}, + 'b': {"$ref": "#/definitions/endpoint"} + }, + "required": [ + "category", + "circuit_type", + "service_type", + "peering_type", + "status", + "a", + "b"], "additionalProperties": False } }, "type": "object", "properties": { - 'absid': {"type": "integer"}, - 'category': {"type": "string"}, - 'circuit_type': {"type": "string"}, - 'service_type': {"type": "string"}, - 'peering_type': {"type": "string"}, - 'status': {"type": "string"}, - 'name': {"type": "string"}, - 'a': {"$ref": "#/definitions/endpoint"}, - 'b': {"$ref": "#/definitions/endpoint"} + "equipment name": {"type": "string"}, + "card id": {"type": "string"}, + "port number": {"type": "string"}, + "path": {"$ref": "#/definitions/path"} }, - "required": [ - "absid", - "category", - "circuit_type", - "service_type", - "peering_type", - "status", - "a", - "b"], + "required": ["equipment name", "card id", "port number"], "additionalProperties": False } ``` -- GitLab