Stormz

Developer


Items

List all items

List the items within the scope of a workshop and a card.

GET /v1/workshops/:workshop_id/cards/:card_id/items

Parameters

Name Type Description
section_id string filter by the section_id

Response

200 OK
[
  {
    "id": "5007d396eb7abf319a000047",
    "content": "Top",
    "section_id": "5007d396eb7abf319a000048",
    "user_id": "5007d396eb7abf319a000049"
  }
]

Create an item

POST /v1/workshops/:workshop_id/cards/:card_id/items

Parameters

Name Type Description
content string Required the content of the item
section_id string Required the id of the section

Example

{
  "content": "Top",
  "section_id": "section_id"
}

Response

201 Created
{
  "id": "5007d396eb7abf319a000047",
  "content": "Top",
  "section_id": "section_id",
  "user_id": "5007d396eb7abf319a000049"
}

Get an item

GET /v1/workshops/:workshop_id/cards/:card_id/items/:id

Response

200 OK
{
  "id": "5007d396eb7abf319a000047",
  "content": "Top",
  "section_id": "5007d396eb7abf319a000048",
  "user_id": "5007d396eb7abf319a000049"
}

Update an item

PUT /v1/workshops/:workshop_id/cards/:card_id/items/:id

Parameters

Name Type Description
content string the content of the item

Response

204 No Content

Delete an item

DELETE /v1/workshops/:workshop_id/cards/:card_id/items/:id

Response

204 No Content