The club object

{
 "id": "17324e27-5db7-43ae-8aff-d46ac74f5dd6",
 "title": "Red Case Club",
 "type": "Traditional",
 "content": null,
 "publishDate": "2019-12-15T20:56:00.000Z",
 "slug": "red-case-club",
 "createdAt": "2019-12-15T20:56:23.614Z",
 "updatedAt": "2019-12-15T20:56:23.614Z",
 "seo": {
  "title": "Red Case Club",
  "description": null
 }
}

Create a club

POST: /club

{
 "title": "Red Case Club",
 "slug": "red-case-club",
 "type": "Traditional",
 "publishDate": "2019-12-15T20:56:00.000Z",
 "seo": {
  "title": "Red Case Club"
 }
}

RESPONSE: responds with a club object.

Retrieve a club

GET: /club/:id

RESPONSE: responds with a club object.

Update a club

PUT: /club/:id

{
 "title": "Red Case Club",
 "content": "<p>Content here</p>",
 "slug": "red-case-club",
 "publishDate": "2019-12-15T20:56:00.000Z",
 "seo": {
  "title": "Red Case Club",
  "description": "Content here"
 }
}

RESPONSE: responds with a club object.

Delete a club

DELETE: /club/:id

RESPONSE: responds with a blank object and 204 status.

List all clubs

GET: /club

OPTIONS: optional query parameters include: q.

RESPONSE: responds with an array of club objects and a total count.

{
 "clubs": [
  {
   "id": "2b27f3cd-3984-47a0-98c1-24d22c15e225",
   "title": "Mixed Club",
   "type": "Traditional",
   "content": "<p>Mixed wine club.</p>",
   "publishDate": "2018-05-22T16:21:00.000Z",
   "slug": "mixed-club",
   "createdAt": "2018-05-22T16:21:34.940Z",
   "updatedAt": "2018-05-22T16:23:56.381Z",
   "seo": {
    "title": "Mixed Club",
    "description": "Mixed wine club."
   }
  },
  {
   "id": "17324e27-5db7-43ae-8aff-d46ac74f5dd6",
   "title": "Red Case Club",
   "type": "Traditional",
   "content": "<p>Content here</p>",
   "publishDate": "2019-12-15T20:56:00.000Z",
   "slug": "red-case-club",
   "createdAt": "2019-12-15T20:56:23.614Z",
   "updatedAt": "2019-12-15T21:02:14.331Z",
   "seo": {
    "title": "Red Case Club",
    "description": "Content here"
   }
  },
  {
   "id": "138cc09d-62d7-4298-8bfc-fd2fc3fddc79",
   "title": "Red Club",
   "type": "Traditional",
   "content": null,
   "publishDate": "2018-05-18T17:00:00.000Z",
   "slug": "red-club",
   "createdAt": "2018-05-18T17:00:38.114Z",
   "updatedAt": "2018-05-18T17:00:38.114Z",
   "seo": {
    "title": "Red Club",
    "description": null
   }
  },
  {
   "id": "194cc50a-e324-4f21-8e52-98500a4b751c",
   "title": "White Club",
   "type": "Traditional",
   "content": null,
   "publishDate": "2018-05-18T17:00:00.000Z",
   "slug": "white-club",
   "createdAt": "2018-05-18T17:00:45.726Z",
   "updatedAt": "2018-05-18T17:00:45.726Z",
   "seo": {
    "title": "White Club",
    "description": null
   }
  }
 ],
 "total": 4
}