Files
cyborg/doc/api_samples/device_profiles/device_profiles-getone-resp.json
zhangbailin 0bf59df4ad Improve the accuracy of device profile API responses in docs
Now when we called the device profiles POST/GET API, that will return
response body, but in API docs, the responses body missing "created_at"
and "updated_at" fields, this commits add these missing properties
in device profile API docs.

Another change is that the adjustment responses are worth the correct
order.

Change-Id: I37817da2a8f7ee2aa2f6dd5b7ab2188c2035cefb
2020-03-11 11:41:32 +00:00

22 lines
574 B
JSON

{
"device_profile":{
"name":"fpga-dp1",
"uuid":"5518a925-1c2c-49a2-a8bf-0927d9456f3e",
"groups":[
{
"trait:CUSTOM_CHENKE_TRAITS":"required",
"resources:FPGA":"1",
"accel:bitstream_id":"d5ca2f11-3108-4426-a11c-a959987565df"
}
],
"created_at": "2020-03-09 11:26:05+00:00",
"updated_at": null,
"links":[
{
"href":"http://192.168.32.217/accelerator/v2/device_profiles/5518a925-1c2c-49a2-a8bf-0927d9456f3e",
"rel":"self"
}
]
}
}