Replies: 6 comments 1 reply
-
To be more clear and avoid confusion: I am not debating whether it should be singular or plural. I am just wondering why we have this inconsistency. |
Beta Was this translation helpful? Give feedback.
-
I do not know the reason, |
Beta Was this translation helpful? Give feedback.
-
so also |
Beta Was this translation helpful? Give feedback.
-
please test #34093 |
Beta Was this translation helpful? Give feedback.
-
+1 for using plural. |
Beta Was this translation helpful? Give feedback.
-
The original spec we did in 2017 GSOC was singular (ref: https://joomla-projects.github.io/gsoc19_webservices/?specification/chapters/urls-and-routing.md). Generally speaking though as long as it's consistent I don't mind hugely. It's worth noting though that the type of the object returned in the JSON API payload MUST be singular - so if we want to do plural URLs it's worth noting that the type in the body of the resource will always still be the singular version. |
Beta Was this translation helpful? Give feedback.
-
Is there a specific reason why endpoint
v1/content/article
, to request a list of articles, is singular andv1/content/categories
, to request a list of categories, is plural? Even more confusing,v1/fields/content/articles
is also plural.Beta Was this translation helpful? Give feedback.
All reactions