title: How to implement RESTful API on an App Engine server with webapp ( +Facebook authentication )?
body: <p>so my idea is pretty simple. But I don't know where to start.</p>
  
  <p>develop a simple RESTful API on my app engine server using the simple webapp framework.</p>
  
  <p>there will be two kinds of clients:<br>
  1. Normal pc users access the facebook application, and this will directly place API calls to my app engine server. 
  ( Please note, that the facebook application itself is hosted on the same app engine server) </p>
  
  <ol start="2">
  <li>Iphone users access my app engine server by going though Facebook connect. The user is then free to make the API calls.</li>
  </ol>
  
  <p>So how i checked the App3 Project at <a href="http://code.google.com/p/app3/" rel="nofollow noreferrer">http://code.google.com/p/app3/</a>, then didn't really have authentication in place.</p>
  
  <p>Any suggestions/ideas?</p>
  
  <p>I have a rough idea of how the flow works</p>
  
  <p>Assumption: I have the datastore all set up with user data.</p>
  
  <p>For normal PC users accessing my FB app:
  --> authenticate in FB ->I save their userid + facebook_session_key in with gmemsess -> I use both data to authenticate with the user data in my datastore --> that user is now free to CRUD on my server.</p>
  
  <p>For iphone users, it's the same flow. But with Facebook Connect.</p>
  
  <p>the CRUD should look something like:
    if the user wants to check his/her stats, the API call would be something like:
    /rest/getstats</p>
  
  <p>Is anyone actually doing something like that? I'd appreciate everyone's insights.
  A simple, hassle free solution would be awesome!</p>