Adding read-only JSON endpoints for /posts

Line is too long. [95/80]