Hi All,
I heard about web2py following this question:
My goal is to create a RESTful web service from a DB, such that when the DB is modified, no code changes would be needed.
Questions:
1. When creating the DB schema to be extracted, should I add an 'id' field? If I do, the resulted 'legacy_db_web2py_code' string contains an 'ID' field in 'define_table'. However, the documentation says such field is already created implicitly. If I don't, I need another PK to create relations with foreign keys.
but PUT and DELETE won't work (GET and POST do work). any suggestions?
3.I've written a small scitpt (attached) which wraps 'extract_mysql_models'. Feedback would be welcomed.
Thanks in advance