Community mailing list archives
Re: Module to generate doc for JSONRPCby
Vauxoo S.A. de C.V., Nhomar Hernandez
On Tue, Aug 5, 2014 at 11:09 AM, Markus Schneider <firstname.lastname@example.org> wrote:
So because it will be a odoo v8 project i think we can use the "website" module to generate a doc for the api on the fly. So my first version is here: https://github.com/initOS/odoo_website-api-doc So if someone is interested, i want to share this way.
This module which you made depends of "website" is not necesary anymore, you can copy the way route "/web" does in web module and your module will work like a charm (without introduce innecesary features by itself) using the render method basing everything in the template web.webclient_bootstrap and not in website.layout as you are doing now) that's why your module "which intrduce a technical feature" should go to server-tools and not in "website".
BTW from the technical PoV, I think you are duplicating the menu: Settings > Database Structure > Models
Why nos simply use a request to it? (is an honest question).
And the name of your module say "jsonrpc" but it actually returns "http" (obviously using the json cookie management api on controller).
IMHO It is a good feature but a l think you open some backdoors that can not be expose "public".
If you fix:
1.- Not depend of website instead of web.
2.- auth="user" and not "public".
It can be a really good start to build a great view to explore model for programming purpose.