X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=VERTEX.md;h=b87e4bb4f879faf94d8c0aeb6f10e29477c66e28;hb=HEAD;hp=603d748cc87737363b099a9a0a4c7167e63a4a60;hpb=f7b84df35a767b18b8c5f3485cff2ffd5faab0c8;p=aai%2Fgizmo.git diff --git a/VERTEX.md b/VERTEX.md index 603d748..b87e4bb 100644 --- a/VERTEX.md +++ b/VERTEX.md @@ -198,7 +198,52 @@ Optionally, a vertex can be created by posting to an endpoint which doesn't incl Code: 500 (Internal Server Error) Content: Error message describing the failure. - Situation: Any scenario not covered by the above error codes. + Situation: Any scenario not covered by the above error codes. + +### Get Vertices with Properties +Note: Adding query param of properties=all will return all properties + + URL: https://:9520/services/inventory/v11/pserver/ + Optional Query Param: ?equip-vendor=HP + Optional Query Param: ?properties=hostname&properties=equip-vendor + Method: GET + Success Response: + Code: 200 + Content: + [ + { + "idfdsa": "1263346e-372b-4681-8ce4-d40411620487", + "type": "pserver", + "url": "services/inventory/v11/pserver/1263346e-372b-4681-8ce4-d40411620487", + "properties": { + "equip-vendor": "HP", + "hostname": "mtanjasdf119snd" + } + }, + { + "idfdsa": "b57a9e54-bbb5-4e11-b537-aaa7bc8fd726", + "type": "pserver", + "url": "services/inventory/v11/pserver/b57a9e54-bbb5-4e11-b537-aaa7bc8fd726", + "properties": { + "equip-vendor": "HP", + "hostname": "mtanjasdf119snd" + } + } + ] + Error Response: + Code: 404 (NOT FOUND) + Situation: Resource Not found + + Code: 403 (FORBIDDEN) + Content: Error message describing the Authorization failure. + Situation: Authorization failure. + + Code: 415 (UNSUPPORTED MEDIA TYPE) + Situation: Unsupported content type . + + Code: 500 (Internal Server Error) + Content: Error message describing the failure. + Situation: Any scenario not covered by the above error codes. ### Update Vertex