Files
cyborg/doc/api_samples/device_profiles/device_profiles-create-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

20 lines
493 B
JSON

{
"name":"afexample_3",
"uuid":"1a939c88-0b01-408b-bab0-4c61d3a02d71",
"groups":[
{
"trait:CUSTOM_FUNCTION_ID_3AFB":"required",
"resources:CUSTOM_ACCELERATOR_FPGA":"1",
"trait:CUSTOM_FPGA_1":"required"
}
],
"created_at": "2020-03-09 11:26:05+00:00",
"updated_at": null,
"links":[
{
"href":"http://192.168.23.76/accelerator/v2/device_profiles/1a939c88-0b01-408b-bab0-4c61d3a02d71",
"rel":"self"
}
]
}