app 엔진에 REST 웹 서비스를 만들고 싶습니다. 현재 나는 이것을 가지고있다 :App Engine 및 Webapp를 통한 Rest Web Service
from google.appengine.ext import webapp
from google.appengine.ext.webapp import util
class UsersHandler(webapp.RequestHandler):
def get(self, name):
self.response.out.write('Hello '+ name+'!')
def main():
util.run_wsgi_app(application)
#Map url like /rest/users/johnsmith
application = webapp.WSGIApplication([(r'/rest/users/(.*)',UsersHandler)]
debug=True)
if __name__ == '__main__':
main()
그리고 나는 path/rest/users 경로에 접근 할 때 예를 들어 모든 사용자를 조사하고 싶다. 다른 핸들러를 빌드하여이 작업을 수행 할 수 있다고 상상해보십시오.하지만이 핸들러에서 핸들러를 수행 할 수 있는지를 알고 싶습니다.
가능한 [Google App Engine과 Python으로 REST 서비스를 만드는 방법은?] (http://stackoverflow.com/questions/1788041/how-to-create-a-rest-service-with-google -app-engine-and-python) – Oliver