Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API:Guidelines , adhering to jsonapi.org - the 'relationsships'-tag ? #30

Open
Inkimar opened this issue Jul 1, 2016 · 1 comment
Open
Assignees
Labels

Comments

@Inkimar
Copy link
Contributor

Inkimar commented Jul 1, 2016

the http://jsonapi.org/ ( http://jsonapi.org/format/ ) describes the tag 'relationships'

relationships: a relationships object describing relationships between the resource and other JSON API resources.

// ...
{
"type": "articles",
"id": "1",
"attributes": {
"title": "Rails is Omakase"
},
"relationships": {
"author": {
"links": {
"self": "/articles/1/relationships/author",
"related": "/articles/1/author"
},
"data": { "type": "people", "id": "9" }
}
}
}
// ...

We are not using the tag 'relationships' .

The question is; should we use the 'relationships' -tag in the 'meta' - and 'data' - section ?

@gnewton
Copy link
Contributor

gnewton commented Aug 15, 2016

I think we should use this. All of the relations listed in the guideline could be included as far as I can see.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants