Community mailing list archives

community@mail.odoo.com

Re: Module to generate doc for JSONRPC

by
Vauxoo S.A. de C.V., Nhomar Hernandez
- 08/10/2014 13:43:43

On Tue, Aug 5, 2014 at 11:09 AM, Markus Schneider <markus.schneider@initos.com> 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.

Hello @Markus.

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.

REgards.


--
Nhomar Hernandez
CEO Vauxoo.
Twitter: @nhomar
Odoo Gold Partner