As i understand ut json:api has nouns in plural for naming endpoint and type.
For example endpoint “articles” have type “articles”.
What is a good naming convention on endpoints and type for for words (nouns) that consist of two words for example SchoolUnit?
endpoint name: /v2/school-units/{school-unit-code}
response:
{
“data”: {
“type”: “schoolunit”,
“id”: “1”,
“attributes”: {
// … this article’s attributes
},
“relationships”: {
// … this article’s relationships
}
}
}
Thank you!