Create Widget
POST /api/widgets
curl \
-X POST http://localhost/api/widgets \
-H "Content-Type: application/json" \
-d '{"name":"Goblin Staff of Sparks","description":"This staff is made of wood and has a small gemstone at the top. It crackles with electricity.\n"}'
Request example
{
"name": "Goblin Staff of Sparks",
"description": "This staff is made of wood and has a small gemstone at the top. It crackles with electricity.\n"
}
Response examples (201)
{
"data": [],
"links": {}
}
Response examples (400)
{
"title": "string",
"detail": "string",
"code": "string",
"errors": {
"Additional properties:": "string"
}
}