Json API response format for non-resource data, like oAuth token

Something like this perhaps?

{
  "jsonapi": {
    "version": "1.0"
  },
  "data": {
    "id": "2015-07-29T10:09:29.000Z",
    "type": "token",
    "attributes": {
      "access_token": "Qcg6yI1a5qCxXgKWtSAbZ2MIHFChHAq0Vc1Lo4TX",
      "token_type": "Bearer",
      "expires-in": 3600
    }
  }
}

It’s really up to you! Best of luck :smiley:

1 Like