In the absence of a blog post, a few comments:
"status":"ok"
No need for that. That's what HTTP status codes are for.
"page":1, "per_page"
`per_page` should be up to the client. Your API should support
pagination though for retrieving collections, and in which case, it
should accept a range value, or two values, one for range beginning
and range end. The gist here being that some clients might find it
suitable to fetch more, others less, and your API should simply let
those clients decide that. Probably up to a certain number of posts,
of course.
`total` should also be extrapolated from the array length once parsed.
The exception here being if you'd like to supply a separate "metadata"
request for collections which simply returns that kind of info but
omitting the collection itself. That can be handy for some UI cases
(e.g.: showing upfront how many items a collection has before actually
fetching).
That's all from me for now :)
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby or Rails Oceania" group.
> To view this discussion on the web visit
>
https://groups.google.com/d/msg/rails-oceania/-/tVcxIVy7Q_kJ.
> To post to this group, send email to
rails-...@googlegroups.com.
> To unsubscribe from this group, send email to
>
rails-oceani...@googlegroups.com.
> For more options, visit this group at
>
http://groups.google.com/group/rails-oceania?hl=en.