First thing you will need to decide is who will be the api and who will be the consumer.
Change their project to be public instead of private (In the Cloud 9 Project settings)
Add a new route to provide the data in json format:
get '/api/posts/json' do