Skip to content

About

Example code for go jsonapi library issue

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

go-jsonapi-test

Example code for go jsonapi library issue

$ go run main.go | jq .
{
  "data": {
    "type": "foo",
    "id": "1",
    "attributes": {
      "someattr": "a"
    },
    "relationships": {
      "rel": {
        "data": {
          "type": "bar",
          "id": "2"
        }
      },
      "relrio": {
        "data": {
          "type": "bar",
          "id": "3"
        }
      }
    }
  }
}
{
  "data": {
    "type": "foo",
    "id": "1",
    "attributes": {
      "someattr": "a"
    },
    "relationships": {
      "rel": {
        "data": {
          "type": "bar",
          "id": "2"
        }
      },
      "relrio": {
        "data": {
          "type": "bar",
          "id": "3"
        }
      }
    }
  },
  "included": [
    {
      "type": "bar",
      "id": "3"
    },
    {
      "type": "bar",
      "id": "2",
      "attributes": {
        "someattr": "b"
      }
    }
  ]
}

About

Example code for go jsonapi library issue

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages