Created
October 9, 2017 20:39
-
-
Save buren/779ad6dc96fdb143e0b750e2d6d712a0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const articles = { | |
data: [{ | |
id: 3, | |
type: 'articles' | |
attributes: { | |
title: 'LMA-kort', | |
slug: 'lma-kort', | |
body_html: '<p>LMA-kort är ett bevis på...</p>', | |
language_id: 192, | |
traits: ['bank_account', 'skill_ids', 'resume', 'personal_letter'], // zero to many | |
translated_text: { | |
title: 'LMA-card', | |
slug: 'lma-card', | |
body_html: '<p>LMA-card is proof of...</p>', | |
language_id: 37 | |
} | |
}, | |
relationships: { | |
previous_article: { | |
data: { | |
id: 1, | |
type: 'articles' | |
} | |
}, | |
next_article: { | |
data: { | |
id: 2, | |
type: 'articles' | |
} | |
}, | |
guide_section: { | |
data: { | |
id: 1, | |
type: 'guide_section' | |
} | |
} | |
} | |
}] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const guideSections = { | |
data: [{ | |
id: 1, | |
type: 'guide_sections', | |
attributes: { | |
order: 1, | |
title: 'Att jobba i Sverige', | |
slug: 'att-jobba-i-sverige', | |
short_description: 'Vad behöver du för att kunna jobba i Sverige?', | |
language_id: 192, | |
translated_text: { | |
title: 'Att jobba i Sverige', | |
slug: 'att-jobba-i-sverige', | |
short_description: 'Vad behöver du för att kunna jobba i Sverige?', | |
language_id: 192 | |
} | |
}, | |
relationships: { | |
articles: [{ | |
data: { | |
id: 1, | |
type: 'articles' | |
} | |
}, | |
{ | |
data: { | |
id: 3, | |
type: 'articles' | |
} | |
}] | |
} | |
}] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment