MartinHeinz/blog-backend

View on GitHub
cmd/blog_backend/test_data/test_case_data/post_t1.json

Summary

Maintainability
Test Coverage
{
  "id": 1,
  "created_at": "0001-01-01T00:00:00Z",
  "updated_at": "0001-01-01T00:00:00Z",
  "deleted_at": null,
  "title": "First Blog Post",
  "text": "This is blog about something.",
  "author": "Martin",
  "next": null,
  "next_post_id": 2,
  "previous": null,
  "previous_post_id": 0,
  "posted_on": "2018-08-24T14:00:00Z",
  "sections": [
    {
      "id": 1,
      "created_at": "0001-01-01T00:00:00Z",
      "updated_at": "0001-01-01T00:00:00Z",
      "deleted_at": null,
      "post_id": 1,
      "name": "Title"
    },
    {
      "id": 2,
      "created_at": "0001-01-01T00:00:00Z",
      "updated_at": "0001-01-01T00:00:00Z",
      "deleted_at": null,
      "post_id": 1,
      "name": "Subsection"
    }
  ],
  "tags": [
    {
      "id": 1,
      "created_at": "0001-01-01T00:00:00Z",
      "updated_at": "0001-01-01T00:00:00Z",
      "deleted_at": null,
      "post_id": 1,
      "project_id": 0,
      "name": "Python"
    },
    {
      "id": 3,
      "created_at": "0001-01-01T00:00:00Z",
      "updated_at": "0001-01-01T00:00:00Z",
      "deleted_at": null,
      "post_id": 1,
      "project_id": 0,
      "name": "Crypto"
    },
    {
      "id": 4,
      "created_at": "0001-01-01T00:00:00Z",
      "updated_at": "0001-01-01T00:00:00Z",
      "deleted_at": null,
      "post_id": 1,
      "project_id": 0,
      "name": "Golang"
    }
  ]
}