Add Posts API and tests