Get a widget by ID
GET
/widgets/{widgetId}Path Parameters
widgetIdstringrequired
The widget's unique ID
Response
200A widget
namestring
colorstring
idstring
404Widget not found
errorstring
/widgets/{widgetId}The widget's unique ID
curl -X GET "https://api.kitchen-sink.example.com/v1/widgets/<widgetId>" \
-H "X-API-Key: <X-API-Key>"{
"name": "Sprocket",
"color": "indigo",
"id": "wdg_abc123"
}