Rails front-end + REST API or Rails front-end + sinatra for a CMS site + service

30 views
Skip to first unread message

oren

unread,
May 10, 2010, 2:37:06 PM5/10/10
to sinatrarb
I built a CMS site in rails with a few web pages that the marketing
will use to manage content of a few websites and apps.
I also created an action in one of the controllers, called 'published'
that lets clients get the content from the system based on their
locale.
Here are some of the REST API I have (all return json of key/values):

GET /client_name/qa #get all content for specific locale, client and
environment

GET /client_name/production?key=key1 #get content of key

GET /client_name/qa?tags=tag1,tag2 #get content of some tags

I am about to implement discovery API as well, so the client will do
Get /
and will 'discover' what uri are available to him.

is it better to use sinatra as the webservice that communicates with
the rails db to get it's content?
if it is, can I get some tips, guidelines or similar projects?
(never used sintra but want to try it)

Thanks!

--
You received this message because you are subscribed to the Google Groups "sinatrarb" group.
To post to this group, send email to sina...@googlegroups.com.
To unsubscribe from this group, send email to sinatrarb+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/sinatrarb?hl=en.

Reply all
Reply to author
Forward
0 new messages